WO2024119788A1 - Power supply detection method and apparatus, device, non-volatile readable storage medium, and circuit - Google Patents

Power supply detection method and apparatus, device, non-volatile readable storage medium, and circuit Download PDF

Info

Publication number
WO2024119788A1
WO2024119788A1 PCT/CN2023/103408 CN2023103408W WO2024119788A1 WO 2024119788 A1 WO2024119788 A1 WO 2024119788A1 CN 2023103408 W CN2023103408 W CN 2023103408W WO 2024119788 A1 WO2024119788 A1 WO 2024119788A1
Authority
WO
WIPO (PCT)
Prior art keywords
power supply
sampling
phase
switching cycle
single switching
Prior art date
Application number
PCT/CN2023/103408
Other languages
French (fr)
Chinese (zh)
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 WO2024119788A1 publication Critical patent/WO2024119788A1/en

Links

Classifications

    • 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 application relates to the field of circuit detection technology, and in particular to a power supply detection method, device, equipment, non-volatile readable storage medium and circuit.
  • the purpose of this application is to provide a power detection method, device, equipment, non-volatile readable storage medium and circuit to detect the power type.
  • the optional solutions are as follows:
  • the present application provides a power detection method, which is applied to a power controller, comprising:
  • the N-phase power supply is a TLVR type N-phase power supply.
  • obtaining a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle includes:
  • a plurality of sampling data are grouped into a sampling sequence, including:
  • a plurality of sampling data falling within a single switching cycle is selected from the sampling set, including:
  • determining the duration of a single switching cycle includes:
  • the duration is queried from the memory in the power controller.
  • the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
  • determining the number of pulsations of the target current in a single switching cycle based on the sampling sequence includes:
  • calculating the difference between adjacent sampling data in the sampling sequence includes:
  • sampling data at the previous position is subtracted from the sampling data at the next position.
  • calculating the difference between adjacent sampling data in the sampling sequence includes:
  • the method before determining the size of the number of pulses and N+1, the method further includes:
  • the value of N is queried from the memory in the power controller.
  • it also includes:
  • the N-phase power supply is a VR type N-phase power supply.
  • it also includes:
  • Power control is performed according to the first power parameter or the second power parameter.
  • determining a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply includes:
  • the first power parameter or the second power parameter is queried from a memory in the power controller.
  • the method before obtaining a sampling sequence of a target current of any phase in the N-phase power supply within a single switching cycle, the method further includes:
  • the power configuration information includes: the duration of a single switching cycle, the first power parameter corresponding to the N-phase power supply of the TLVR type, the second power parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampled data within a single switching cycle.
  • it also includes:
  • the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory are modified.
  • a sampling sequence is executed to obtain the target current of any phase in the N-phase power supply within a single switching cycle; wherein N ⁇ 2; the number of pulsations of the target current within a single switching cycle is determined based on the sampling sequence; and when the number of pulsations is greater than N+1, the step of determining that the N-phase power supply is a TLVR type N-phase power supply.
  • the present application provides a power detection device, applied to a power controller, comprising:
  • An acquisition module is configured to acquire a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2;
  • a determination module is configured to determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence
  • the detection module is configured to determine that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
  • the acquisition module includes:
  • a first selection unit is configured to select any one phase current from the N-phase power supply as a target current
  • the sampling unit is configured to sample the target current to obtain a sampling set
  • a second selection unit is configured to select a plurality of sampling data falling within a single switching cycle from the sampling set
  • the composition unit is configured to compose a plurality of sampling data into a sampling sequence.
  • the component unit can be set to:
  • the second selection unit may be configured as:
  • the second selection unit may be configured as:
  • the duration is queried from the memory in the power controller.
  • the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
  • the determination module includes:
  • a first calculation unit is configured to calculate the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence
  • the second calculation unit is configured to calculate the product of adjacent difference values in the difference sequence and count the number of negative products
  • the determination unit is configured to increase the number of times the product is a negative number by one to obtain the number of pulsations.
  • the first computing unit may be configured as:
  • sampling data at the previous position is subtracted from the sampling data at the next position.
  • the first computing unit may be configured as:
  • it also includes:
  • the query module is configured to query the value of N from the memory in the power controller before determining the size of the number of pulsations and N+1.
  • the detection module is further configured to:
  • the N-phase power supply is a VR type N-phase power supply.
  • it also includes:
  • the control module is configured to determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
  • control module may be configured to:
  • the first power parameter or the second power parameter is queried from a memory in the power controller.
  • it also includes:
  • the import module is configured to import power supply configuration information into the memory in the power supply controller before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle;
  • the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the N-phase power supply of the TLVR type, a second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
  • it also includes:
  • the modification module is configured to modify the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory when a configuration modification instruction is received.
  • the steps in the acquisition module, the determination module and the detection module are executed.
  • the present application provides an electronic device, including:
  • a memory arranged to store a computer program
  • the processor is configured to execute a computer program to implement the power supply detection method disclosed above.
  • the present application provides a non-volatile readable storage medium, which is configured to store a computer program, wherein the computer program implements the aforementioned disclosed power detection method when executed by a processor.
  • the present application provides a power supply detection circuit, comprising: a power supply controller, a TLVR type N-phase power supply or a VR type N-phase power supply connected to the power supply controller; wherein N ⁇ 2; the power supply controller is configured to execute any of the aforementioned methods.
  • a memory connected to the power supply controller, the memory is configured to store a power supply profile, the power supply profile records: the duration of a single switching cycle, a first power supply parameter corresponding to a TLVR type N-phase power supply, a second power supply parameter corresponding to a VR type N-phase power supply, the value of N and the number of sampled data within a single switching cycle.
  • the power supply controller is configured to: obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the power supply controller is configured to: select any phase current in the N-phase power supply as the target current; sample the target current to obtain a sampling set; select multiple sampling data falling within a single switching cycle in the sampling set; and group the multiple sampling data into a sampling sequence.
  • the power supply controller is configured to: arrange the plurality of sampling data in a sampling order to obtain a sampling sequence.
  • the power supply controller is configured to: determine the duration of a single switching cycle; and select a plurality of sampling data within the duration in the sampling set.
  • the power controller is configured to query the duration from a memory in the power controller.
  • the power controller is configured to: calculate the difference between adjacent sampling data in a sampling sequence to obtain a difference sequence; calculate the product of adjacent differences in the difference sequence, and count the number of negative products; and increase the number of negative products by one to obtain the number of pulsations.
  • the power supply controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at a previous position from the sampling data at a subsequent position in each pair of adjacent sampling data.
  • the power supply controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at a previous position from the sampling data at a subsequent position in each pair of adjacent sampling data.
  • the power controller is configured to: query the value of N from a memory in the power controller.
  • the power supply controller is configured to: when the number of pulsations is not greater than N+1, determine that the N-phase power supply is a VR type N-phase power supply.
  • the power controller is configured to: determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
  • the power controller is configured to query the first power parameter or the second power parameter from a memory in the power controller.
  • the power supply controller is configured to import power supply configuration information into a memory in the power supply controller before obtaining a sampling sequence of target current of any phase in the N-phase power supply within a single switching cycle;
  • the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the TLVR type N-phase power supply, a second power supply parameter corresponding to the VR type N-phase power supply, the value of N and the number of sampling data within a single switching cycle.
  • the power supply controller is configured to, upon receiving a configuration modification instruction, modify the duration of a single switching cycle stored in the memory, a first power supply parameter corresponding to an N-phase power supply of the TLVR type, a second power supply parameter corresponding to an N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle.
  • the power supply controller is configured to: after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data within a single switching cycle stored in the memory, execute a sampling sequence for obtaining the target current of any phase in the N-phase power supply within a single switching cycle; wherein N ⁇ 2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the present application provides a power supply detection method, which is applied to a power supply controller, including: obtaining a sampling sequence of the target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2; determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence; when the number of pulsations is greater than N+1, determining that the N-phase power supply is a TLVR type N-phase power supply.
  • the present application can utilize the power supply controller to automatically detect the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, and then determine the number of pulsations of the single-phase target current within a single switching cycle based on the sampling sequence, and thus determine the number of current jumps of the single-phase target current within a single switching cycle; when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the present application The type of power supply can be automatically detected without human intervention, thus improving detection efficiency and accuracy, and also providing a prerequisite for power supply configuration.
  • a power supply detection device, equipment, non-volatile readable storage medium and circuit provided by the present application also have the above-mentioned technical effects.
  • FIG1 is a flow chart of a power supply detection method disclosed in the present application.
  • FIG2 is a schematic diagram of a jump waveform of a phase current PWM1 in a VR type three-phase power supply disclosed in the present application;
  • FIG3 is a schematic diagram of a jump waveform of a current PWM1 of one phase in a TLVR type three-phase power supply disclosed in the present application;
  • FIG4 is a circuit diagram of a TLVR type N-phase power supply disclosed in the present application.
  • FIG5 is a circuit diagram of a VR type N-phase power supply disclosed in the present application.
  • FIG6 is a flow chart of another power supply detection method disclosed in the present application.
  • FIG7 is a schematic diagram of a power supply detection device disclosed in the present application.
  • FIG8 is a schematic diagram of an electronic device disclosed in the present application.
  • the present application provides a power supply detection solution that can automatically detect the type of power supply, improve detection efficiency and accuracy, and provide a prerequisite for power supply configuration.
  • an embodiment of the present application discloses a power supply detection method, which is applied to a power supply controller, including:
  • the power controller is a controller in a mainboard to which the N-phase power supply is connected, and the user controls the operation logic of the power supply.
  • FIG. 2 shows the jump waveform of one phase current PWM1 in a three-phase power supply of VR (Voltage Regulator) type.
  • the phase current has two jumps in a single switching cycle: A ⁇ B and B ⁇ C; or B ⁇ C and C ⁇ D.
  • 2+1 is taken as the number of pulsations of a phase current of a VR type three-phase power supply in a single switching cycle.
  • the sampling starting point is the midpoint E of AB
  • the sampling end position of a single switching cycle is the midpoint F of CD
  • FIG 3 illustrates the jump waveform of one of the phase currents PWM1 in a TLVR (Trans-inductor Voltage Regulator) type three-phase power supply.
  • the jump waveform of PWM1 is affected by the compensation inductor lc in the power supply, and the phase current jumps 6 times in a single switching cycle.
  • 6+1 is taken as the number of pulsations of a phase current of a TLVR type three-phase power supply in a single switching cycle. Based on this, it can be determined that the number of pulsations of a phase current of a TLVR type N-phase power supply in a single switching cycle is at most 2N+1.
  • the TLVR type power supply greatly improves the dynamic response compared to the ordinary VR type power supply, requires less filter capacitance, and can reduce costs.
  • the TLVR type N-phase power supply includes N transformers: T1 ⁇ TN, one end of the primary coil of each transformer is connected to the upper and lower MOS (also known as MOS tube, MOSFET, Metal Oxide Semiconductor Field Effect Transistor, Metal Oxide Semiconductor Field Effect Transistor), and the other end is connected to the output Vout.
  • MOS also known as MOS tube, MOSFET, Metal Oxide Semiconductor Field Effect Transistor, Metal Oxide Semiconductor Field Effect Transistor
  • the secondary coils of the N transformers are connected in series and then connected to the compensation inductor Lc.
  • the VR type N-phase power supply includes N inductors: lc1 ⁇ lcN, one end of the N inductors is connected to the upper and lower MOS, and the other end is connected to the output Vout.
  • obtaining a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle includes: selecting any phase current in the N-phase power supply as the target current; sampling the target current to obtain a sampling set; selecting multiple sampling data that fall within a single switching cycle from the sampling set; and composing the multiple sampling data into a sampling sequence.
  • composing the multiple sampling data into a sampling sequence includes: arranging the multiple sampling data in a sampling order to obtain a sampling sequence.
  • selecting multiple sampling data that fall within a single switching cycle from the sampling set includes: determining the duration of a single switching cycle; and selecting multiple sampling data within the duration from the sampling set.
  • determining the duration of a single switching cycle includes: querying the duration from a memory in a power supply controller.
  • the number of sampled data in a single switching cycle is not less than twice the number of pulsations. That is, on the line segment AB shown in FIG2 , at least two data points need to be sampled so as to determine the current direction based on the at least two data points.
  • S102 Determine the number of pulsations of the target current in a single switching cycle based on the sampling sequence.
  • determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence includes: calculating the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence; calculating the product of adjacent differences in the difference sequence, and counting the number of negative products; increasing the number of negative products by one to obtain the number of pulsations.
  • the sampling data in the sampling sequence are arranged in the order of sampling: S 0 , S 1 , ..., S M-1
  • the difference sequence can be: S 0 -S 1 , S 1 -S 2 ..., S M-2 -S M-1 or S 1 -S 0 , S 2 -S 1 ..., S M-1 -S M-2 .
  • M is the number of sampling data within a single switching cycle.
  • Calculating the difference between adjacent sampling data in the sampling sequence includes: determining multiple pairs of adjacent sampling data in the sampling sequence; and subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  • Calculating the difference between adjacent sampling data in the sampling sequence includes: determining multiple pairs of adjacent sampling data in the sampling sequence; and subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  • the power configuration information includes: the duration of a single switching cycle, the first power parameter corresponding to the N-phase power supply of the TLVR type, the second power parameter corresponding to the N-phase power supply of the VR type, the value of N and the number M of sampled data within a single switching cycle.
  • the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data in a single switching cycle stored in the memory are modified.
  • the steps of obtaining a sampling sequence of the target current of any phase in the N-phase power supply in a single switching cycle are executed; the number of pulsations of the target current in a single switching cycle is determined based on the sampling sequence; and when the number of pulsations is greater than N+1, the steps of determining that the N-phase power supply is a TLVR type N-phase power supply are performed to re-detect the power supply.
  • a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply is determined; and power control is performed according to the first power supply parameter or the second power supply parameter.
  • Determining the first power supply parameter corresponding to a TLVR type N-phase power supply or the second power supply parameter corresponding to a VR type N-phase power supply includes: querying the first power supply parameter or the second power supply parameter from a memory in a power supply controller.
  • the first power supply parameter or the second power supply parameter may include: the power supply output voltage, the power supply sampling voltage, the difference between the power supply output voltage and the power supply sampling voltage, etc.
  • the present embodiment can utilize the power supply controller to automatically detect the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, and then determine the number of pulsations of the single-phase target current within a single switching cycle based on the sampling sequence, and thus determine the number of current jumps of the single-phase target current within a single switching cycle; when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the present application can automatically detect the type of power supply without manual intervention, thereby improving detection efficiency and accuracy, and can also provide a prerequisite for power supply configuration.
  • the inductor current of phase1 (stage 1) rises first and then falls, and the number of pulsations is 2. If the start time of the sampling window is not aligned with the edge time of PWM1, the number of pulsations obtained is increased by 1, becoming 3 times.
  • the inductor current is not only affected by the upper and lower bridge arm switches of phase 1, but also the upper and lower bridge arm switch signals of other phases are coupled through the transformer. Therefore, in a switching cycle of the three-phase TLVR power supply, the pulsation number of the phase 1 inductor current is the same as the current pulsation number of the compensation inductor lc, as shown in Figure 3. 6 times. Based on this, it can be deduced that the pulsation number of the phase 1 inductor current of the N-phase TLVR power supply is N*2 times. Similarly, if the start time of the sampling window is not aligned with the edge time of PWM1, the obtained pulsation number is increased by 1, becoming N*2+1 times.
  • the power supply controller can determine the number of pulsations of the inductor current by sampling the inductor current waveform of phase 1, and then distinguish whether the power supply is a TLVR or ordinary VR power supply based on the number of pulsations. Due to the sampling error, the number of current pulsations obtained by sampling may have a relatively small deviation from the actual value.
  • the judgment condition is set in this embodiment as follows: for an N-phase power supply (N ⁇ 2), if the number of pulsations of the inductor current of a certain phase obtained by sampling is less than or equal to N+1, it is judged to be an ordinary VR power supply, and if it is greater than N+1, it is judged to be a TLVR power supply.
  • the power supply controller determines whether the number of sampling points of a certain phase inductor current is M. If yes, proceed to step (2); otherwise, continue sampling;
  • the optional detection process includes: continuously sampling to obtain 40 sampling values, recorded as: S 0 , S 1 , ..., S 39 , subtracting adjacent sampling values, and then multiplying adjacent subtraction results, counting the number of negative numbers in the multiplication result, and adding 1 to the statistical result to obtain the number of current pulsations. If the number of pulsations is less than or equal to 8, it is determined to be a common VR power supply, and if it is greater than 8, it is determined to be a TLVR power supply.
  • this embodiment subtracts adjacent sampling values, then multiplies adjacent subtraction results, performs negative statistics on the multiplication results, and the statistical result plus 1 is the number of current pulsations. Therefore, the power supply controller is used to calculate the number of pulsations of the single-phase inductor current in a switching cycle to distinguish TLVR from ordinary VR, without the need to build an additional detection circuit, and the method is simple and efficient.
  • a power supply detection device provided in an embodiment of the present application is introduced below.
  • the power supply detection device described below and the power supply detection method described above can be referenced to each other.
  • an embodiment of the present application discloses a power supply detection device, which is applied to a power supply controller, including:
  • the acquisition module 701 is configured to acquire a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2:
  • a determination module 702 is configured to determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence
  • the detection module 702 is configured to determine that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
  • the acquisition module includes:
  • a first selection unit is configured to select any one phase current from the N-phase power supply as a target current
  • the sampling unit is configured to sample the target current to obtain a sampling set
  • a second selection unit is configured to select a plurality of sampling data falling within a single switching cycle from the sampling set
  • the composition unit is configured to compose a plurality of sampling data into a sampling sequence.
  • the constituent unit may be configured as:
  • the second selection unit may be configured to:
  • the second selection unit may be configured to:
  • the duration is queried from the memory in the power controller.
  • the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
  • the determining module includes:
  • a first calculation unit is configured to calculate the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence
  • the second calculation unit is configured to calculate the product of adjacent difference values in the difference sequence and count the number of negative products
  • the determination unit is configured to increase the number of times the product is a negative number by one to obtain the number of pulsations.
  • the first calculation unit may be configured as:
  • sampling data at the previous position is subtracted from the sampling data at the next position.
  • the first calculation unit may be configured as:
  • it also includes:
  • the query module is configured to query the value of N from the memory in the power controller before determining the size of the number of pulsations and N+1.
  • the detection module is further configured to:
  • the N-phase power supply is a VR type N-phase power supply.
  • it also includes:
  • the control module is configured to determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
  • control module may be configured as:
  • the first power parameter or the second power parameter is queried from a memory in the power controller.
  • it also includes:
  • the import module is configured to import power supply configuration information into the memory in the power supply controller before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle;
  • the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the N-phase power supply of the TLVR type, a second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
  • it also includes:
  • the modification module is configured to modify the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory when a configuration modification instruction is received.
  • the steps in the acquisition module, the determination module and the detection module are executed.
  • this embodiment provides a power supply detection device that can automatically detect the type of power supply, improve detection efficiency and accuracy, and provide a prerequisite for power supply configuration.
  • An electronic device provided in an embodiment of the present application is introduced below.
  • the electronic device described below and the power supply detection method and device described above can be referenced to each other.
  • an electronic device including:
  • Memory 801 configured to store computer programs
  • the processor 802 is configured to execute a computer program to implement the method disclosed in any of the above embodiments.
  • an embodiment of the present application also provides a server as the above-mentioned electronic device.
  • the server may include: at least one processor, at least one memory, a power supply, a communication interface, an input/output interface, and a communication bus.
  • the memory is configured to store a computer program, which is loaded and executed by the processor to implement the relevant steps in the power detection method disclosed in any of the above-mentioned embodiments.
  • the power supply is configured to provide operating voltage for each hardware device on the server;
  • the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application and is not limited here;
  • the input and output interface is configured to obtain external input data or output data to the outside world, and its interface type can be selected according to application needs and is not limited here.
  • the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc.
  • the resources stored thereon include operating system, computer programs and data, etc.
  • the storage method can be temporary storage or permanent storage.
  • the operating system is configured to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, which can be Windows Server, Netware, Unix, Linux, etc.
  • the computer program can further include computer programs that can be used to complete other specific tasks.
  • data can also include data such as developer information of virtual machines.
  • the embodiment of the present application also provides a terminal as the above electronic device.
  • the terminal may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
  • the terminal in this embodiment includes: a processor and a memory.
  • the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array).
  • the processor may also include a main processor and a coprocessor.
  • the main processor is a processor configured to process data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor configured to process data in a standby state.
  • the processor may be integrated with a GPU (Graphics Processing Unit), which is configured to be responsible for rendering and drawing the content to be displayed on the display screen.
  • the processor may also include an AI (Artificial Intelligence) processor, which is configured to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory may include one or more non-volatile readable storage media, and the computer-readable storage medium may be non-transitory.
  • the memory may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
  • the memory is at least configured to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the power detection method performed by the terminal side disclosed in any of the aforementioned embodiments.
  • the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage.
  • the operating system may include Windows, Unix, Linux, etc.
  • the data may include, but is not limited to, update information of the application.
  • the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.
  • a non-volatile readable storage medium provided in an embodiment of the present application is introduced below.
  • the non-volatile readable storage medium described below and the power supply detection method, device and apparatus described above can be referenced to each other.
  • a non-volatile readable storage medium is configured to store a computer program, wherein the computer program, when executed by a processor, implements the power detection method disclosed in the above embodiment.
  • the non-volatile readable storage medium is a computer-readable storage medium, which, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc.
  • the resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.
  • the following steps can be implemented: obtaining a sampling sequence of the target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2; determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and determining that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
  • the following steps can be implemented: select any phase current in an N-phase power supply as the target current; sample the target current to obtain a sampling set; select multiple sampling data that fall within a single switching cycle in the sampling set; and group the multiple sampling data into a sampling sequence.
  • a plurality of sampling data are arranged in the order of sampling to obtain a sampling sequence.
  • the following steps can be implemented: determining the duration of a single switching cycle; and selecting a plurality of sampling data within the duration in a sampling set.
  • the following steps can be implemented: calculating the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence; calculating the product of adjacent differences in the difference sequence, and counting the number of negative products; increasing the number of negative products by one to obtain the number of pulsations.
  • the following steps can be implemented: determining multiple pairs of adjacent sampling data in a sampling sequence; subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  • the following steps can be implemented: determining multiple pairs of adjacent sampling data in a sampling sequence; subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  • the following steps can be implemented: when the number of pulsations is not greater than N+1, determining that the N-phase power supply is a VR type N-phase power supply.
  • the following steps can be implemented: determining a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply; and performing power control according to the first power supply parameter or the second power supply parameter.
  • the following steps can be implemented: querying the first power parameter or the second power parameter from the memory in the power controller.
  • the following steps can be implemented: before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, the power supply configuration information is imported into the memory in the power supply controller; the power supply configuration information includes: the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
  • the following steps can be implemented: when a configuration modification instruction is received, the duration of a single switching cycle stored in the memory, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle are modified.
  • a power detection circuit provided in an embodiment of the present application is introduced below.
  • the power detection circuit described below can be cross-referenced with any of the above embodiments.
  • An embodiment of the present application discloses a power supply detection circuit, including: a power supply controller, a TLVR type N-phase power supply or a VR type N-phase power supply connected to the power supply controller; wherein N ⁇ 2; the power supply controller is configured to execute the method of any of the aforementioned embodiments.
  • it also includes: a memory connected to the power supply controller, the memory is configured to store a power supply profile, the power supply profile records: the duration of a single switching cycle, a first power supply parameter corresponding to a TLVR type N-phase power supply, a second power supply parameter corresponding to a VR type N-phase power supply, the value of N and the number of sampled data within a single switching cycle.
  • the power supply controller is configured to: obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the power supply controller is configured to: arrange the plurality of sampling data in a sampling order to obtain a sampling sequence.
  • the power supply controller is configured to: determine the duration of a single switching cycle; and select a plurality of sampling data within the duration from the sampling set.
  • the power controller is configured to query the duration from a memory in the power controller.
  • the power supply controller is configured to: calculate the difference between adjacent sampling data in a sampling sequence to obtain a difference sequence; calculate the product of adjacent differences in the difference sequence, and count the number of negative products; and increase the number of negative products by one to obtain the number of pulsations.
  • the power controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at the next position from the sampling data at the previous position in each pair of adjacent sampling data.
  • the power controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  • the power controller is configured to query the value of N from a memory in the power controller.
  • the power supply controller is configured to: when the number of pulsations is not greater than N+1, determine that the N-phase power supply is a VR-type N-phase power supply.
  • the power controller is configured to: determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
  • the power controller is configured to query the first power parameter or the second power parameter from a memory in the power controller.
  • the power supply controller is configured to: import power supply configuration information into a memory in the power supply controller before obtaining a sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the TLVR type N-phase power supply, a second power supply parameter corresponding to the VR type N-phase power supply, the value of N and the number of sampling data within a single switching cycle.
  • the power supply controller is configured to: after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data within a single switching cycle stored in a memory, execute a sampling sequence for obtaining a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ⁇ 2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
  • the steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two.
  • the software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM (Compact Disc Read-Only Memory), or any other form of non-volatile readable storage medium known in the art.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Dc-Dc Converters (AREA)

Abstract

A power supply detection method and apparatus, a device, a medium, and a circuit. The power supply detection method is applied to a power supply controller and comprises: acquiring a sampling sequence of target current of any phase in an N-phase power supply within a single switching period, wherein N≥2 (S101); determining the number of pulses of the target current within the single switching period on the basis of the sampling sequence (S102); determining whether the number of pulses is greater than N+1 (S103); and if the number of pulses is greater than N+1, determining that the N-phase power supply is an N-phase power supply of a TLVR type (S104); otherwise, determining that the N-phase power supply is an N-phase power supply of a VR type (S105). In this way, the type of the power supply can be automatically detected, and the detection efficiency and accuracy are improved.

Description

一种电源检测方法、装置、设备、非易失性可读存储介质及电路A power supply detection method, device, equipment, non-volatile readable storage medium and circuit
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2022年12月06日提交中国专利局,申请号为202211554045.4,申请名称为“一种电源检测方法、装置、设备、介质及电路”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on December 6, 2022, with application number 202211554045.4 and application name “A power supply detection method, device, equipment, medium and circuit”, all contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请涉及电路检测技术领域,特别涉及一种电源检测方法、装置、设备、非易失性可读存储介质及电路。The present application relates to the field of circuit detection technology, and in particular to a power supply detection method, device, equipment, non-volatile readable storage medium and circuit.
背景技术Background technique
目前,电源类型众多,且不同类型的电源需要采用相应的参数和逻辑控制其运行,因此需要对电源的类型进行鉴别。当前需要技术人员人工鉴别电源类型,缺乏通用的电源类型检测方案。At present, there are many types of power supplies, and different types of power supplies require corresponding parameters and logic to control their operation, so it is necessary to identify the type of power supply. Currently, technicians are required to manually identify the type of power supply, and there is a lack of a universal power supply type detection solution.
针对上述的问题,目前尚未提出有效的解决方案。To address the above-mentioned problems, no effective solution has been proposed yet.
发明内容Summary of the invention
有鉴于此,本申请的目的在于提供一种电源检测方法、装置、设备、非易失性可读存储介质及电路,以检测电源类型。其可选方案如下:In view of this, the purpose of this application is to provide a power detection method, device, equipment, non-volatile readable storage medium and circuit to detect the power type. The optional solutions are as follows:
第一方面,本申请提供了一种电源检测方法,应用于电源控制器,包括:In a first aspect, the present application provides a power detection method, which is applied to a power controller, comprising:
获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;Obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ≥ 2;
基于采样序列确定目标电流在单一开关周期内的脉动次数;Determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence;
在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。When the number of pulsations is greater than N+1, it is determined that the N-phase power supply is a TLVR type N-phase power supply.
可选地,获取N相电源中的任一相目标电流在单一开关周期内的采样序列,包括:Optionally, obtaining a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle includes:
在N相电源中任选一相电流作为目标电流;Select any phase current from the N-phase power supply as the target current;
对目标电流进行采样,得到采样集合;Sampling the target current to obtain a sampling set;
在采样集合中选择落入单一开关周期内的多个采样数据;Selecting a plurality of sampling data falling within a single switching cycle in the sampling set;
将多个采样数据组成采样序列。Combine multiple sampling data into a sampling sequence.
可选地,将多个采样数据组成采样序列,包括:Optionally, a plurality of sampling data are grouped into a sampling sequence, including:
将多个采样数据按照采样先后顺序排列,得到采样序列。Arrange multiple sampling data in the order of sampling to obtain a sampling sequence.
可选地,在采样集合中选择落入单一开关周期内的多个采样数据,包括:Optionally, a plurality of sampling data falling within a single switching cycle is selected from the sampling set, including:
确定单一开关周期的时长;Determine the duration of a single switching cycle;
在采样集合中选择时长内的多个采样数据。Select multiple sampling data within a duration in a sampling set.
可选地,确定单一开关周期的时长,包括:Optionally, determining the duration of a single switching cycle includes:
从电源控制器中的存储器中查询时长。The duration is queried from the memory in the power controller.
可选地,单一开关周期内的采样数据的个数不小于脉动次数的2倍。Optionally, the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
可选地,基于采样序列确定目标电流在单一开关周期内的脉动次数,包括:Optionally, determining the number of pulsations of the target current in a single switching cycle based on the sampling sequence includes:
计算采样序列中的相邻采样数据的差值,得到差值序列;Calculate the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence;
计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;Calculate the product of adjacent differences in the difference sequence and count the number of negative products;
使乘积为负数的个数递增一,得到脉动次数。Increase the number of negative products by one to get the number of pulsations.
可选地,计算采样序列中的相邻采样数据的差值,包括:Optionally, calculating the difference between adjacent sampling data in the sampling sequence includes:
确定采样序列中的多对相邻采样数据; Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。In each pair of adjacent sampling data, the sampling data at the previous position is subtracted from the sampling data at the next position.
可选地,计算采样序列中的相邻采样数据的差值,包括:Optionally, calculating the difference between adjacent sampling data in the sampling sequence includes:
确定采样序列中的多对相邻采样数据;Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
可选地,在判断脉动次数与N+1的大小之前,还包括:Optionally, before determining the size of the number of pulses and N+1, the method further includes:
从电源控制器中的存储器中查询N的取值。The value of N is queried from the memory in the power controller.
可选地,还包括:Optionally, it also includes:
在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。When the number of pulsations is not greater than N+1, it is determined that the N-phase power supply is a VR type N-phase power supply.
可选地,还包括:Optionally, it also includes:
确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;Determine a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply;
按照第一电源参数或第二电源参数进行电源控制。Power control is performed according to the first power parameter or the second power parameter.
可选地,确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数,包括:Optionally, determining a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply includes:
从电源控制器中的存储器中查询第一电源参数或第二电源参数。The first power parameter or the second power parameter is queried from a memory in the power controller.
可选地,获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,还包括:Optionally, before obtaining a sampling sequence of a target current of any phase in the N-phase power supply within a single switching cycle, the method further includes:
将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。Import the power configuration information into the memory in the power controller; the power configuration information includes: the duration of a single switching cycle, the first power parameter corresponding to the N-phase power supply of the TLVR type, the second power parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampled data within a single switching cycle.
可选地,还包括:Optionally, it also includes:
在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。When a configuration modification instruction is received, the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory are modified.
可选地,修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源的步骤。Optionally, after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data within a single switching cycle stored in the memory, a sampling sequence is executed to obtain the target current of any phase in the N-phase power supply within a single switching cycle; wherein N≥2; the number of pulsations of the target current within a single switching cycle is determined based on the sampling sequence; and when the number of pulsations is greater than N+1, the step of determining that the N-phase power supply is a TLVR type N-phase power supply.
第二方面,本申请提供了一种电源检测装置,应用于电源控制器,包括:In a second aspect, the present application provides a power detection device, applied to a power controller, comprising:
获取模块,被设置为获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;An acquisition module is configured to acquire a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2;
确定模块,被设置为基于采样序列确定目标电流在单一开关周期内的脉动次数;A determination module is configured to determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence;
检测模块,被设置为在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。The detection module is configured to determine that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
可选地,获取模块包括:Optionally, the acquisition module includes:
第一选择单元,被设置为在N相电源中任选一相电流作为目标电流;A first selection unit is configured to select any one phase current from the N-phase power supply as a target current;
采样单元,被设置为对目标电流进行采样,得到采样集合;The sampling unit is configured to sample the target current to obtain a sampling set;
第二选择单元,被设置为在采样集合中选择落入单一开关周期内的多个采样数据;A second selection unit is configured to select a plurality of sampling data falling within a single switching cycle from the sampling set;
组成单元,被设置为将多个采样数据组成采样序列。The composition unit is configured to compose a plurality of sampling data into a sampling sequence.
可选地,组成单元可以被设置为:Optionally, the component unit can be set to:
将多个采样数据按照采样先后顺序排列,得到采样序列。Arrange multiple sampling data in the order of sampling to obtain a sampling sequence.
可选地,第二选择单元可以被设置为:Optionally, the second selection unit may be configured as:
确定单一开关周期的时长;Determine the duration of a single switching cycle;
在采样集合中选择时长内的多个采样数据。Select multiple sampling data within a duration in a sampling set.
可选地,第二选择单元可以被设置为: Optionally, the second selection unit may be configured as:
从电源控制器中的存储器中查询时长。The duration is queried from the memory in the power controller.
可选地,单一开关周期内的采样数据的个数不小于脉动次数的2倍。Optionally, the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
可选地,确定模块包括:Optionally, the determination module includes:
第一计算单元,被设置为计算采样序列中的相邻采样数据的差值,得到差值序列;A first calculation unit is configured to calculate the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence;
第二计算单元,被设置为计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;The second calculation unit is configured to calculate the product of adjacent difference values in the difference sequence and count the number of negative products;
确定单元,被设置为使乘积为负数的个数递增一,得到脉动次数。The determination unit is configured to increase the number of times the product is a negative number by one to obtain the number of pulsations.
可选地,第一计算单元可以被设置为:Optionally, the first computing unit may be configured as:
确定采样序列中的多对相邻采样数据;Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。In each pair of adjacent sampling data, the sampling data at the previous position is subtracted from the sampling data at the next position.
可选地,第一计算单元可以被设置为:Optionally, the first computing unit may be configured as:
确定采样序列中的多对相邻采样数据;Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
可选地,还包括:Optionally, it also includes:
查询模块,被设置为在判断脉动次数与N+1的大小之前,从电源控制器中的存储器中查询N的取值。The query module is configured to query the value of N from the memory in the power controller before determining the size of the number of pulsations and N+1.
可选地,检测模块还被设置为:Optionally, the detection module is further configured to:
在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。When the number of pulsations is not greater than N+1, it is determined that the N-phase power supply is a VR type N-phase power supply.
可选地,还包括:Optionally, it also includes:
控制模块,被设置为确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。The control module is configured to determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
可选地,控制模块可以被设置为:Optionally, the control module may be configured to:
从电源控制器中的存储器中查询第一电源参数或第二电源参数。The first power parameter or the second power parameter is queried from a memory in the power controller.
可选地,还包括:Optionally, it also includes:
导入模块,被设置为在获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。The import module is configured to import power supply configuration information into the memory in the power supply controller before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the N-phase power supply of the TLVR type, a second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
可选地,还包括:Optionally, it also includes:
修改模块,被设置为在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。The modification module is configured to modify the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory when a configuration modification instruction is received.
可选地,修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取模块、确定模块、检测模块中的步骤。Optionally, after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data in a single switching cycle stored in the memory, the steps in the acquisition module, the determination module and the detection module are executed.
第三方面,本申请提供了一种电子设备,包括:In a third aspect, the present application provides an electronic device, including:
存储器,被设置为存储计算机程序;a memory arranged to store a computer program;
处理器,被设置为执行计算机程序,以实现前述公开的电源检测方法。The processor is configured to execute a computer program to implement the power supply detection method disclosed above.
第四方面,本申请提供了一种非易失性可读存储介质,被设置为保存计算机程序,其中,计算机程序被处理器执行时实现前述公开的电源检测方法。In a fourth aspect, the present application provides a non-volatile readable storage medium, which is configured to store a computer program, wherein the computer program implements the aforementioned disclosed power detection method when executed by a processor.
第五方面,本申请提供了一种电源检测电路,包括:电源控制器、与电源控制器连接的TLVR类型的N相电源或VR类型的N相电源;其中,N≥2;电源控制器被设置为执行前述任一项的方法。In a fifth aspect, the present application provides a power supply detection circuit, comprising: a power supply controller, a TLVR type N-phase power supply or a VR type N-phase power supply connected to the power supply controller; wherein N≥2; the power supply controller is configured to execute any of the aforementioned methods.
可选地,还包括:与电源控制器连接的存储器,存储器被设置为存储电源配置文件,电源配置文件记录有:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。 Optionally, it also includes: a memory connected to the power supply controller, the memory is configured to store a power supply profile, the power supply profile records: the duration of a single switching cycle, a first power supply parameter corresponding to a TLVR type N-phase power supply, a second power supply parameter corresponding to a VR type N-phase power supply, the value of N and the number of sampled data within a single switching cycle.
可选地,电源控制器被设置为:获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。Optionally, the power supply controller is configured to: obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
可选地,电源控制器被设置为:在N相电源中任选一相电流作为目标电流;对目标电流进行采样,得到采样集合;在采样集合中选择落入单一开关周期内的多个采样数据;将多个采样数据组成采样序列。Optionally, the power supply controller is configured to: select any phase current in the N-phase power supply as the target current; sample the target current to obtain a sampling set; select multiple sampling data falling within a single switching cycle in the sampling set; and group the multiple sampling data into a sampling sequence.
可选地,电源控制器被设置为:将多个采样数据按照采样先后顺序排列,得到采样序列。Optionally, the power supply controller is configured to: arrange the plurality of sampling data in a sampling order to obtain a sampling sequence.
可选地,电源控制器被设置为:确定单一开关周期的时长;在采样集合中选择时长内的多个采样数据。Optionally, the power supply controller is configured to: determine the duration of a single switching cycle; and select a plurality of sampling data within the duration in the sampling set.
可选地,电源控制器被设置为:从电源控制器中的存储器中查询时长。Optionally, the power controller is configured to query the duration from a memory in the power controller.
可选地,电源控制器被设置为:计算采样序列中的相邻采样数据的差值,得到差值序列;计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;使乘积为负数的个数递增一,得到脉动次数。Optionally, the power controller is configured to: calculate the difference between adjacent sampling data in a sampling sequence to obtain a difference sequence; calculate the product of adjacent differences in the difference sequence, and count the number of negative products; and increase the number of negative products by one to obtain the number of pulsations.
可选地,电源控制器被设置为:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。Optionally, the power supply controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at a previous position from the sampling data at a subsequent position in each pair of adjacent sampling data.
可选地,电源控制器被设置为:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Optionally, the power supply controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at a previous position from the sampling data at a subsequent position in each pair of adjacent sampling data.
可选地,电源控制器被设置为:从电源控制器中的存储器中查询N的取值。Optionally, the power controller is configured to: query the value of N from a memory in the power controller.
可选地,电源控制器被设置为:在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。Optionally, the power supply controller is configured to: when the number of pulsations is not greater than N+1, determine that the N-phase power supply is a VR type N-phase power supply.
可选地,电源控制器被设置为:确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。Optionally, the power controller is configured to: determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
可选地,电源控制器被设置为:从电源控制器中的存储器中查询第一电源参数或第二电源参数。Optionally, the power controller is configured to query the first power parameter or the second power parameter from a memory in the power controller.
可选地,电源控制器被设置为:在获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。Optionally, the power supply controller is configured to import power supply configuration information into a memory in the power supply controller before obtaining a sampling sequence of target current of any phase in the N-phase power supply within a single switching cycle; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the TLVR type N-phase power supply, a second power supply parameter corresponding to the VR type N-phase power supply, the value of N and the number of sampling data within a single switching cycle.
可选地,电源控制器被设置为:在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。Optionally, the power supply controller is configured to, upon receiving a configuration modification instruction, modify the duration of a single switching cycle stored in the memory, a first power supply parameter corresponding to an N-phase power supply of the TLVR type, a second power supply parameter corresponding to an N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle.
可选地,电源控制器被设置为:在修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源的步骤。Optionally, the power supply controller is configured to: after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data within a single switching cycle stored in the memory, execute a sampling sequence for obtaining the target current of any phase in the N-phase power supply within a single switching cycle; wherein N≥2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
通过以上方案可知,本申请提供了一种电源检测方法,应用于电源控制器,包括:获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。It can be seen from the above scheme that the present application provides a power supply detection method, which is applied to a power supply controller, including: obtaining a sampling sequence of the target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2; determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence; when the number of pulsations is greater than N+1, determining that the N-phase power supply is a TLVR type N-phase power supply.
可见,本申请能够利用电源控制器自动检测N相电源中的任一相目标电流在单一开关周期内的采样序列,然后基于采样序列可以确定该单相目标电流在单一开关周期内的脉动次数,也就确定了该单相目标电流在单一开关周期内的电流跳变次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。因为TLVR类型的N相电源的单相电流在单一开关周期内的电流跳变次数最多为2N+1,而VR类型的N相电源的单相电流在单一开关周期内的电流跳变次数最多为N。因此在某一N相电源的单相电流在单一开关周期内的电流跳变次数大于N+1时,其必定不是VR类型的N相电源,而是TLVR类型的N相电源。据此,本申 请可自动检测出电源的类型,而无需人工参与,因此可以提升检测效率和准确性,也能够为电源配置提供前提基础。It can be seen that the present application can utilize the power supply controller to automatically detect the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, and then determine the number of pulsations of the single-phase target current within a single switching cycle based on the sampling sequence, and thus determine the number of current jumps of the single-phase target current within a single switching cycle; when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply. Because the number of current jumps of the single-phase current of the TLVR type N-phase power supply within a single switching cycle is at most 2N+1, while the number of current jumps of the single-phase current of the VR type N-phase power supply within a single switching cycle is at most N. Therefore, when the number of current jumps of the single-phase current of a certain N-phase power supply within a single switching cycle is greater than N+1, it must not be a VR type N-phase power supply, but a TLVR type N-phase power supply. Accordingly, the present application The type of power supply can be automatically detected without human intervention, thus improving detection efficiency and accuracy, and also providing a prerequisite for power supply configuration.
相应地,本申请提供的一种电源检测装置、设备、非易失性可读存储介质及电路,也同样具有上述技术效果。Correspondingly, a power supply detection device, equipment, non-volatile readable storage medium and circuit provided by the present application also have the above-mentioned technical effects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
图1为本申请公开的一种电源检测方法流程图;FIG1 is a flow chart of a power supply detection method disclosed in the present application;
图2为本申请公开的一种VR类型的三相电源中的其中一相电流PWM1的跳变波形示意图;FIG2 is a schematic diagram of a jump waveform of a phase current PWM1 in a VR type three-phase power supply disclosed in the present application;
图3为本申请公开的一种TLVR类型的三相电源中的其中一相电流PWM1的跳变波形示意图;FIG3 is a schematic diagram of a jump waveform of a current PWM1 of one phase in a TLVR type three-phase power supply disclosed in the present application;
图4为本申请公开的一种TLVR类型的N相电源的电路图;FIG4 is a circuit diagram of a TLVR type N-phase power supply disclosed in the present application;
图5为本申请公开的一种VR类型的N相电源的电路图;FIG5 is a circuit diagram of a VR type N-phase power supply disclosed in the present application;
图6为本申请公开的另一电源检测方法流程图;FIG6 is a flow chart of another power supply detection method disclosed in the present application;
图7为本申请公开的一种电源检测装置示意图;FIG7 is a schematic diagram of a power supply detection device disclosed in the present application;
图8为本申请公开的一种电子设备示意图。FIG8 is a schematic diagram of an electronic device disclosed in the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
目前,电源类型众多,且不同类型的电源需要采样相应的参数和逻辑控制其运行,因此需要对电源的类型进行鉴别。当前需要技术人员人工鉴别电源类型,缺乏通用的电源类型检测方案。为此,本申请提供了一种电源检测方案,能够自动检测出电源的类型,可以提升检测效率和准确性,也能够为电源配置提供前提基础。At present, there are many types of power supplies, and different types of power supplies require sampling of corresponding parameters and logic to control their operation, so it is necessary to identify the type of power supply. Currently, technicians are required to manually identify the type of power supply, and there is a lack of a universal power supply type detection solution. To this end, the present application provides a power supply detection solution that can automatically detect the type of power supply, improve detection efficiency and accuracy, and provide a prerequisite for power supply configuration.
参见图1所示,本申请实施例公开了一种电源检测方法,应用于电源控制器,包括:As shown in FIG1 , an embodiment of the present application discloses a power supply detection method, which is applied to a power supply controller, including:
S101、获取N相电源中的任一相目标电流在单一开关周期内的采样序列。S101 . Obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle.
在本实施例中,N≥2。电源控制器是N相电源所连主板中的控制器,其用户控制电源的运行逻辑。In this embodiment, N≥2. The power controller is a controller in a mainboard to which the N-phase power supply is connected, and the user controls the operation logic of the power supply.
请参见图2,图2示意了VR(Voltage Regulator,电压调节器)类型的三相电源中的其中一相电流PWM1的跳变波形。如图2所示,该相电流在单一开关周期内存在2次跳变:A→B和B→C;或B→C和C→D。考虑到采样起始点难以与跳变位置(如A、B、C、D点)保持重合,因此取2+1作为VR类型的三相电源的某一相电流在单一开关周期内脉动次数。例如:采样起始点为AB的中点E,那么单一开关周期的采样结束位置即为CD的中点F,在此单一开关周期内就存在3次跳变:E→B、B→C、C→F。据此可确定,VR类型的N相电源的某一相电流在单一开关周期内的脉动次数最多为N。Please refer to Figure 2, which shows the jump waveform of one phase current PWM1 in a three-phase power supply of VR (Voltage Regulator) type. As shown in Figure 2, the phase current has two jumps in a single switching cycle: A→B and B→C; or B→C and C→D. Considering that it is difficult for the sampling starting point to coincide with the jump position (such as points A, B, C, and D), 2+1 is taken as the number of pulsations of a phase current of a VR type three-phase power supply in a single switching cycle. For example: the sampling starting point is the midpoint E of AB, then the sampling end position of a single switching cycle is the midpoint F of CD, and there are 3 jumps in this single switching cycle: E→B, B→C, and C→F. Based on this, it can be determined that the maximum number of pulsations of a phase current of a VR type N-phase power supply in a single switching cycle is N.
请参见图3,图3示意了TLVR(Trans-inductor Voltage Regulator,跨电感电压调节器)类型的三相电源中的其中一相电流PWM1的跳变波形。如图3所示,PWM1的跳变波形受电源中补偿电感lc的影响,该相电流在单一开关周期内存在6次跳动。同样,考虑到检测起始点难以与跳动位置保持重合,因此取6+1作为TLVR类型的三相电源的某一相电流在单一开关周期内脉动次数。据此可确定,TLVR类型的N相电源的某一相电流在单一开关周期内的脉动次数最多为2N+1。那么在某一N相电源的单相电流在单一开关周期内的电流跳变次数大于N+1时,其必定不是VR类型的N相电源,而是TLVR类型的N相电源。反之,在某一N相电源的单 相电流在单一开关周期内的电流跳变次数不大于N+1时,其必定不是TLVR类型的N相电源,而是VR类型的N相电源。本实施例据此可判定电源是TLVR类型还是VR类型。Please refer to Figure 3, which illustrates the jump waveform of one of the phase currents PWM1 in a TLVR (Trans-inductor Voltage Regulator) type three-phase power supply. As shown in Figure 3, the jump waveform of PWM1 is affected by the compensation inductor lc in the power supply, and the phase current jumps 6 times in a single switching cycle. Similarly, considering that it is difficult for the detection starting point to coincide with the jump position, 6+1 is taken as the number of pulsations of a phase current of a TLVR type three-phase power supply in a single switching cycle. Based on this, it can be determined that the number of pulsations of a phase current of a TLVR type N-phase power supply in a single switching cycle is at most 2N+1. Then, when the number of current jumps of a single-phase current of a certain N-phase power supply in a single switching cycle is greater than N+1, it must not be a VR type N-phase power supply, but a TLVR type N-phase power supply. Conversely, in a single phase current of a certain N-phase power supply When the number of current jumps of the phase current in a single switching cycle is not greater than N+1, it is definitely not a TLVR type N-phase power supply, but a VR type N-phase power supply. Based on this, this embodiment can determine whether the power supply is a TLVR type or a VR type.
其中,TLVR类型的电源相比于普通VR类型的电源大大改善了动态响应,所需滤波电容小,能够降低成本。如图4所示,TLVR类型的N相电源包括N个变压器:T1~TN,每一变压器的初级线圈的一端连接上下两个MOS(又称MOS管,MOSFET,Metal Oxide Semiconductor Field Effect Transistor,金属氧化物半导体型场效应管),另一端连接输出Vout,N个变压器的次级线圈串联在一起,然后连接补偿电感Lc。如图5所示,VR类型的N相电源包括N个电感:lc1~lcN,N个电感的一端连接上下两个MOS,另一端连接输出Vout。Among them, the TLVR type power supply greatly improves the dynamic response compared to the ordinary VR type power supply, requires less filter capacitance, and can reduce costs. As shown in Figure 4, the TLVR type N-phase power supply includes N transformers: T1~TN, one end of the primary coil of each transformer is connected to the upper and lower MOS (also known as MOS tube, MOSFET, Metal Oxide Semiconductor Field Effect Transistor, Metal Oxide Semiconductor Field Effect Transistor), and the other end is connected to the output Vout. The secondary coils of the N transformers are connected in series and then connected to the compensation inductor Lc. As shown in Figure 5, the VR type N-phase power supply includes N inductors: lc1~lcN, one end of the N inductors is connected to the upper and lower MOS, and the other end is connected to the output Vout.
在一种可选实施方式中,获取N相电源中的任一相目标电流在单一开关周期内的采样序列,包括:在N相电源中任选一相电流作为目标电流;对目标电流进行采样,得到采样集合;在采样集合中选择落入单一开关周期内的多个采样数据;将多个采样数据组成采样序列。其中,将多个采样数据组成采样序列,包括:将多个采样数据按照采样先后顺序排列,得到采样序列。其中,在采样集合中选择落入单一开关周期内的多个采样数据,包括:确定单一开关周期的时长;在采样集合中选择时长内的多个采样数据。在一种可选实施方式中,确定单一开关周期的时长,包括:从电源控制器中的存储器中查询时长。In an optional embodiment, obtaining a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle includes: selecting any phase current in the N-phase power supply as the target current; sampling the target current to obtain a sampling set; selecting multiple sampling data that fall within a single switching cycle from the sampling set; and composing the multiple sampling data into a sampling sequence. Wherein, composing the multiple sampling data into a sampling sequence includes: arranging the multiple sampling data in a sampling order to obtain a sampling sequence. Wherein, selecting multiple sampling data that fall within a single switching cycle from the sampling set includes: determining the duration of a single switching cycle; and selecting multiple sampling data within the duration from the sampling set. In an optional embodiment, determining the duration of a single switching cycle includes: querying the duration from a memory in a power supply controller.
在一种示例中,单一开关周期内的采样数据的个数不小于脉动次数的2倍。也即,在图2所示的线段AB上,需要采样至少两个数据点,以便基于至少两个数据点确定电流方向。In one example, the number of sampled data in a single switching cycle is not less than twice the number of pulsations. That is, on the line segment AB shown in FIG2 , at least two data points need to be sampled so as to determine the current direction based on the at least two data points.
S102、基于采样序列确定目标电流在单一开关周期内的脉动次数。S102 : Determine the number of pulsations of the target current in a single switching cycle based on the sampling sequence.
在一种可选实施方式中,基于采样序列确定目标电流在单一开关周期内的脉动次数,包括:计算采样序列中的相邻采样数据的差值,得到差值序列;计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;使乘积为负数的个数递增一,得到脉动次数。如果采样序列中各个采样数据按照采样先后顺序排列为:S0,S1,…,SM-1,那么差值序列可以为:S0-S1,S1-S2…,SM-2-SM-1或S1-S0,S2-S1…,SM-1-SM-2。M为单一开关周期内的采样数据的个数。In an optional implementation, determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence includes: calculating the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence; calculating the product of adjacent differences in the difference sequence, and counting the number of negative products; increasing the number of negative products by one to obtain the number of pulsations. If the sampling data in the sampling sequence are arranged in the order of sampling: S 0 , S 1 , ..., S M-1 , then the difference sequence can be: S 0 -S 1 , S 1 -S 2 ..., S M-2 -S M-1 or S 1 -S 0 , S 2 -S 1 ..., S M-1 -S M-2 . M is the number of sampling data within a single switching cycle.
其中,计算采样序列中的相邻采样数据的差值,包括:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。Calculating the difference between adjacent sampling data in the sampling sequence includes: determining multiple pairs of adjacent sampling data in the sampling sequence; and subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
其中,计算采样序列中的相邻采样数据的差值,包括:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Calculating the difference between adjacent sampling data in the sampling sequence includes: determining multiple pairs of adjacent sampling data in the sampling sequence; and subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
S103、判断脉动次数是否大于N+1;在脉动次数大于N+1的情况下,执行S104;否则,执行S105。S103, determine whether the number of pulsations is greater than N+1; if the number of pulsations is greater than N+1, execute S104; otherwise, execute S105.
在一种可选实施方式中,在判断脉动次数与N+1的大小之前,还包括:从电源控制器中的存储器中查询N的取值。可见,N的取值存储在电源控制器中的存储器中。在一种可选实施方式中,获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,还包括:将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数M。In an optional embodiment, before determining the magnitude of the number of pulsations and N+1, it also includes: querying the value of N from the memory in the power controller. It can be seen that the value of N is stored in the memory in the power controller. In an optional embodiment, before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, it also includes: importing the power configuration information into the memory in the power controller; the power configuration information includes: the duration of a single switching cycle, the first power parameter corresponding to the N-phase power supply of the TLVR type, the second power parameter corresponding to the N-phase power supply of the VR type, the value of N and the number M of sampled data within a single switching cycle.
在本实施例中,在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。其中,在修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取N相电源中的任一相目标电流在单一开关周期内的采样序列;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源的步骤,以重新对电源进行检测。In this embodiment, when a configuration modification instruction is received, the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data in a single switching cycle stored in the memory are modified. After the duration of a single switching cycle, the value of N and/or the number of sampled data in a single switching cycle stored in the memory are modified, the steps of obtaining a sampling sequence of the target current of any phase in the N-phase power supply in a single switching cycle are executed; the number of pulsations of the target current in a single switching cycle is determined based on the sampling sequence; and when the number of pulsations is greater than N+1, the steps of determining that the N-phase power supply is a TLVR type N-phase power supply are performed to re-detect the power supply.
S104、确定N相电源为TLVR类型的N相电源。S104 , determining that the N-phase power supply is a TLVR type N-phase power supply.
S105、确定N相电源为VR类型的N相电源。 S105 , determining that the N-phase power supply is a VR-type N-phase power supply.
在一种可选实施方式中,确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。其中,确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数,包括:从电源控制器中的存储器中查询第一电源参数或第二电源参数。其中,第一电源参数或第二电源参数可以包括:电源输出电压大小、电源采样电压大小、电源输出电压大小与电源采样电压大小之间的差异等。In an optional implementation, a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply is determined; and power control is performed according to the first power supply parameter or the second power supply parameter. Determining the first power supply parameter corresponding to a TLVR type N-phase power supply or the second power supply parameter corresponding to a VR type N-phase power supply includes: querying the first power supply parameter or the second power supply parameter from a memory in a power supply controller. The first power supply parameter or the second power supply parameter may include: the power supply output voltage, the power supply sampling voltage, the difference between the power supply output voltage and the power supply sampling voltage, etc.
可见,本实施例能够利用电源控制器自动检测N相电源中的任一相目标电流在单一开关周期内的采样序列,然后基于采样序列可以确定该单相目标电流在单一开关周期内的脉动次数,也就确定了该单相目标电流在单一开关周期内的电流跳变次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。因为TLVR类型的N相电源的单相电流在单一开关周期内的电流跳变次数最多为2N+1,而VR类型的N相电源的单相电流在单一开关周期内的电流跳变次数最多为N。因此在某一N相电源的单相电流在单一开关周期内的电流跳变次数大于N+1时,其必定不是VR类型的N相电源,而是TLVR类型的N相电源。据此,本申请可自动检测出电源的类型,而无需人工参与,因此可以提升检测效率和准确性,也能够为电源配置提供前提基础。It can be seen that the present embodiment can utilize the power supply controller to automatically detect the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, and then determine the number of pulsations of the single-phase target current within a single switching cycle based on the sampling sequence, and thus determine the number of current jumps of the single-phase target current within a single switching cycle; when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply. Because the number of current jumps of the single-phase current of the TLVR type N-phase power supply within a single switching cycle is at most 2N+1, and the number of current jumps of the single-phase current of the VR type N-phase power supply within a single switching cycle is at most N. Therefore, when the number of current jumps of the single-phase current of a certain N-phase power supply within a single switching cycle is greater than N+1, it must not be a VR type N-phase power supply, but a TLVR type N-phase power supply. Accordingly, the present application can automatically detect the type of power supply without manual intervention, thereby improving detection efficiency and accuracy, and can also provide a prerequisite for power supply configuration.
基于上述实施例,需要说明的是,三相普通VR电源在一个开关周期内,当其中一相电流PWM1对应的phase1的上桥臂打开、下桥臂关断时,电感承受正向电压,电感电流线性上升;当phase1的上桥臂关断、下桥臂打开时,电感承受负向电压,电感电流线性下降。上桥臂、下桥臂如图5中一个电感连接的上下两个MOS。因此三相普通VR电源在一个开关周期内,phase1(阶段1)电感电流先上升后下降,脉动次数为2。如果采样窗口的起始时间与PWM1的边沿时间不对齐,那么得到的脉动次数加1,变成3次。Based on the above embodiment, it should be noted that in a switching cycle of a three-phase ordinary VR power supply, when the upper bridge arm of phase1 corresponding to one phase current PWM1 is turned on and the lower bridge arm is turned off, the inductor is subjected to a positive voltage and the inductor current rises linearly; when the upper bridge arm of phase1 is turned off and the lower bridge arm is turned on, the inductor is subjected to a negative voltage and the inductor current decreases linearly. The upper bridge arm and the lower bridge arm are the upper and lower MOS connected to an inductor in Figure 5. Therefore, in a switching cycle of a three-phase ordinary VR power supply, the inductor current of phase1 (stage 1) rises first and then falls, and the number of pulsations is 2. If the start time of the sampling window is not aligned with the edge time of PWM1, the number of pulsations obtained is increased by 1, becoming 3 times.
相应地,三相TLVR电源在一个开关周期内,电感电流不仅受phase1的上下桥臂开关的影响,同时其他phase的上下桥臂开关信号也会通过变压器耦合过来。因此三相TLVR电源在一个开关周期内,phase1电感电流的脉动次数与补偿电感lc的电流脉动次数相同,如图3中的6次。据此可以推导出:N相TLVR电源的phase1电感电流的脉动次数为N*2次。同理,如果采样窗口的起始时间与PWM1的边沿时间不对齐,那么得到的脉动次数加1,变成N*2+1次。Correspondingly, in a switching cycle of the three-phase TLVR power supply, the inductor current is not only affected by the upper and lower bridge arm switches of phase 1, but also the upper and lower bridge arm switch signals of other phases are coupled through the transformer. Therefore, in a switching cycle of the three-phase TLVR power supply, the pulsation number of the phase 1 inductor current is the same as the current pulsation number of the compensation inductor lc, as shown in Figure 3. 6 times. Based on this, it can be deduced that the pulsation number of the phase 1 inductor current of the N-phase TLVR power supply is N*2 times. Similarly, if the start time of the sampling window is not aligned with the edge time of PWM1, the obtained pulsation number is increased by 1, becoming N*2+1 times.
综上可得出结论:对于N相电源,电源控制器可以通过采样phase1的电感电流波形,从而判断电感电流的脉动次数,之后可根据脉动次数区分电源是TLVR还是普通VR电源。由于存在采样误差,根据采样得到的电流脉动次数可能跟实际值有比较小的偏差。为了增强抗干扰性,本实施例设定判定条件为:对于N相电源(N≥2),采样得到的某一相电感电流的脉动次数小于等于N+1,则判定是普通VR电源,大于N+1时判定是TLVR电源。In summary, it can be concluded that for an N-phase power supply, the power supply controller can determine the number of pulsations of the inductor current by sampling the inductor current waveform of phase 1, and then distinguish whether the power supply is a TLVR or ordinary VR power supply based on the number of pulsations. Due to the sampling error, the number of current pulsations obtained by sampling may have a relatively small deviation from the actual value. In order to enhance the anti-interference performance, the judgment condition is set in this embodiment as follows: for an N-phase power supply (N≥2), if the number of pulsations of the inductor current of a certain phase obtained by sampling is less than or equal to N+1, it is judged to be an ordinary VR power supply, and if it is greater than N+1, it is judged to be a TLVR power supply.
在一些实施例中,对于N相电源(N≥2),假设一个开关周期内的采样点为M个,则有:In some embodiments, for an N-phase power supply (N≥2), assuming that there are M sampling points in one switching cycle, then:
(1)电源控制器判断某一相电感电流的采样点数是否满M个,如果是,继续步骤(2),否则,继续进行采样;(1) The power supply controller determines whether the number of sampling points of a certain phase inductor current is M. If yes, proceed to step (2); otherwise, continue sampling;
(2)将M个采样点标记为S0,S1,…,SM-1(2) Mark the M sampling points as S 0 , S 1 , …, S M-1 ;
(3)相邻采样点的前者减去后者,得到S0-S1,S1-S2…,SM-2-SM-1(3) Subtract the adjacent sampling points from the former to obtain S 0 -S 1 , S 1 -S 2 , ..., S M-2 -S M-1 ;
(4)相邻差值做乘法,得到的各个乘积记为:X0,X1,…,XM-3(4) Multiply adjacent differences, and the resulting products are recorded as: X 0 , X 1 , ..., X M-3 ;
(5)统计X0,X1,…,XM-3中负数的个数,然后使负数的个数加1,即可得到当前相电感电流的脉动次数;(5) Count the number of negative numbers in X 0 , X 1 , …, X M-3 , and then add 1 to the number of negative numbers to obtain the pulsation number of the current phase inductor current;
(6)脉动次数小于等于N+1,判定是普通VR电源,大于N+1判定是TLVR电源。(6) If the number of pulsations is less than or equal to N+1, it is determined to be a normal VR power supply; if it is greater than N+1, it is determined to be a TLVR power supply.
请参见图6,以7相TLVR电源或普通VR电源为例,假设电源控制器在每个开关周期内对phase1电感电流的采样次数为40,那么可选的检测流程包括:持续采样得到40个采样值,记为:S0,S1,…,S39,相邻采样值做减法,然后相邻的减法结果做乘法,统计乘法结果中的负数个数,统计结果加1得到电流的脉动次数。脉动次数小于等于8,判定是普通VR电源,大于8判定是TLVR电源。 Please refer to Figure 6. Taking a 7-phase TLVR power supply or a common VR power supply as an example, assuming that the power supply controller samples the phase 1 inductor current 40 times in each switching cycle, the optional detection process includes: continuously sampling to obtain 40 sampling values, recorded as: S 0 , S 1 , ..., S 39 , subtracting adjacent sampling values, and then multiplying adjacent subtraction results, counting the number of negative numbers in the multiplication result, and adding 1 to the statistical result to obtain the number of current pulsations. If the number of pulsations is less than or equal to 8, it is determined to be a common VR power supply, and if it is greater than 8, it is determined to be a TLVR power supply.
可见,本实施例得到采样序列后,通过对相邻采样值做减法,然后对相邻的减法结果做乘法,对乘法结果进行负数统计,统计结果加1就是电流的脉动次数。由此,借助电源控制器来计算一个开关周期内单相电感电流的脉动次数来区分TLVR与普通VR,不需要搭建额外的检测电路,方法简便高效。It can be seen that after obtaining the sampling sequence, this embodiment subtracts adjacent sampling values, then multiplies adjacent subtraction results, performs negative statistics on the multiplication results, and the statistical result plus 1 is the number of current pulsations. Therefore, the power supply controller is used to calculate the number of pulsations of the single-phase inductor current in a switching cycle to distinguish TLVR from ordinary VR, without the need to build an additional detection circuit, and the method is simple and efficient.
下面对本申请实施例提供的一种电源检测装置进行介绍,下文描述的一种电源检测装置与上文描述的一种电源检测方法可以相互参照。A power supply detection device provided in an embodiment of the present application is introduced below. The power supply detection device described below and the power supply detection method described above can be referenced to each other.
参见图7所示,本申请实施例公开了一种电源检测装置,应用于电源控制器,包括:As shown in FIG. 7 , an embodiment of the present application discloses a power supply detection device, which is applied to a power supply controller, including:
获取模块701,被设置为获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2:The acquisition module 701 is configured to acquire a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2:
确定模块702,被设置为基于采样序列确定目标电流在单一开关周期内的脉动次数;A determination module 702 is configured to determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence;
检测模块702,被设置为在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。The detection module 702 is configured to determine that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
在一种可选实施方式中,获取模块包括:In an optional implementation, the acquisition module includes:
第一选择单元,被设置为在N相电源中任选一相电流作为目标电流;A first selection unit is configured to select any one phase current from the N-phase power supply as a target current;
采样单元,被设置为对目标电流进行采样,得到采样集合;The sampling unit is configured to sample the target current to obtain a sampling set;
第二选择单元,被设置为在采样集合中选择落入单一开关周期内的多个采样数据;A second selection unit is configured to select a plurality of sampling data falling within a single switching cycle from the sampling set;
组成单元,被设置为将多个采样数据组成采样序列。The composition unit is configured to compose a plurality of sampling data into a sampling sequence.
在一种可选实施方式中,组成单元可以被设置为:In an optional implementation, the constituent unit may be configured as:
将多个采样数据按照采样先后顺序排列,得到采样序列。Arrange multiple sampling data in the order of sampling to obtain a sampling sequence.
在一种可选实施方式中,第二选择单元可以被设置为:In an optional implementation manner, the second selection unit may be configured to:
确定单一开关周期的时长;Determine the duration of a single switching cycle;
在采样集合中选择时长内的多个采样数据。Select multiple sampling data within a duration in a sampling set.
在一种可选实施方式中,第二选择单元可以被设置为:In an optional implementation manner, the second selection unit may be configured to:
从电源控制器中的存储器中查询时长。The duration is queried from the memory in the power controller.
在一种可选实施方式中,单一开关周期内的采样数据的个数不小于脉动次数的2倍。In an optional implementation manner, the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
在一种可选实施方式中,确定模块包括:In an optional implementation, the determining module includes:
第一计算单元,被设置为计算采样序列中的相邻采样数据的差值,得到差值序列;A first calculation unit is configured to calculate the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence;
第二计算单元,被设置为计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;The second calculation unit is configured to calculate the product of adjacent difference values in the difference sequence and count the number of negative products;
确定单元,被设置为使乘积为负数的个数递增一,得到脉动次数。The determination unit is configured to increase the number of times the product is a negative number by one to obtain the number of pulsations.
在一种可选实施方式中,第一计算单元可以被设置为:In an optional implementation, the first calculation unit may be configured as:
确定采样序列中的多对相邻采样数据;Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。In each pair of adjacent sampling data, the sampling data at the previous position is subtracted from the sampling data at the next position.
在一种可选实施方式中,第一计算单元可以被设置为:In an optional implementation, the first calculation unit may be configured as:
确定采样序列中的多对相邻采样数据;Determine multiple pairs of adjacent sampling data in the sampling sequence;
使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
在一种可选实施方式中,还包括:In an optional implementation, it also includes:
查询模块,被设置为在判断脉动次数与N+1的大小之前,从电源控制器中的存储器中查询N的取值。The query module is configured to query the value of N from the memory in the power controller before determining the size of the number of pulsations and N+1.
在一种可选实施方式中,检测模块还被设置为:In an optional implementation, the detection module is further configured to:
在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。When the number of pulsations is not greater than N+1, it is determined that the N-phase power supply is a VR type N-phase power supply.
在一种可选实施方式中,还包括:In an optional implementation, it also includes:
控制模块,被设置为确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。 The control module is configured to determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
在一种可选实施方式中,控制模块可以被设置为:In an optional implementation, the control module may be configured as:
从电源控制器中的存储器中查询第一电源参数或第二电源参数。The first power parameter or the second power parameter is queried from a memory in the power controller.
在一种可选实施方式中,还包括:In an optional implementation, it also includes:
导入模块,被设置为在获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。The import module is configured to import power supply configuration information into the memory in the power supply controller before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the N-phase power supply of the TLVR type, a second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
在一种可选实施方式中,还包括:In an optional implementation, it also includes:
修改模块,被设置为在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。The modification module is configured to modify the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory when a configuration modification instruction is received.
在一种可选实施方式中,修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取模块、确定模块、检测模块中的步骤。In an optional implementation, after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data in a single switching cycle stored in the memory, the steps in the acquisition module, the determination module and the detection module are executed.
可见,本实施例提供了一种电源检测装置,能够自动检测出电源的类型,可以提升检测效率和准确性,也能够为电源配置提供前提基础。It can be seen that this embodiment provides a power supply detection device that can automatically detect the type of power supply, improve detection efficiency and accuracy, and provide a prerequisite for power supply configuration.
下面对本申请实施例提供的一种电子设备进行介绍,下文描述的一种电子设备与上文描述的一种电源检测方法及装置可以相互参照。An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the power supply detection method and device described above can be referenced to each other.
参见图8所示,本申请实施例公开了一种电子设备,包括:As shown in FIG8 , an embodiment of the present application discloses an electronic device, including:
存储器801,被设置为保存计算机程序;Memory 801, configured to store computer programs;
处理器802,被设置为执行计算机程序,以实现上述任意实施例公开的方法。The processor 802 is configured to execute a computer program to implement the method disclosed in any of the above embodiments.
进一步的,本申请实施例还提供了一种服务器来作为上述电子设备。该服务器,可以包括:至少一个处理器、至少一个存储器、电源、通信接口、输入输出接口和通信总线。其中,存储器被设置为存储计算机程序,计算机程序由处理器加载并执行,以实现前述任一实施例公开的电源检测方法中的相关步骤。Furthermore, an embodiment of the present application also provides a server as the above-mentioned electronic device. The server may include: at least one processor, at least one memory, a power supply, a communication interface, an input/output interface, and a communication bus. The memory is configured to store a computer program, which is loaded and executed by the processor to implement the relevant steps in the power detection method disclosed in any of the above-mentioned embodiments.
本实施例中,电源被设置为为服务器上的各硬件设备提供工作电压;通信接口能够为服务器创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行限定;输入输出接口,被设置为获取外界输入数据或向外界输出数据,其接口类型可以根据应用需要进行选取,在此不进行限定。In this embodiment, the power supply is configured to provide operating voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application and is not limited here; the input and output interface is configured to obtain external input data or output data to the outside world, and its interface type can be selected according to application needs and is not limited here.
另外,存储器作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作***、计算机程序及数据等,存储方式可以是短暂存储或者永久存储。In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.
其中,操作***被设置为管理与控制服务器上的各硬件设备以及计算机程序,以实现处理器对存储器中数据的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序除了包括能够用于完成前述任一实施例公开的电源检测方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据除了可以包括虚拟机等数据外,还可以包括虚拟机的开发商信息等数据。The operating system is configured to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, which can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the power detection method disclosed in any of the aforementioned embodiments, the computer program can further include computer programs that can be used to complete other specific tasks. In addition to data such as virtual machines, data can also include data such as developer information of virtual machines.
进一步的,本申请实施例还提供了一种终端来作为上述电子设备。该终端可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。Furthermore, the embodiment of the present application also provides a terminal as the above electronic device. The terminal may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
通常,本实施例中的终端包括有:处理器和存储器。Generally, the terminal in this embodiment includes: a processor and a memory.
其中,处理器可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器也可以包括主处理器和协处理器,主处理器是被设置为对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是被设置为对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中, 处理器可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU被设置为负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器被设置为处理有关机器学习的计算操作。The processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor configured to process data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor configured to process data in a standby state. In some embodiments, The processor may be integrated with a GPU (Graphics Processing Unit), which is configured to be responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is configured to process computing operations related to machine learning.
存储器可以包括一个或多个非易失性可读存储介质,该计算机可读存储介质可以是非暂态的。存储器还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器至少被设置为存储以下计算机程序,其中,该计算机程序被处理器加载并执行之后,能够实现前述任一实施例公开的由终端侧执行的电源检测方法中的相关步骤。另外,存储器所存储的资源还可以包括操作***和数据等,存储方式可以是短暂存储或者永久存储。其中,操作***可以包括Windows、Unix、Linux等。数据可以包括但不限于应用程序的更新信息。The memory may include one or more non-volatile readable storage media, and the computer-readable storage medium may be non-transitory. The memory may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is at least configured to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the power detection method performed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, update information of the application.
在一些实施例中,终端还可包括有显示屏、输入输出接口、通信接口、传感器、电源以及通信总线。In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.
下面对本申请实施例提供的一种非易失性可读存储介质进行介绍,下文描述的一种非易失性可读存储介质与上文描述的一种电源检测方法、装置及设备可以相互参照。A non-volatile readable storage medium provided in an embodiment of the present application is introduced below. The non-volatile readable storage medium described below and the power supply detection method, device and apparatus described above can be referenced to each other.
一种非易失性可读存储介质,被设置为保存计算机程序,其中,计算机程序被处理器执行时实现前述实施例公开的电源检测方法。其中,非易失性可读存储介质为计算机可读存储介质,其作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作***、计算机程序及数据等,存储方式可以是短暂存储或者永久存储。A non-volatile readable storage medium is configured to store a computer program, wherein the computer program, when executed by a processor, implements the power detection method disclosed in the above embodiment. The non-volatile readable storage medium is a computer-readable storage medium, which, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: obtaining a sampling sequence of the target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2; determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and determining that the N-phase power supply is a TLVR type N-phase power supply when the number of pulsations is greater than N+1.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:在N相电源中任选一相电流作为目标电流;对目标电流进行采样,得到采样集合;在采样集合中选择落入单一开关周期内的多个采样数据;将多个采样数据组成采样序列。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: select any phase current in an N-phase power supply as the target current; sample the target current to obtain a sampling set; select multiple sampling data that fall within a single switching cycle in the sampling set; and group the multiple sampling data into a sampling sequence.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:将多个采样数据按照采样先后顺序排列,得到采样序列。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: a plurality of sampling data are arranged in the order of sampling to obtain a sampling sequence.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:确定单一开关周期的时长;在采样集合中选择时长内的多个采样数据。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: determining the duration of a single switching cycle; and selecting a plurality of sampling data within the duration in a sampling set.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:从电源控制器中的存储器中查询时长。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: querying the duration from the memory in the power controller.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:计算采样序列中的相邻采样数据的差值,得到差值序列;计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;使乘积为负数的个数递增一,得到脉动次数。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: calculating the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence; calculating the product of adjacent differences in the difference sequence, and counting the number of negative products; increasing the number of negative products by one to obtain the number of pulsations.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: determining multiple pairs of adjacent sampling data in a sampling sequence; subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: determining multiple pairs of adjacent sampling data in a sampling sequence; subtracting the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:从电源控制器中的存储器中查询N的取值。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: querying the value of N from the memory in the power controller.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。 When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: when the number of pulsations is not greater than N+1, determining that the N-phase power supply is a VR type N-phase power supply.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: determining a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply; and performing power control according to the first power supply parameter or the second power supply parameter.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:从电源控制器中的存储器中查询第一电源参数或第二电源参数。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: querying the first power parameter or the second power parameter from the memory in the power controller.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:在获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: before obtaining the sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle, the power supply configuration information is imported into the memory in the power supply controller; the power supply configuration information includes: the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and the number of sampling data within a single switching cycle.
本实施例提供的非易失性可读存储介质中保存的计算机程序被处理器执行时,可以实现以下步骤:在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。When the computer program stored in the non-volatile readable storage medium provided in this embodiment is executed by a processor, the following steps can be implemented: when a configuration modification instruction is received, the duration of a single switching cycle stored in the memory, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle are modified.
下面对本申请实施例提供的一种电源检测电路进行介绍,下文描述的一种电源检测电路与上文任意实施例可以相互参照。A power detection circuit provided in an embodiment of the present application is introduced below. The power detection circuit described below can be cross-referenced with any of the above embodiments.
本申请实施例公开了一种电源检测电路,包括:电源控制器、与电源控制器连接的TLVR类型的N相电源或VR类型的N相电源;其中,N≥2;电源控制器被设置为执行前述任一实施例的方法。An embodiment of the present application discloses a power supply detection circuit, including: a power supply controller, a TLVR type N-phase power supply or a VR type N-phase power supply connected to the power supply controller; wherein N≥2; the power supply controller is configured to execute the method of any of the aforementioned embodiments.
在一种可选实施方式中,还包括:与电源控制器连接的存储器,存储器被设置为存储电源配置文件,电源配置文件记录有:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。In an optional embodiment, it also includes: a memory connected to the power supply controller, the memory is configured to store a power supply profile, the power supply profile records: the duration of a single switching cycle, a first power supply parameter corresponding to a TLVR type N-phase power supply, a second power supply parameter corresponding to a VR type N-phase power supply, the value of N and the number of sampled data within a single switching cycle.
在一种可选实施方式中,电源控制器被设置为:获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源。In an optional embodiment, the power supply controller is configured to: obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
在一种可选实施方式中,电源控制器被设置为:在N相电源中任选一相电流作为目标电流;对目标电流进行采样,得到采样集合;在采样集合中选择落入单一开关周期内的多个采样数据;将多个采样数据组成采样序列。In an optional embodiment, the power supply controller is configured to: select any phase current in an N-phase power supply as a target current; sample the target current to obtain a sampling set; select multiple sampling data that fall within a single switching cycle in the sampling set; and organize the multiple sampling data into a sampling sequence.
在一种可选实施方式中,电源控制器被设置为:将多个采样数据按照采样先后顺序排列,得到采样序列。In an optional implementation manner, the power supply controller is configured to: arrange the plurality of sampling data in a sampling order to obtain a sampling sequence.
在一种可选实施方式中,电源控制器被设置为:确定单一开关周期的时长;在采样集合中选择时长内的多个采样数据。In an optional implementation, the power supply controller is configured to: determine the duration of a single switching cycle; and select a plurality of sampling data within the duration from the sampling set.
在一种可选实施方式中,电源控制器被设置为:从电源控制器中的存储器中查询时长。In an optional implementation, the power controller is configured to query the duration from a memory in the power controller.
在一种可选实施方式中,电源控制器被设置为:计算采样序列中的相邻采样数据的差值,得到差值序列;计算差值序列中的相邻差值的乘积,并统计乘积为负数的个数;使乘积为负数的个数递增一,得到脉动次数。In an optional embodiment, the power supply controller is configured to: calculate the difference between adjacent sampling data in a sampling sequence to obtain a difference sequence; calculate the product of adjacent differences in the difference sequence, and count the number of negative products; and increase the number of negative products by one to obtain the number of pulsations.
在一种可选实施方式中,电源控制器被设置为:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。In an optional implementation, the power controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at the next position from the sampling data at the previous position in each pair of adjacent sampling data.
在一种可选实施方式中,电源控制器被设置为:确定采样序列中的多对相邻采样数据;使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。In an optional implementation, the power controller is configured to: determine a plurality of pairs of adjacent sampling data in a sampling sequence; and subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
在一种可选实施方式中,电源控制器被设置为:从电源控制器中的存储器中查询N的取值。In an optional implementation, the power controller is configured to query the value of N from a memory in the power controller.
在一种可选实施方式中,电源控制器被设置为:在脉动次数不大于N+1的情况下,确定N相电源为VR类型的N相电源。In an optional implementation, the power supply controller is configured to: when the number of pulsations is not greater than N+1, determine that the N-phase power supply is a VR-type N-phase power supply.
在一种可选实施方式中,电源控制器被设置为:确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;按照第一电源参数或第二电源参数进行电源控制。 In an optional implementation, the power controller is configured to: determine a first power parameter corresponding to a TLVR type N-phase power supply or a second power parameter corresponding to a VR type N-phase power supply; and perform power control according to the first power parameter or the second power parameter.
在一种可选实施方式中,电源控制器被设置为:从电源控制器中的存储器中查询第一电源参数或第二电源参数。In an optional implementation, the power controller is configured to query the first power parameter or the second power parameter from a memory in the power controller.
在一种可选实施方式中,电源控制器被设置为:在获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,将电源配置信息导入电源控制器中的存储器;电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。In an optional embodiment, the power supply controller is configured to: import power supply configuration information into a memory in the power supply controller before obtaining a sampling sequence of the target current of any phase in the N-phase power supply within a single switching cycle; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to the TLVR type N-phase power supply, a second power supply parameter corresponding to the VR type N-phase power supply, the value of N and the number of sampling data within a single switching cycle.
在一种可选实施方式中,电源控制器被设置为:在接收到配置修改指令的情况下,修改存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。In an optional embodiment, the power supply controller is configured to, upon receiving a configuration modification instruction, modify the duration of a single switching cycle stored in the memory, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle.
在一种可选实施方式中,电源控制器被设置为:在修改存储器中存储的单一开关周期的时长、N的取值和/或单一开关周期内的采样数据的个数后,执行获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;基于采样序列确定目标电流在单一开关周期内的脉动次数;在脉动次数大于N+1的情况下,确定N相电源为TLVR类型的N相电源的步骤。In an optional embodiment, the power supply controller is configured to: after modifying the duration of a single switching cycle, the value of N and/or the number of sampled data within a single switching cycle stored in a memory, execute a sampling sequence for obtaining a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2; determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence; and when the number of pulsations is greater than N+1, determine that the N-phase power supply is a TLVR type N-phase power supply.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM,Random Access Memory)、内存、只读存储器(ROM,Read-Only Memory)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM(Compact Disc Read-Only Memory,只读光盘)、或技术领域内所公知的任意其它形式的非易失性可读存储介质中。The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM (Compact Disc Read-Only Memory), or any other form of non-volatile readable storage medium known in the art.
本文中应用了个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在可选实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。 Individual examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the optional implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims (20)

  1. 一种电源检测方法,其特征在于,应用于电源控制器,包括:A power supply detection method, characterized in that it is applied to a power supply controller, comprising:
    获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;Obtain a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N ≥ 2;
    基于所述采样序列确定所述目标电流在单一开关周期内的脉动次数;Determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence;
    在所述脉动次数大于N+1的情况下,确定所述N相电源为TLVR类型的N相电源。When the pulsation number is greater than N+1, it is determined that the N-phase power supply is a TLVR type N-phase power supply.
  2. 根据权利要求1所述的方法,其特征在于,所述获取N相电源中的任一相目标电流在单一开关周期内的采样序列,包括:The method according to claim 1, characterized in that the step of obtaining a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle comprises:
    在所述N相电源中任选一相电流作为所述目标电流;Selecting any one phase current in the N-phase power supply as the target current;
    对所述目标电流进行采样,得到采样集合;Sampling the target current to obtain a sampling set;
    在所述采样集合中选择落入单一开关周期内的多个采样数据;Selecting a plurality of sampling data falling within a single switching cycle from the sampling set;
    将所述多个采样数据组成所述采样序列。The plurality of sampling data are combined into the sampling sequence.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述多个采样数据组成所述采样序列,包括:The method according to claim 2, characterized in that the step of composing the plurality of sampling data into the sampling sequence comprises:
    将所述多个采样数据按照采样先后顺序排列,得到所述采样序列。The plurality of sampling data are arranged in a sampling order to obtain the sampling sequence.
  4. 根据权利要求2所述的方法,其特征在于,所述在所述采样集合中选择落入单一开关周期内的多个采样数据,包括:The method according to claim 2, characterized in that the step of selecting a plurality of sampling data falling within a single switching cycle from the sampling set comprises:
    确定单一开关周期的时长;Determine the duration of a single switching cycle;
    在所述采样集合中选择所述时长内的多个采样数据。A plurality of sampling data within the duration is selected from the sampling set.
  5. 根据权利要求4所述的方法,其特征在于,所述确定单一开关周期的时长,包括:The method according to claim 4, characterized in that the determining the duration of a single switching cycle comprises:
    从所述电源控制器中的存储器中查询所述时长。The duration is queried from a memory in the power controller.
  6. 根据权利要求2所述的方法,其特征在于,单一开关周期内的采样数据的个数不小于所述脉动次数的2倍。The method according to claim 2 is characterized in that the number of sampled data in a single switching cycle is not less than twice the number of pulsations.
  7. 根据权利要求1所述的方法,其特征在于,所述基于所述采样序列确定所述目标电流在单一开关周期内的脉动次数,包括:The method according to claim 1, characterized in that the step of determining the number of pulsations of the target current within a single switching cycle based on the sampling sequence comprises:
    计算所述采样序列中的相邻采样数据的差值,得到差值序列;Calculating the difference between adjacent sampling data in the sampling sequence to obtain a difference sequence;
    计算所述差值序列中的相邻差值的乘积,并统计乘积为负数的个数;Calculating the product of adjacent differences in the difference sequence, and counting the number of negative products;
    使乘积为负数的个数递增一,得到所述脉动次数。The number of negative products is incremented by one to obtain the pulsation number.
  8. 根据权利要求7所述的方法,其特征在于,所述计算所述采样序列中的相邻采样数据的差值,包括:The method according to claim 7, characterized in that the step of calculating the difference between adjacent sampling data in the sampling sequence comprises:
    确定所述采样序列中的多对相邻采样数据;Determine a plurality of pairs of adjacent sampling data in the sampling sequence;
    使每对相邻采样数据中的前一位置采样数据减后一位置采样数据。In each pair of adjacent sampling data, the sampling data at the previous position is subtracted from the sampling data at the next position.
  9. 根据权利要求7所述的方法,其特征在于,所述计算所述采样序列中的相邻采样数据的差值,包括:The method according to claim 7, characterized in that the step of calculating the difference between adjacent sampling data in the sampling sequence comprises:
    确定所述采样序列中的多对相邻采样数据;Determine a plurality of pairs of adjacent sampling data in the sampling sequence;
    使每对相邻采样数据中的后一位置采样数据减前一位置采样数据。Subtract the sampling data at the previous position from the sampling data at the next position in each pair of adjacent sampling data.
  10. 根据权利要求1所述的方法,其特征在于,在判断所述脉动次数与N+1的大小之前,还包括:The method according to claim 1, characterized in that before determining the magnitude of the number of pulsations and N+1, it further comprises:
    从所述电源控制器中的存储器中查询N的取值。The value of N is queried from the memory in the power controller.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 10, further comprising:
    在所述脉动次数不大于N+1的情况下,确定所述N相电源为VR类型的N相电源。When the pulsation number is not greater than N+1, it is determined that the N-phase power supply is a VR type N-phase power supply.
  12. 根据权利要求1至10任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 10, further comprising:
    确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数;Determine a first power supply parameter corresponding to a TLVR type N-phase power supply or a second power supply parameter corresponding to a VR type N-phase power supply;
    按照第一电源参数或第二电源参数进行电源控制。 Power control is performed according to the first power parameter or the second power parameter.
  13. 根据权利要求12所述的方法,其特征在于,所述确定TLVR类型的N相电源对应的第一电源参数或VR类型的N相电源对应的第二电源参数,包括:The method according to claim 12, characterized in that the determining of the first power supply parameter corresponding to the N-phase power supply of the TLVR type or the second power supply parameter corresponding to the N-phase power supply of the VR type comprises:
    从所述电源控制器中的存储器中查询第一电源参数或第二电源参数。A first power parameter or a second power parameter is queried from a memory in the power controller.
  14. 根据权利要求1至10任一项所述的方法,其特征在于,所述获取N相电源中的任一相目标电流在单一开关周期内的采样序列之前,还包括:The method according to any one of claims 1 to 10, characterized in that before the sampling sequence of obtaining the target current of any phase in the N-phase power supply within a single switching cycle, it also includes:
    将电源配置信息导入所述电源控制器中的存储器;所述电源配置信息包括:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。Import power supply configuration information into the memory in the power supply controller; the power supply configuration information includes: the duration of a single switching cycle, a first power supply parameter corresponding to a TLVR type N-phase power supply, a second power supply parameter corresponding to a VR type N-phase power supply, the value of N and the number of sampled data within a single switching cycle.
  15. 根据权利要求14所述的方法,其特征在于,还包括:The method according to claim 14, further comprising:
    在接收到配置修改指令的情况下,修改所述存储器中存储的单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和/或单一开关周期内的采样数据的个数。When a configuration modification instruction is received, the duration of a single switching cycle, the first power supply parameter corresponding to the N-phase power supply of the TLVR type, the second power supply parameter corresponding to the N-phase power supply of the VR type, the value of N and/or the number of sampled data within a single switching cycle stored in the memory are modified.
  16. 一种电源检测装置,其特征在于,应用于电源控制器,包括:A power supply detection device, characterized in that it is applied to a power supply controller, comprising:
    获取模块,被设置为获取N相电源中的任一相目标电流在单一开关周期内的采样序列;其中,N≥2;An acquisition module is configured to acquire a sampling sequence of a target current of any phase in an N-phase power supply within a single switching cycle; wherein N≥2;
    确定模块,被设置为基于所述采样序列确定所述目标电流在单一开关周期内的脉动次数;A determination module, configured to determine the number of pulsations of the target current within a single switching cycle based on the sampling sequence;
    检测模块,被设置为在所述脉动次数大于N+1的情况下,确定所述N相电源为TLVR类型的N相电源。The detection module is configured to determine that the N-phase power supply is a TLVR type N-phase power supply when the pulsation number is greater than N+1.
  17. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,被设置为存储计算机程序;a memory arranged to store a computer program;
    处理器,被设置为执行所述计算机程序,以实现如权利要求1至15任一项所述的方法。A processor is configured to execute the computer program to implement the method according to any one of claims 1 to 15.
  18. 一种非易失性可读存储介质,其特征在于,被设置为保存计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至15任一项所述的方法。A non-volatile readable storage medium, characterized in that it is configured to store a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 15.
  19. 一种电源检测电路,其特征在于,包括:电源控制器、与所述电源控制器连接的TLVR类型的N相电源或VR类型的N相电源;其中,N≥2;所述电源控制器被设置为执行如权利要求1至15任一项所述的方法。A power supply detection circuit, characterized in that it includes: a power supply controller, a TLVR type N-phase power supply or a VR type N-phase power supply connected to the power supply controller; wherein N≥2; and the power supply controller is configured to execute the method described in any one of claims 1 to 15.
  20. 根据权利要求19所述的电源检测电路,其特征在于,还包括:与所述电源控制器连接的存储器,所述存储器被设置为存储电源配置文件,所述电源配置文件记录有:单一开关周期的时长、TLVR类型的N相电源对应的第一电源参数、VR类型的N相电源对应的第二电源参数、N的取值和单一开关周期内的采样数据的个数。 The power supply detection circuit according to claim 19 is characterized in that it also includes: a memory connected to the power supply controller, the memory is configured to store a power supply configuration file, and the power supply configuration file records: the duration of a single switching cycle, a first power supply parameter corresponding to an N-phase power supply of a TLVR type, a second power supply parameter corresponding to an N-phase power supply of a VR type, the value of N, and the number of sampled data within a single switching cycle.
PCT/CN2023/103408 2022-12-06 2023-06-28 Power supply detection method and apparatus, device, non-volatile readable storage medium, and circuit WO2024119788A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211554045.4 2022-12-06
CN202211554045.4A CN115561665B (en) 2022-12-06 2022-12-06 Power supply detection method, device, equipment, medium and circuit

Publications (1)

Publication Number Publication Date
WO2024119788A1 true WO2024119788A1 (en) 2024-06-13

Family

ID=84769795

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/103408 WO2024119788A1 (en) 2022-12-06 2023-06-28 Power supply detection method and apparatus, device, non-volatile readable storage medium, and circuit

Country Status (2)

Country Link
CN (1) CN115561665B (en)
WO (1) WO2024119788A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115561665B (en) * 2022-12-06 2023-03-03 苏州浪潮智能科技有限公司 Power supply detection method, device, equipment, medium and circuit

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080157742A1 (en) * 2005-10-31 2008-07-03 Martin Gary D Power supply and controller circuits
US7609040B1 (en) * 2005-10-31 2009-10-27 Chil Semiconductor Corporation Power supply and related circuits
US20090327786A1 (en) * 2008-06-26 2009-12-31 Carroll Robert T Power supply circuit and multi-phase control
CN106772123A (en) * 2017-01-06 2017-05-31 常熟开关制造有限公司(原常熟开关厂) Power supply type recognition methods, circuit and automatic change-over
CN109581246A (en) * 2018-12-18 2019-04-05 浪潮电子信息产业股份有限公司 Method and device for testing server power supply and test machine BMC
CN110297159A (en) * 2018-03-21 2019-10-01 西门子电力自动化有限公司 For determining the method and apparatus of the faulty line in electric system compensation network
CN110957894A (en) * 2018-09-25 2020-04-03 深圳市华芯邦科技有限公司 Load current detection method and circuit of inductive switching power converter
CN111257788A (en) * 2020-03-08 2020-06-09 苏州浪潮智能科技有限公司 Dynamic test method, system, equipment and medium of power supply
CN111413637A (en) * 2020-04-08 2020-07-14 上海燧原科技有限公司 System and method for processing power supply signal
CN114325458A (en) * 2021-12-17 2022-04-12 苏州浪潮智能科技有限公司 Testing method, system, device, equipment and storage medium of switching power supply
CN114879075A (en) * 2022-05-31 2022-08-09 杭州三海电子有限公司 Power supply monitoring method, system, terminal and storage medium
CN115561665A (en) * 2022-12-06 2023-01-03 苏州浪潮智能科技有限公司 Power supply detection method, device, equipment, medium and circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4642743A (en) * 1985-08-05 1987-02-10 International Business Machines Corp. Power supplies with magnetic amplifier voltage regulation
CN103308869B (en) * 2013-07-15 2015-11-25 国家电网公司 Modular multi-level multi-terminal flexible direct-current transmission system starting characteristics test method
KR20220104215A (en) * 2019-12-24 2022-07-26 드림 이노베이션 테크놀로지 (쑤저우) 컴퍼니 리미티드 Voltage detection and adaptation method, device control method, apparatus, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080157742A1 (en) * 2005-10-31 2008-07-03 Martin Gary D Power supply and controller circuits
US7609040B1 (en) * 2005-10-31 2009-10-27 Chil Semiconductor Corporation Power supply and related circuits
US20090327786A1 (en) * 2008-06-26 2009-12-31 Carroll Robert T Power supply circuit and multi-phase control
CN106772123A (en) * 2017-01-06 2017-05-31 常熟开关制造有限公司(原常熟开关厂) Power supply type recognition methods, circuit and automatic change-over
CN110297159A (en) * 2018-03-21 2019-10-01 西门子电力自动化有限公司 For determining the method and apparatus of the faulty line in electric system compensation network
CN110957894A (en) * 2018-09-25 2020-04-03 深圳市华芯邦科技有限公司 Load current detection method and circuit of inductive switching power converter
CN109581246A (en) * 2018-12-18 2019-04-05 浪潮电子信息产业股份有限公司 Method and device for testing server power supply and test machine BMC
CN111257788A (en) * 2020-03-08 2020-06-09 苏州浪潮智能科技有限公司 Dynamic test method, system, equipment and medium of power supply
CN111413637A (en) * 2020-04-08 2020-07-14 上海燧原科技有限公司 System and method for processing power supply signal
CN114325458A (en) * 2021-12-17 2022-04-12 苏州浪潮智能科技有限公司 Testing method, system, device, equipment and storage medium of switching power supply
CN114879075A (en) * 2022-05-31 2022-08-09 杭州三海电子有限公司 Power supply monitoring method, system, terminal and storage medium
CN115561665A (en) * 2022-12-06 2023-01-03 苏州浪潮智能科技有限公司 Power supply detection method, device, equipment, medium and circuit

Also Published As

Publication number Publication date
CN115561665B (en) 2023-03-03
CN115561665A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
WO2024119788A1 (en) Power supply detection method and apparatus, device, non-volatile readable storage medium, and circuit
CN100378647C (en) Adaptive computer display screen window
CN108323239A (en) Recording, playback method, record screen terminal and the playback terminal of film recording
CN105183302A (en) Method and terminal for controlling application
CN108255360A (en) Anti-interference control method, device and system for touch screen
CN107944731A (en) The method for building up and device of typical project cost template
CN109085414A (en) Voltage detection method and device
CN109541346A (en) A kind of non-intrusion type electrical load under steady state condition identifies method for improving
CN112653330A (en) Control method for improving LLC resonant circuit load dynamic response and terminal equipment
CN115756996B (en) Chip testing method, device and equipment and readable storage medium
CN115378290A (en) Space vector modulation method for reducing current harmonics and related equipment
CN113587792B (en) Charging controller LCD screen calibration triggering method, system, equipment and medium
CN112104217B (en) Power supply soft start control method and device
CN104123943B (en) A kind of method and apparatus of audio signal resampling
CN113435013B (en) Electromagnetic transient simulation method, apparatus and medium considering multiple event occurrence
CN109217268B (en) Intelligent circuit breaker protection method and device based on sampling value
CN112327151B (en) Method and device for monitoring switching state of on-load tap-changer and terminal equipment
CN112182811B (en) Method and device for evaluating operating pressure loss value of hydraulic operating mechanism, electronic equipment and storage medium
CN110802301B (en) Welding pulse control method and device and welding machine control device
CN110855164A (en) Control method, system and terminal equipment
CN106780131A (en) A kind of meter register method and device
CN107422975A (en) The control method and control device of mobile terminal
CN111161741A (en) Personalized information identification method and device, electronic equipment and storage medium
CN110649801A (en) Bus voltage sampling method, PFC control circuit and power conversion circuit
CN113341190B (en) Channel selection method of digital oscilloscope and storage medium