UFS-based power consumption automatic test method and system and computer equipment

Through the automated UFS power consumption testing method, the programmable DC power supply and UFS protocol are used to realize automatic measurement of UFS static and dynamic power consumption, solving the problem of cumbersome manual operation in traditional testing methods, and improving testing efficiency and accuracy.

CN119181414APending Publication Date: 2024-12-24DONGGUAN UNIONMEMORY INFORMATION SYST LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411272155.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Traditional UFS power consumption testing methods require manual setting of voltage, current range and mode switching, which leads to repeated and time-consuming testing steps, affecting efficiency.

Method used

Connect the UFS host through a programmable high-precision DC power supply, automatically switch the M-PHY layer and power consumption mode using commands defined by the UFSHCI and UFS protocols, collect static and dynamic power consumption data, and use Python and pyvisa for automated voltage and current adaptation. Data is saved and analyzed.

Benefits of technology

Fully automated testing of UFS power consumption is realized, which significantly improves testing efficiency, reduces labor costs, and avoids repeated operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119181414A_ABST
    Figure CN119181414A_ABST
Patent Text Reader

Abstract

The invention relates to a UFS-based power consumption automatic test method and system, computer equipment and a storage medium. The method comprises the following steps: establishing communication between a UFS host and UFS equipment, switching a transmission mode for an M-PHY layer of the UFS equipment by using a DME command defined by a UFSHCI protocol, and switching a power consumption mode of the UFS equipment by using an SSU command defined by the UFS protocol; the test machine sends a current collection instruction to the programmable high-precision direct-current power supply, and obtains the current magnitude of VCC / VCCQ / VCCQ2 of the UFS at the moment so as to test the static power consumption of the UFS; under various switching modes of the UFS, the UFS host issues read-write operation to read and write UFS equipment, a current collection instruction is sent to the programmable high-precision direct-current power supply, and the magnitude of VCC / VCCQ / VCCQ2 current of the UFS at the moment is obtained so as to test the dynamic power consumption of the UFS. According to the invention, the UFS power consumption test efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of UFS testing technology, and in particular to a UFS-based power consumption automation testing method, system, computer equipment and storage medium. Background Art

[0002] UFS (Universal Flash Storage) flash memory is a high-speed storage technology, commonly used for memory storage in mobile devices such as mobile phones and tablets. Its transmission speed can reach hundreds of megabytes per second, greatly improving the read and write performance of storage devices. The characteristic of UFS flash memory is that it can support both sequential read and write and random read and write, making it more efficient when processing large amounts of data.

[0003] At present, in the traditional UFS power consumption test, after using a high-precision DC power supply to externally power the UFS device module VCC / VCCQ / VCCQ2, it is necessary to manually set the voltage, current range, current limit, etc. of the power supply, and manually send instructions to switch the UFS modes, and finally manually save the data of the UFS power consumption mode. It can be seen that there are many similar and repeated test steps in the traditional test scheme, which consumes a lot of manpower and time, and seriously affects the test efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a UFS-based power consumption automation test method, system, computer device and storage medium to address the above technical problems.

[0005] A method for automatic power consumption testing based on UFS, the method comprising:

[0006] Connect the programmable high-precision DC power supply to the UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the test machine to the UFS host via ADB;

[0007] The UFS host establishes communication with the UFS device, uses the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and uses the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device;

[0008] The test machine sends a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS;

[0009] In various UFS switching modes, the UFS host sends read and write operations to the UFS device, sends current collection instructions to the programmable high-precision DC power supply, and obtains the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the UFS dynamic power consumption.

[0010] In one embodiment, the steps of connecting the programmable high-precision DC power supply to the UFS host, powering the VCC / VCCQ / VCCQ2 pins of the UFS, and connecting the test machine to the UFS host via ADB further include:

[0011] The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

[0012] In one embodiment, the method further comprises:

[0013] Use Python to create a dictionary collection of UFS mode switching instructions, establish a loop function to enable the UFS host to send a set of instructions for UFS mode switching, use pyvisa to send instructions to the programmable high-precision DC power supply to adapt the voltage and current, and collect the current from the programmable high-precision DC power supply.

[0014] In one embodiment, the method further comprises:

[0015] The data collected during the test is written into a local Excel file for data preservation. After the UFS static power consumption and dynamic power consumption tests are completed, the saved Excel files are analyzed and compared for data preservation.

[0016] A UFS-based power consumption automatic test system, the system comprising:

[0017] A connection module, the connection module is used to connect a programmable high-precision DC power supply to a UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the test machine to the UFS host via ADB;

[0018] A command issuing module, wherein the command issuing module is used for the UFS host to establish communication with the UFS device, use the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and use the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device;

[0019] A first test module, wherein the first test module is used for the test machine to send a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS;

[0020] The second test module is used for the UFS host to issue read and write operations to the UFS device in various UFS switching modes, send current collection instructions to the programmable high-precision DC power supply, and obtain the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS dynamic power consumption.

[0021] In one embodiment, the command issuing module is further used for:

[0022] The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

[0023] In one embodiment, the system is further used to:

[0024] Use Python to create a dictionary collection of UFS mode switching instructions, establish a loop function to enable the UFS host to send a set of instructions for UFS mode switching, use pyvisa to send instructions to the programmable high-precision DC power supply to adapt the voltage and current, and collect the current from the programmable high-precision DC power supply.

[0025] In one embodiment, the system further comprises:

[0026] The data analysis module is used to write the data collected during the test into a local Excel file for data preservation, and after the UFS static power consumption and dynamic power consumption tests are completed, the saved Excel files are analyzed and compared.

[0027] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0028] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any one of the above methods when executed by a processor.

[0029] The above-mentioned UFS-based power consumption automation test method, system, computer equipment and storage medium, by connecting a programmable high-precision DC power supply to a UFS host, powering the VCC / VCCQ / VCCQ2 pins of the UFS, and connecting the test machine to the UFS host through ADB; the UFS host establishes communication with the UFS device, uses the DME command defined by the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and uses the SSU command defined by the UFS protocol to switch the power consumption mode of the UFS device; the test machine sends a current acquisition instruction to the programmable high-precision DC power supply, obtains the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS static power consumption; in various UFS switching modes, the UFS host sends a read and write operation to read and write the UFS device, sends a current acquisition instruction to the programmable high-precision DC power supply, obtains the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS dynamic power consumption. The present invention can realize the fully automated test of UFS static power consumption and dynamic power consumption, greatly improves the test efficiency, and avoids wasting unnecessary manpower costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of a process flow of a UFS-based power consumption automation test method in one embodiment;

[0031] Figure 2 It is a flowchart of a power consumption automation test method based on UFS in another embodiment;

[0032] Figure 3 A schematic diagram of a flow chart of a method for automatic power consumption testing based on UFS in yet another embodiment;

[0033] Figure 4 is a structural block diagram of a UFS-based power consumption automation test system in one embodiment;

[0034] Figure 5 is a structural block diagram of a UFS-based power consumption automatic test system in another embodiment;

[0035] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] In one embodiment, Figure 1As shown, a power consumption automation test method based on UFS is provided, and the method includes:

[0038] Step 102, connect a programmable high-precision DC power supply to the UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the tester to the UFS host via ADB;

[0039] Step 104, the UFS host establishes communication with the UFS device, uses the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and uses the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device;

[0040] Step 106, the test machine sends a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS;

[0041] Step 108, in various UFS switching modes, the UFS host issues read and write operations to perform read and write operations on the UFS device, sends current collection instructions to the programmable high-precision DC power supply, and obtains the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS dynamic power consumption.

[0042] In this embodiment, a power consumption automation test method based on UFS is provided, which can be applied to the power consumption automation test of UFS chips. Specifically, by using a programmable high-precision DC power supply (such as: GW Instek PPH-1503D or others) to connect a UFS host (such as: Android platform), the VCC / VCCQ / VCCQ2 pins of the UFS device module are externally powered, and the power consumption of UFS in various states is automatically measured.

[0043] The UFS host establishes communication with the UFS device, uses the DME command defined by the UFSHCI protocol to switch the transmission mode (HS-Mode, LS-Mode, HIBERN8) of the M-PHY layer of the UFS device and the UFS protocol command SSU to switch the power consumption mode of the device (Active, Idle, PowerDown, Sleep, etc.), and on this basis measures the static power consumption of the UFS, or the UFS host issues read and write operations to read and write UFS in various modes to measure the dynamic power consumption of the UFS. Establish a script program to automatically switch between UFS modes, and automatically collect the current size from the DC power supply. Finally, uniformly collect the current data size of each UFS mode, and perform automatic analysis and comparison with the data of competing products.

[0044] In this embodiment, by connecting a programmable high-precision DC power supply to a UFS host, powering the VCC / VCCQ / VCCQ2 pins of the UFS, and connecting the tester to the UFS host through ADB; the UFS host establishes communication with the UFS device, uses the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and uses the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device; the tester sends a current acquisition instruction to the programmable high-precision DC power supply, obtains the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS; in various switching modes of the UFS, the UFS host sends a read-write operation to read and write the UFS device, sends a current acquisition instruction to the programmable high-precision DC power supply, obtains the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the dynamic power consumption of the UFS. The present invention can realize the fully automated test of the static power consumption and dynamic power consumption of the UFS, greatly improves the test efficiency, and avoids wasting unnecessary manpower costs.

[0045] In one embodiment, the steps of connecting the programmable high-precision DC power supply to the UFS host, powering the VCC / VCCQ / VCCQ2 pins of the UFS, and connecting the test machine to the UFS host via ADB further include:

[0046] The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

[0047] In one embodiment, Figure 2 As shown, a UFS-based power consumption automation test method is provided, which also includes:

[0048] Step 202, using Python to compile a dictionary of UFS mode switching instructions, establish a loop function to enable the UFS host to send a UFS mode switching instruction set, use pyvisa to adjust the voltage and current of the programmable high-precision DC power supply sending instructions, and collect the current from the programmable high-precision DC power supply;

[0049] Step 204 , write the test collected data into a local Excel file for data preservation, and after the UFS static power consumption and dynamic power consumption tests are completed, perform data analysis and comparison on the saved Excel file.

[0050] Specifically, a programmable high-precision DC power supply is used to connect the UFS host, and external power is supplied to the VCC / VCCQ / VCCQ2 pins of the UFS device module. The instructions used by the programmable power supply need to meet the IEEE488.2 and SCPI standards. The Python third-party library pyvisa can be used to adapt the voltage, current range, current limit, etc. of the connected programmable power supply and read the current at the same time.

[0051] After the programmable power supply uses the correct voltage to power VCC / VCCQ / VCCQ2, the UFS host establishes communication with the UFS device, and uses the DME command defined by the UFSHCI protocol to switch the transmission mode (HS-Mode, LS-Mode, HIBERN8) of the M-PHY layer of the UFS device and the UFS protocol command SSU to switch the power consumption mode of the device (Active, Idle, PowerDown, Sleep, etc.). On this basis, the static power consumption of UFS is measured, or in these various modes, the UFS host sends read and write operations to read and write UFS to measure the dynamic power consumption of UFS.

[0052] Use Python to make a dictionary collection of the UFS mode switching instructions, establish a loop function to enable the UFS host to send an instruction set to the UFS device, and reference pyvisa to send instructions to the DC power supply to adapt the voltage, current range, current limit, etc., and then automatically collect the current from the DC power supply and write it to the local Excel file for data preservation. After the UFS various transmission mode tests are completed, the saved Excel data is analyzed and compared to realize the UFS power consumption automation test and improve the test efficiency.

[0053] In this embodiment, if Figure 3 As shown, a power consumption automation test method based on UFS is provided, and the specific implementation steps are as follows:

[0054] Step 1: Use a programmable high-precision DC power supply that meets the IEEE488.2 and SCPI standards to connect the UFS host and externally power the VCC / VCCQ / VCCQ2 pins of the UFS device module.

[0055] Step 2: The test computer sends instructions to the connected programmable power supply through the Python third-party library pyvisa to supply power to the UFS device module VCC / VCCQ / VCCQ2 pins with the correct voltage (according to the UFS3.1 protocol VCC 2.4~3.6V, VCCQ1.14~1.95V), and the UFS host starts normally.

[0056] Step 3: The test computer connects to the UFS host through ADB, and the UFS host drives the communication. The DME command defined by the UFSHCI protocol is used to switch the transmission mode (HS-Mode, LS-Mode, HIBERN8) of the M-PHY layer of the UFS device.

[0057] Step 4. The test computer connects to the UFS host through ADB. The UFS host drives the communication. The UFS protocol is used to command the SSU to switch the power consumption mode of the UFS device (Active, Idle, PowerDown, Sleep, etc.). The Python third-party library pyvisa (or other program methods) is used to send a current collection instruction to the connected programmable power supply to obtain the VCC / VCCQ / VCCQ2 current size of the UFS at this time (i.e., static power consumption).

[0058] Step 5. In various switching modes of steps 3 and 4 of UFS, the UFS host drives communication and issues read and write operations to read and write the UFS device. The Python third-party library pyvisa (or other program methods) is used to send current collection instructions to the connected programmable power supply to obtain the current size (i.e. dynamic power consumption) of VCC / VCCQ / VCCQ2 of the UFS at this time.

[0059] Step 6: Save the collected current data to the test computer, use algorithms such as root mean square to process the current data, draw data, compare competing products, etc.

[0060] Specifically, the Flow of different test tasks is as follows:

[0061] Each test mode will go through the following steps: hw reset, release unit attension, speed cut, SSU, synchronously adjust the programmable power supply current range, and then capture the power consumption.

[0062] H8 low power consumption test: hw reset-->release unit attension-->power mode speed cut (PWM / HS / LANE1 / LANE2, etc.)-->SSU (active / powerdown / sleep / deepsleep)-->H8-->idle3s-->programmed power supply grabs current for about 20s-->exit H8;

[0063] Static power consumption test: hw reset-->release unit attension-->power mode speed cut (PWM / HS / LANE1 / LANE2, etc.)-->SSU (active / powerdown / sleep / deepsleep)-->idle3s-->programmed power supply grabs current for about 20s;

[0064] Dynamic power consumption test: hw reset-->release unit attension-->power mode speed cut (PWM / HS / LANE1 / LANE2, etc.)-->SSU (active)-->issue read / write instructions-->use synchronous thread to program the power supply to capture current.

[0065] It should be understood that although Figure 1-Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0066] In one embodiment, Figure 4 As shown, a UFS-based power consumption automatic test system 400 is provided, the system comprising:

[0067] A connection module 401, which is used to connect a programmable high-precision DC power supply to a UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the tester to the UFS host via ADB;

[0068] A command issuing module 402, which is used for the UFS host to establish communication with the UFS device, use the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and use the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device;

[0069] A first test module 403, wherein the first test module is used for the test machine to send a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS;

[0070] The second test module 404 is used for, in various UFS switching modes, the UFS host sends read and write operations to perform read and write behaviors on the UFS device, sends current collection instructions to the programmable high-precision DC power supply, and obtains the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS dynamic power consumption.

[0071] In one embodiment, the command issuing module 402 is further used to:

[0072] The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

[0073] In one embodiment, the system is also used to:

[0074] Use Python to create a dictionary collection of UFS mode switching instructions, establish a loop function to enable the UFS host to send a set of instructions for UFS mode switching, use pyvisa to send instructions to the programmable high-precision DC power supply to adapt the voltage and current, and collect the current from the programmable high-precision DC power supply.

[0075] In one embodiment, Figure 5 As shown, a UFS-based power consumption automatic test system 400 is provided, and the system also includes:

[0076] The data analysis module 405 is used to write the data collected during the test into a local Excel file for data storage, and after the UFS static power consumption and dynamic power consumption tests are completed, perform data analysis and comparison on the saved Excel file.

[0077] For the specific limitations of the UFS-based power consumption automation test system, please refer to the limitations of the UFS-based power consumption automation test method mentioned above, which will not be repeated here.

[0078] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power consumption automation test method based on UFS is implemented.

[0079] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0080] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the above method embodiments when executing the computer program.

[0081] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0082] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

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

Claims

1. A method for automatic power consumption testing based on UFS, the method comprising: Connect the programmable high-precision DC power supply to the UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the test machine to the UFS host via ADB; The UFS host establishes communication with the UFS device, uses the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and uses the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device; The test machine sends a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS; In various UFS switching modes, the UFS host sends read and write operations to the UFS device, sends current collection instructions to the programmable high-precision DC power supply, and obtains the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the UFS dynamic power consumption.

2. The UFS-based power consumption automated testing method according to claim 1, characterized in that: After the steps of connecting the programmable high-precision DC power supply to the UFS host, supplying power to the VCC / VCCQ / VCCQ2 pins of the UFS, and connecting the test machine to the UFS host via ADB, the following steps are further included: The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

3. The UFS-based power consumption automated testing method according to claim 1, characterized in that: The method further comprises: Use Python to create a dictionary collection of UFS mode switching instructions, establish a loop function to enable the UFS host to send a set of instructions for UFS mode switching, use pyvisa to send instructions to the programmable high-precision DC power supply to adapt the voltage and current, and collect the current from the programmable high-precision DC power supply.

4. The UFS-based power consumption automation test method according to any one of claims 1 to 3, characterized in that: The method further comprises: The data collected during the test is written into a local Excel file for data preservation. After the UFS static power consumption and dynamic power consumption tests are completed, the saved Excel files are analyzed and compared for data preservation.

5. A UFS-based power consumption automatic test system, characterized in that: The system comprises: A connection module, the connection module is used to connect a programmable high-precision DC power supply to a UFS host, power the VCC / VCCQ / VCCQ2 pins of the UFS, and connect the test machine to the UFS host via ADB; A command issuing module, wherein the command issuing module is used for the UFS host to establish communication with the UFS device, use the DME command defined in the UFSHCI protocol to switch the transmission mode of the M-PHY layer of the UFS device, and use the SSU command defined in the UFS protocol to switch the power consumption mode of the UFS device; A first test module, wherein the first test module is used for the test machine to send a current collection instruction to the programmable high-precision DC power supply to obtain the VCC / VCCQ / VCCQ2 current of the UFS at this time to test the static power consumption of the UFS; The second test module is used for the UFS host to issue read and write operations to the UFS device in various UFS switching modes, send current collection instructions to the programmable high-precision DC power supply, and obtain the VCC / VCCQ / VCCQ2 current size of the UFS at this time to test the UFS dynamic power consumption.

6. The UFS-based power consumption automatic test system according to claim 5, characterized in that: The command issuing module is also used for: The tester sends a command to the programmable high-precision DC power supply, and the programmable high-precision DC power supply supplies power to the VCC / VCCQ / VCCQ2 pins of the UFS with the correct voltage according to the protocol standard, and the UFS host is turned on and started.

7. The UFS-based power consumption automatic test system according to claim 6, characterized in that: The system is also used to: Use Python to create a dictionary collection of UFS mode switching instructions, establish a loop function to enable the UFS host to send a set of instructions for UFS mode switching, use pyvisa to send instructions to the programmable high-precision DC power supply to adapt the voltage and current, and collect the current from the programmable high-precision DC power supply.

8. The UFS-based power consumption automatic test system according to any one of claims 5 to 7, characterized in that: The system further comprises: The data analysis module is used to write the data collected during the test into a local Excel file for data preservation, and after the UFS static power consumption and dynamic power consumption tests are completed, the saved Excel files are analyzed and compared.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Cited By

  • UFS self-detection method, electronic equipment and storage medium

    CN119883744A