Power detection method, device, equipment and medium
By welding inductors or magnetic beads to the power detection device, collecting power information of solid-state hard disks, the problem of easy damage to inductors and PCB pads in traditional testing methods is solved, achieving more efficient and simpler power detection, and supporting multiple channels Test simultaneously.
Patent Information
- Application Number
- CN202411187208.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-01-03
AI Technical Summary
In the development and development of single-board hardware, traditional methods use current probes and oscilloscopes to test the power consumption of U.2 interface SSDs easily damage the inductor or PCB pads, and the operation is complicated and not real-time.
Design a power detection method and device, by disassemblying the inductor or magnetic bead from the solid-state hard disk, soldering it to the pad of the power detection device, and connecting it through wires, collecting power information using the power sensor, and re-soldering it back after completion of the detection. In situ, supports multiple simultaneous testing.
It improves operation ease and efficiency, reduces the risk of damaging the board and inductive magnetic beads during the test, simplifies the test process, supports multiple simultaneous testing, and reduces the testing cost and time.
Smart Images

Figure CN119248583A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of electronic engineering and electrical engineering, and in particular to a power detection method, device, equipment and medium. Background Art
[0002] In the R&D and design of single-board hardware, it is usually necessary to evaluate the power consumption of each branch of the single-board. At present, in the R&D stage of U.2 interface SSD (Solid State Disk), the inductor or magnetic bead connected in series in the power output is lifted up, a wire is inserted in series, and then a current probe is used to obtain the branch power consumption through an oscilloscope. The inductor or PCB (Printed circuit board) pad is easily damaged during the test. Summary of the invention
[0003] In view of the above problems, the present invention proposes a power detection method, device, equipment and medium. In a first aspect of an embodiment of the present invention, a power detection method is first provided, which is applied to a power detection device, wherein the power detection device includes a display, a power sensor and a pad connected to the power sensor, and is characterized in that the method includes:
[0004] Removing a component to be tested from a preset solid state drive, wherein the component to be tested includes an inductor or a magnetic bead;
[0005] Soldering the inductor or magnetic bead to the pad of the power detection device;
[0006] Connecting the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state hard disk through a wire;
[0007] Powering on the power detection device and the solid-state hard disk, and collecting power information of the solid-state hard disk during operation through a power sensor;
[0008] After the power detection is completed, the inductor or magnetic bead is removed from the pad of the power detection device, and the inductor or magnetic bead is re-welded to the installation position of the inductor or magnetic bead in the solid state drive.
[0009] Optionally, the solid state drive has at least one path to be tested, and the element to be tested is arranged on the path to be tested;
[0010] Remove the DUT from the pre-set SSD, including:
[0011] Identifying the inductor or magnetic bead on at least one path to be tested of the solid state drive;
[0012] The inductor or magnetic bead is removed from the solid state drive by using a soldering gun or a solder sucker.
[0013] Optionally, the pad adopts an inclined design, and the inclined design is used to match the inductor or magnetic bead of different package sizes.
[0014] Optionally, a sampling resistor is further connected between the inductor or magnetic bead welded to the power detection device and the installation position of the inductor or magnetic bead in the solid state drive;
[0015] The current passing through at least one path to be tested of the solid state hard disk is collected in real time through the sampling resistor.
[0016] Optionally, the power detection device further includes a microcontroller and a switch button; the switch button is used to switch the power values of different channels to be tested of the solid state hard disk in the display;
[0017] The power detection device and the solid state hard disk are powered on, and the power information of the solid state hard disk during operation is collected by the power sensor, including:
[0018] Confirm that the power supply of the solid state drive is correctly connected, and power on the solid state drive;
[0019] After the solid state hard disk is successfully powered on, the power detection device is powered on;
[0020] After the power detection device is powered on, the power detection device is initialized and controls the microcontroller in the power detection device to perform self-test;
[0021] If the microcontroller in the power detection device fails the self-test, controlling the power detection device and the solid state hard disk to be powered off;
[0022] After the power detection device and the solid state hard disk are powered off, a fault check is performed;
[0023] If the fault is recovered, controlling the power detection device and the solid state hard disk to power on;
[0024] If the microcontroller in the power detection device passes the self-test, the microcontroller collects power information data of the power sensor;
[0025] Processing the collected power information data by the microcontroller to obtain a power value;
[0026] Displaying the power value on a display via the microcontroller;
[0027] In response to a switching operation on the switching button, the power values of different channels to be tested of the solid state hard disk are switched, so that the power values of different channels to be tested of the solid state hard disk are displayed on the display.
[0028] Optionally, the microcontroller processes the collected power information data to obtain a power value, including:
[0029] Collecting original power information data of the power sensor through the microcontroller;
[0030] The microcontroller pre-processes the raw power information data to obtain a power value; the pre-processing includes filtering, calibration or unit conversion processing.
[0031] Optionally, the power collection device further comprises a multiplexer, wherein the multiplexer is connected to the power sensor and the microcontroller;
[0032] The power value in the power sensor is collected through the multiplexer; the power value includes the power values of different channels to be tested in the solid state drive.
[0033] In a second aspect of the embodiments of the present invention, a power detection device is further provided, the device comprising:
[0034] A disassembly module, used to disassemble a component to be tested from a preset solid-state hard disk, wherein the component to be tested includes an inductor or a magnetic bead;
[0035] A first welding module, used for welding the inductor or magnetic bead to the welding pad of the power detection device;
[0036] A connection module, used to connect the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state hard disk through a wire;
[0037] A power-on module, used to power on the power detection device and the solid-state hard disk, and collect power information of the solid-state hard disk during operation through a power sensor;
[0038] The second welding module is used to remove the inductor or magnetic bead on the welding pad of the power detection device after the power detection is completed, and re-weld the inductor or magnetic bead to the installation position of the inductor or magnetic bead in the solid state drive.
[0039] In a third aspect of an embodiment of the present invention, an electronic device is also provided, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the power detection method as described above is implemented.
[0040] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the power detection method as described above is implemented.
[0041] The embodiments of the present invention have the following advantages:
[0042] In an embodiment of the present invention, by removing the component to be tested from a preset solid-state hard disk, the component to be tested includes an inductor or a magnetic bead; welding the inductor or the magnetic bead to the pad of the power detection device; connecting the inductor or the magnetic bead welded to the power detection device to the installation position of the inductor or the magnetic bead in the solid-state hard disk through a wire; powering on the power detection device and the solid-state hard disk, and collecting power information during the operation of the solid-state hard disk through a power sensor; after the power detection is completed, removing the inductor or the magnetic bead from the pad of the power detection device, and re-welding the inductor or the magnetic bead to the installation position of the inductor or the magnetic bead in the solid-state hard disk. Compared with the traditional test method using a current probe plus an oscilloscope, the simplicity of operation is improved, the data displayed in real time, and the efficiency is also improved; welding the inductor or the magnetic bead to the device can effectively reduce the phenomenon of damaging the board and the inductor magnetic bead during the test, and the device has a simple structure and is easy to carry, so it also has a certain economy. In addition, it also supports multi-channel simultaneous testing, simplifies the test process, and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0044] Figure 1 is a flowchart of a power detection method provided by an embodiment of the present invention;
[0045] Figure 2 It is a schematic diagram of the power detection principle provided by an embodiment of the present invention;
[0046] Figure 3 This is a schematic diagram of multi-channel power distribution of a device under test provided by an embodiment of the present invention;
[0047] Figure 4 This is a power detection workflow diagram provided by an embodiment of the present invention;
[0048] Figure 5 It is a structural block diagram of a power detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0050] During the development of SSD products, it is sometimes necessary to test the power consumption of each power branch. Currently, most of the methods are to lift up the inductor or magnetic bead in series in the circuit, insert a wire, and then use a current probe to obtain the branch power consumption through an oscilloscope. The inductor or PC B pad is easily damaged during the test. Therefore, it is necessary to have a device that can directly read the power during the design, which is not easy to damage the board or inductor and has the characteristics of being small and portable.
[0051] In an embodiment of the present invention, the core concept is to weld a magnetic bead or an inductor to a fixture, and the power consumption value can be read directly on the fixture. This is not only simple and practical, but also can improve work efficiency. At the same time, it can effectively solve the damage to the board pads and inductor that occurs during the test, and the risk of the test is also reduced.
[0052] Reference Figure 1 , shows a flowchart of a power detection method provided by an embodiment of the present invention, which may specifically include the following steps:
[0053] Step 101: remove a component to be tested from a preset solid state drive, wherein the component to be tested includes an inductor or a magnetic bead.
[0054] In the embodiment of the present invention, the device under test (DUT) is a solid state disk (SSD). The removal of the inductor or magnetic beads from the device under test, i.e., the solid state disk, needs to be performed with caution to avoid damaging the hard disk or other components. The specific process is as follows:
[0055] Preparation: Make sure the work area is clean and well-lit, and prepare the necessary tools and materials, such as soldering tools, solder suckers, magnifying glasses, tweezers, solder, flux, insulating sleeves, etc. Turn off the power of the SSD and make sure the hard drive is completely powered off.
[0056] Identify the components to be tested: Find the path to be tested on the SSD circuit board and identify the inductor or magnetic beads on the path. These components are usually used for filtering, impedance matching or signal isolation. Record the location and connection method of the components so that they can be correctly reinstalled or replaced after disassembly.
[0057] Remove the component to be tested: Use a soldering tool and a solder sucker to carefully heat the solder joint of the component to be tested to melt it, and use tweezers to gently remove the inductor or magnetic bead from the circuit board. Be careful not to use too much force to avoid damaging the pad or adjacent components. If the solder joint is difficult to melt, you can apply some flux first to help the solder flow.
[0058] Clean the soldering pad: Use a solder sucker or solder tin to absorb excess solder and clean the residue on the soldering pad to ensure that the soldering pad is clean and flat for subsequent soldering operations.
[0059] Record and mark: record the model, location and other relevant information of the removed components so that they can be reinstalled correctly after testing. Labels or markers can be used to mark the circuit board to avoid confusion.
[0060] Step 102: solder the inductor or magnetic bead to the soldering pad of the power detection device.
[0061] In the embodiment of the present invention, after removing the inductor or magnetic bead from the solid state drive using a soldering tool and a solder sucker, the inductor or magnetic bead is soldered to a pad (PAD) of the power detection device.
[0062] Specifically, a tilted pad is used in the power detection device to weld inductors or magnetic beads. The tilted pad can weld inductors or magnetic beads of different package sizes. In addition, the tilted pad can also provide more welding space, reduce mechanical stress during welding, and improve welding quality and reliability.
[0063] Specifically, if Figure 2As shown, it is a schematic diagram of the power detection principle provided by an embodiment of the present invention. In the schematic diagram, the device under test has two paths to be tested. In the power detection device, a universal serial bus (USB) is connected to a direct current converter (DC / DC, Direct Current / Direct Current), with a power switch between the two. The direct current converter is connected to a display (LCD, Liquid Crystal Display) and a microcontroller (MCU, Microcontroller Unit), and the display is also connected to the microcontroller. At the same time, the microcontroller is also connected to a switching button and a multiplexer. The multiplexer is connected to the power sensor through an integrated circuit bus. The power sensor is connected to a sampling resistor R0 and a pad welded with an inductor or magnetic beads L0, L1 removed from the device under test. Each path uses two wires to connect the pad to the installation position of the inductor or magnetic beads L0, L1 in the device under test.
[0064] Among them, a universal serial bus is used for power supply; a power switch is used to control the power on and off of the device; a DC converter can convert the input DC voltage (such as 5V) into a voltage available to the display and the microcontroller; the microcontroller can collect power information through a power sensor and then display it through the display; a switch button is used to switch the path to be tested or the display mode, and the power value of a certain path to be tested can be displayed separately, or the power values of multiple paths to be tested can be displayed simultaneously; the sampling resistor R0 is mainly used to collect the current passing through the path to be tested in real time, and a multiplexer can be used to collect the power of multiple paths to be tested, thereby realizing the collection of multi-path power.
[0065] In the embodiment of the present invention, a universal serial bus is used for power supply, and other power supply methods may also be used. The DC converter, microcontroller, and power sensor may be any DC converter, microcontroller, and power sensor. When a display is used to display the power value, a touch screen method may also be used to switch the display content, and the present invention does not impose any limitation.
[0066] Step 103: connect the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state drive through a wire.
[0067] In an embodiment of the present invention, the wire at one end is welded to a pad on a power detection device with an inductor or a magnetic bead, and the wire at the other end is welded to the installation position of the inductor or the magnetic bead in the solid state drive to ensure that the welding is firm and avoid cold soldering or short circuit.
[0068] Step 104: Power on the power detection device and the solid state hard disk, and collect power information of the solid state hard disk during operation through the power sensor.
[0069] In an embodiment of the present invention, before powering on the device under test, i.e., the solid-state hard disk, all connections of the solid-state hard disk need to be carefully checked, including the power line, signal line, and other necessary connections, to ensure that all connections are correct and secure, and there are no short circuits or cold solder joints; then, check the power status, confirm that the power switch is in the off state, and check whether the power voltage and current meet the requirements of the solid-state hard disk; then, turn on the power switch of the solid-state hard disk, power the solid-state hard disk, observe the startup process of the solid-state hard disk, and pay attention to whether there are any abnormal conditions, such as overheating, smoke, or abnormal noise; wait for the solid-state hard disk to complete the startup process, which can usually be judged by observing the indicator light, display screen, or operating system interface.
[0070] After ensuring that the solid-state hard disk is operating normally and there are no errors or warning messages, start powering on the power detection device. Before powering on the test device, carefully check all connections of the power detection device, including the power cord, signal cord and other necessary connections, to ensure that all connections are firm and correct, and there are no short circuits or cold solder joints. Then ensure that the power switch of the power detection device is in the off state, check whether the power supply voltage and current meet the requirements of the power detection device, turn on the power switch of the power detection device, and power on the power detection device.
[0071] After the power detection device is powered on, it will perform its own initialization process, including hardware self-test, software loading, etc. The power detection device in the present invention includes a microcontroller, and the microcontroller self-test is required. If the microcontroller self-test passes, power information data is collected through a power sensor connected to a solid-state hard disk. The analog-to-digital converter (ADC) or other interface of the microcontroller can be used to read the analog or digital signal of the power sensor, and the collected original power information data is stored in the memory of the microcontroller; then the microcontroller pre-processes the collected original power information data to obtain the actual power value.
[0072] Specifically, the collected raw data is filtered to remove noise and interference, and then the filtered data can be calibrated according to the calibration parameters of the power sensor to ensure the accuracy of the data. Finally, the actual power value is calculated based on the calibrated data, and the calculated power value is stored in the memory of the microcontroller, or can be transmitted to an external storage device through a serial port, SPI (Serial Peripheral Interface), I2C (Inter-Integrated Circuit) and other interfaces.
[0073] The microcontroller pre-processes the collected raw power information data, and after obtaining the actual power value, the processed power value can be displayed on the display. Since there may be more than one path to be tested in the solid-state hard disk, the power values of different paths to be tested can be switched on the display by switching buttons. Finally, the power values of all paths to be tested in the solid-state hard disk can be recorded.
[0074] In an embodiment of the present invention, if the microcontroller self-test fails, the power detection device and the solid-state hard disk are powered off for troubleshooting. After the fault is resolved, the solid-state hard disk and the power detection device are powered on again. If the fault cannot be resolved, power detection cannot be performed and the power detection process ends directly.
[0075] Step 105, after the power detection is completed, the inductor or magnetic bead is removed from the pad of the power detection device, and the inductor or magnetic bead is re-welded to the installation position of the inductor or magnetic bead in the solid state drive.
[0076] In the embodiment of the present invention, after the power values of all the channels to be tested in the solid-state hard disk are obtained, it indicates that the power detection has been completed, and then the solid-state hard disk and the power detection device are powered off, and finally the inductor or magnetic bead on the pad of the power detection device is removed and re-soldered back to the solid-state hard disk, and the test is completed. If there are too many channels in the solid-state hard disk and the detection cannot be completed in one time, it can be carried out in multiple times. For example, if there are 100 channels to be tested in the solid-state hard disk, and the power detection device can detect 20 channels to be tested at the same time, it can be carried out in 5 times.
[0077] Through the above operations, by welding the inductor or magnetic beads to the power detection device, the phenomenon of damage to the board or the inductor magnetic beads during the test process can be effectively reduced, and the power value can be directly read through the display; at the same time, it can support multi-channel simultaneous testing, simplify the test process, reduce the test cost, and improve the test efficiency.
[0078] It should be noted that the above power detection method is not only suitable for power consumption decomposition testing of solid-state drives, but can also be applied to any electronic product (such as network cards, graphics cards, etc.) that requires power consumption decomposition during the research and development process, and the present invention does not limit this.
[0079] In order to avoid damaging the inductor beads or PCB (Printed circuit board) pads during the test, non-intrusive measurement methods can also be used, using current loops or current clamps (such as Rogowski coils) for non-intrusive measurements. These devices can be clamped directly on the wire without disconnecting the circuit, thus avoiding damage to the components. Using Hall effect sensors for current measurement also does not require disconnecting the circuit and has less impact on the circuit.
[0080] Furthermore, in the embodiment of the present invention, step 101 further includes the following steps:
[0081] S1011, identifying the inductor or magnetic bead on at least one path to be tested of the solid state drive.
[0082] Specifically, the device under test, ie, a solid-state drive, may have multiple paths to be tested, so it is necessary to find multiple paths to be tested on the circuit board of the solid-state drive and identify the inductor or magnetic bead on each path.
[0083] S1012, removing the inductor or magnetic bead from the solid state drive by using a soldering gun or a solder sucker.
[0084] Specifically, preheat the soldering gun or solder sucker to the appropriate temperature, apply a proper amount of flux on the inductor or magnetic bead to help the solder flow, use the soldering gun to heat the solder joint to melt the solder, or use the solder sucker to absorb the melted solder to loosen the solder joint, and finally use tweezers to gently remove the inductor or magnetic bead from the circuit board. Be careful not to use too much force to avoid damaging the pads or adjacent components.
[0085] Furthermore, in the embodiment of the present invention, step 103 further includes the following steps:
[0086] S1031, collecting, through the sampling resistor, a current that passes through at least one path to be tested of the solid state drive in real time.
[0087] In the embodiment of the present invention, a sampling resistor is connected between the inductor or magnetic bead welded to the power detection device and the installation position of the inductor or magnetic bead in the solid state drive. The sampling resistor is used to collect the current passing through the path to be tested in real time.
[0088] Specifically, according to the current range and measurement accuracy requirements of the path to be tested, a suitable sampling resistor is selected, and the sampling resistor is connected in series in the path to be tested to ensure that it is firmly connected and has no cold solder joints. One end of the sampling resistor is connected to the installation position of the inductor or magnetic bead in the solid-state hard disk, and the other end is connected to the installation position of the inductor or magnetic bead on the power detection device. The current passing through the resistor is indirectly calculated by measuring the voltage drop across the sampling resistor. By collecting the real-time current passing through the path to be tested, the power of the path to be tested can be calculated.
[0089] Furthermore, in the embodiment of the present invention, step 104 further includes the following steps:
[0090] S1041, determine that the power supply of the solid state drive is correctly connected, and power on the solid state drive.
[0091] Specifically, before powering on the SSD, carefully check all connections of the SSD, including the power line, signal line, and other necessary connections, to ensure that all connections are firm and correct, and that there are no short circuits or cold solder joints. Ensure that the power switch of the SSD is in the off state, and check whether the power supply voltage and current meet the requirements of the SSD. If all checks are correct, turn on the power switch of the SSD to power the SSD.
[0092] S1042, after the solid state hard disk is successfully powered on, the power detection device is powered on.
[0093] Specifically, after powering on the SSD, observe the SSD startup process and pay attention to whether there are any abnormal conditions, such as overheating, smoke, or abnormal noise. You can usually determine that the SSD has been powered on successfully by observing the indicator light, display screen, or operating system interface.
[0094] After the SSD is powered on successfully, power on the power detection device. Before powering on the power detection device, you also need to carefully check all connections of the detection device, including the power line, signal line and other necessary connections, to ensure that all connections are firm and correct, and there is no short circuit or cold soldering. Ensure that the power switch of the detection device is in the off state, check whether the power supply voltage and current meet the requirements of the detection device. After checking, turn on the power switch of the detection device to power the test device.
[0095] S1043, after the power detection device is powered on, the power detection device is initialized and controls the microcontroller in the power detection device to perform self-test.
[0096] Specifically, after the power detection device is powered on, it will perform its own initialization process, that is, the microcontroller will perform a self-test, including: power supply check: ensure that the power supply voltage of the microcontroller is within the normal range; clock check: verify whether the system clock is stable and the frequency is correct; reset check: confirm whether the reset signal is normal and whether the microcontroller starts from the correct state; peripheral check: check whether the peripherals connected to the microcontroller (such as ADC, UART (Universal Asynchronous Receiver / Transmitter), SPI, I2C, etc.) are working properly; memory check: test the read and write functions of the internal or external memory, etc. After the self-test is completed, the microcontroller will generate a self-test report to indicate the self-test results.
[0097] S1044: If the microcontroller in the power detection device fails the self-test, the power detection device and the solid state hard disk are controlled to be powered off.
[0098] Specifically, if the microcontroller self-check finds an error, it is necessary to power off the power detection device and the solid-state hard disk to perform troubleshooting.
[0099] S1045, after the power detection device and the solid state hard disk are powered off, a fault check is performed.
[0100] Specifically, check the microcontroller's power supply voltage, reset signal, clock signal, programming and configuration, etc. You can also check the self-test report generated by the microcontroller.
[0101] S1046: If the fault is recovered, control the power detection device and the solid state hard disk to power on.
[0102] S1047: If the microcontroller in the power detection device passes the self-test, the microcontroller collects power information data of the power sensor.
[0103] Specifically, after the microcontroller passes the self-test, an analog-to-digital converter or other interface can be used to read the analog or digital signal of the power sensor, and the collected raw power data can be stored in the memory.
[0104] S1048, processing the collected power information data by the microcontroller to obtain a power value.
[0105] Specifically, the microcontroller needs to process the collected raw power information data, including data filtering, data calibration, etc., to obtain the actual power value, store the obtained power value in the memory, or transmit it to an external storage device through a serial port, SPI, I2C or other interface.
[0106] S1049, displaying the power value on a display via the microcontroller.
[0107] Specifically, the processed power value is displayed through a liquid crystal display or other display devices.
[0108] S10410, in response to a switching operation on the switching button, switching the power values of different channels to be tested of the solid state drive, so that the power values of different channels to be tested of the solid state drive are displayed on the display.
[0109] Specifically, the display mode can be switched by switching buttons, such as displaying the power values of different channels to be tested one by one, or directly displaying the power values of all channels to be tested. If the power value of one channel to be tested occupies the entire screen of the display, the power values of different channels to be tested can be switched by switching buttons. The power value of the channel to be tested of the solid-state hard disk is displayed in real time on the display, and then data is recorded.
[0110] Furthermore, in the embodiment of the present invention, step 1048 further includes the following steps:
[0111] S1048-1, collecting original power information data of the power sensor through the microcontroller.
[0112] S1048-2, preprocessing the original power information data through the microcontroller to obtain a power value; the preprocessing includes filtering, calibration or unit conversion processing.
[0113] In an embodiment of the present invention, the collected raw data is filtered to remove noise and interference. Common filtering methods include moving average filtering, median filtering, low-pass filtering, etc. The filtered data is calibrated according to the calibration parameters of the power sensor to ensure the accuracy of the data. Calibration usually involves converting the ADC reading into an actual power value. Based on the calibrated data, the actual power value is calculated. This may include calculating active power, reactive power, apparent power, power factor, etc.
[0114] Furthermore, in the embodiment of the present invention, the following steps are also included:
[0115] S1, collecting power values in the power sensor through the multiplexer; the power values include power values of different channels to be tested in the solid state drive.
[0116] In an embodiment of the present invention, the power collection device also includes a multiplexer, which is connected to the power sensor and the microcontroller. Multiple power sensors can be connected through the multiplexer, so that power values on multiple channels to be measured can be collected simultaneously, thereby realizing multi-channel power collection.
[0117] Specifically, if Figure 3 As shown, it is a schematic diagram of multi-channel power supply distribution of a device under test provided by an embodiment of the present invention. L0, L1, and L2 in the device under test are inductors or magnetic beads. The DC converter is a power management device used to convert one DC voltage into another DC voltage, and is used to convert an input DC voltage (such as 12V or 5V) into a lower or higher DC voltage (such as 3.3V, 1.8V, etc.) required by a microcontroller or other components; VCC is a commonly used power supply voltage identifier in electronic circuits, usually indicating a positive power supply voltage; a central processing unit usually refers to a microcontroller unit or a processor.
[0118] Furthermore, if Figure 4 As shown, it is a power detection workflow diagram provided by an embodiment of the present invention, and the specific process is as follows:
[0119] 1. Determine the path to be tested on the SSD;
[0120] 2. Identify the inductor or magnetic bead on the path to be tested, remove the inductor or magnetic bead from the solid-state drive, and solder it to the pad of the power detection device;
[0121] 3. Connect the pads of the SSD of the device under test and the power detection device to the corresponding positions through wires;
[0122] 4. After all the checks before powering on the SSD of the device under test are correct, power on the SSD of the device under test;
[0123] 5. After the SSD of the device under test is powered on and works normally, power on the power detection device;
[0124] 6. After the power detection device is powered on, the microcontroller needs to perform a self-test;
[0125] 7. If the self-test passes, the microcontroller collects the original power information data of the power sensor. If the self-test fails, the solid-state hard disk and power detection device of the device under test are powered off to perform troubleshooting;
[0126] 8. The microcontroller pre-processes the collected raw power information data to obtain a power value, and displays the processed power value on a display;
[0127] 9. Use the switch button to switch the power values of different channels to be tested, and record the data. The test is completed;
[0128] 10. After the test is completed, power off the SSD of the device under test and the power detection device, re-solder the inductor or magnetic bead back to the SSD of the device under test, and the test is completed;
[0129] 11. After troubleshooting, if the fault is solved, power on the solid state drive and power detection device of the device under test again. If the fault is not solved, power detection cannot be performed and the process ends.
[0130] In the embodiment of the present invention, through the above operation, by welding the inductor or magnetic beads to the power detection device, the phenomenon of damage to the board or the inductor magnetic beads during the test process can be effectively reduced. Compared with the traditional test method using a current probe plus an oscilloscope, the ease of operation is improved, and the power value can be displayed and read in real time through the display, thereby improving the detection efficiency.
[0131] In an embodiment of the present invention, by removing the component to be tested from a preset solid-state hard disk, the component to be tested includes an inductor or a magnetic bead; welding the inductor or the magnetic bead to the pad of the power detection device; connecting the inductor or the magnetic bead welded to the power detection device to the installation position of the inductor or the magnetic bead in the solid-state hard disk through a wire; powering on the power detection device and the solid-state hard disk, and collecting power information during the operation of the solid-state hard disk through a power sensor; after the power detection is completed, removing the inductor or the magnetic bead from the pad of the power detection device, and re-welding the inductor or the magnetic bead to the installation position of the inductor or the magnetic bead in the solid-state hard disk. Compared with the traditional test method using a current probe plus an oscilloscope, the simplicity of operation is improved, the data displayed in real time, and the efficiency is also improved; welding the inductor or the magnetic bead to the device can effectively reduce the phenomenon of damaging the board and the inductor magnetic bead during the test, and the device has a simple structure and is easy to carry, so it also has a certain economy. In addition, it also supports multi-channel simultaneous testing, simplifies the test process, and improves the test efficiency.
[0132] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0133] Reference Figure 5 , shows a structural block diagram of a power detection device provided by an embodiment of the present invention, which may specifically include the following modules:
[0134] A disassembly module 201 is used to disassemble a component to be tested from a preset solid-state hard disk, wherein the component to be tested includes an inductor or a magnetic bead;
[0135] A first welding module 202, used for welding the inductor or magnetic bead to the welding pad of the power detection device;
[0136] A connection module 203, used to connect the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state hard disk through a wire;
[0137] A power-on module 204, used to power on the power detection device and the solid-state hard disk, and collect power information of the solid-state hard disk during operation through a power sensor;
[0138] The second welding module 205 is used to remove the inductor or magnetic bead on the welding pad of the power detection device after the power detection is completed, and re-weld the inductor or magnetic bead to the installation position of the inductor or magnetic bead in the solid state drive.
[0139] Optionally, the disassembly module 201 includes:
[0140] An identification module, used to identify the inductor or magnetic bead on at least one path to be tested of the solid state drive;
[0141] The removal module is used to remove the inductor or magnetic bead from the solid state drive by using a soldering gun or a solder sucker.
[0142] Optionally, a sampling resistor is further connected between the inductor or magnetic bead welded to the power detection device and the installation position of the inductor or magnetic bead in the solid state drive;
[0143] The connection module 203 includes:
[0144] The current acquisition module is used to acquire the current passing through at least one to-be-tested path of the solid-state hard disk in real time through the sampling resistor.
[0145] Optionally, the power detection device further includes a microcontroller and a switch button; the switch button is used to switch the power values of different channels to be tested of the solid state hard disk in the display;
[0146] The power-on module 204 includes:
[0147] A solid state drive power-on module, used to determine that the solid state drive power supply is correctly connected and power on the solid state drive;
[0148] A detection device power-on module, used to power on the power detection device after the solid state hard disk is successfully powered on;
[0149] A self-check module, used for initializing the power detection device after the power detection device is powered on, and controlling the microcontroller in the power detection device to perform self-check;
[0150] A first power-off module, configured to control the power detection device and the solid-state hard disk to be powered off if the microcontroller in the power detection device fails a self-test;
[0151] A fault detection module, used for performing fault detection after the power detection device and the solid state hard disk are powered off;
[0152] A first power-on module, used to control the power detection device and the solid-state hard disk to power on if the fault is recovered;
[0153] A power collection module, used for collecting power information data of the power sensor by the microcontroller if the microcontroller in the power detection device passes the self-check;
[0154] A data processing module, used for processing the collected power information data through the microcontroller to obtain a power value;
[0155] A display module, used for displaying the power value on a display through the microcontroller;
[0156] The switching module is used to switch the power values of different channels to be tested of the solid state hard disk in response to the switching operation on the switching button, so that the power values of different channels to be tested of the solid state hard disk are displayed on the display.
[0157] Optionally, the data processing module includes:
[0158] A raw data acquisition module, used for acquiring raw power information data of the power sensor through the microcontroller;
[0159] The preprocessing module is used to preprocess the original power information data through the microcontroller to obtain a power value; the preprocessing includes filtering, calibration or unit conversion processing.
[0160] In an embodiment of the present invention, by removing the component to be tested from a preset solid-state hard disk, the component to be tested includes an inductor or a magnetic bead; welding the inductor or the magnetic bead to the pad of the power detection device; connecting the inductor or the magnetic bead welded to the power detection device to the installation position of the inductor or the magnetic bead in the solid-state hard disk through a wire; powering on the power detection device and the solid-state hard disk, and collecting power information during the operation of the solid-state hard disk through a power sensor; after the power detection is completed, removing the inductor or the magnetic bead from the pad of the power detection device, and re-welding the inductor or the magnetic bead to the installation position of the inductor or the magnetic bead in the solid-state hard disk. Compared with the traditional test method using a current probe plus an oscilloscope, the simplicity of operation is improved, the data displayed in real time, and the efficiency is also improved; welding the inductor or the magnetic bead to the device can effectively reduce the phenomenon of damaging the board and the inductor magnetic bead during the test, and the device has a simple structure and is easy to carry, so it also has a certain economy. In addition, it also supports multi-channel simultaneous testing, simplifies the test process, and improves the test efficiency.
[0161] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the above power detection method is implemented.
[0162] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above power detection method is implemented.
[0163] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0164] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0165] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0169] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0170] The above is a detailed introduction to a fast and secure startup method, device, equipment and medium based on a heterogeneous multi-core system. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. Although the implementation methods of the present invention are described as above, the above description content and definition are only for the convenience of understanding the implementation methods of the present invention, and are not intended to limit the present invention. Any modifications and changes made without departing from the spirit and scope of the present invention are within the scope of protection of the present invention. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A power detection method, applied to a power detection device, wherein the power detection device comprises a display, a power sensor and a pad connected to the power sensor, characterized in that: The method comprises: Removing a component to be tested from a preset solid state drive, wherein the component to be tested includes an inductor or a magnetic bead; Soldering the inductor or magnetic bead to the pad of the power detection device; Connecting the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state hard disk through a wire; Powering on the power detection device and the solid state hard disk, and collecting power information of the solid state hard disk during operation through the power sensor; After the power detection is completed, the inductor or magnetic bead is removed from the pad of the power detection device, and the inductor or magnetic bead is re-welded to the installation position of the inductor or magnetic bead in the solid state drive.
2. The method according to claim 1, characterized in that The solid state drive has at least one path to be tested, and the element to be tested is arranged on the path to be tested; Remove the DUT from the pre-set SSD, including: Identifying the inductor or magnetic bead on at least one path to be tested of the solid state drive; The inductor or magnetic bead is removed from the solid state drive by using a soldering gun or a solder sucker.
3. The method according to claim 1, characterized in that The pad adopts an inclined design, and the inclined design is used to match the inductor or magnetic beads of different package sizes.
4. The method according to claim 1, characterized in that: A sampling resistor is also connected between the inductor or magnetic bead welded to the power detection device and the installation position of the inductor or magnetic bead in the solid state hard disk; The current passing through at least one path to be tested of the solid state hard disk is collected in real time through the sampling resistor.
5. The method according to claim 1, characterized in that The power detection device further includes a microcontroller and a switch button; the switch button is used to switch the power values of different channels to be tested of the solid state hard disk in the display; The power detection device and the solid state hard disk are powered on, and the power information of the solid state hard disk during operation is collected by the power sensor, including: Confirm that the power supply of the solid state drive is correctly connected, and power on the solid state drive; After the solid state hard disk is successfully powered on, the power detection device is powered on; After the power detection device is powered on, the power detection device is initialized and controls the microcontroller in the power detection device to perform self-test; If the microcontroller in the power detection device fails the self-test, controlling the power detection device and the solid state hard disk to be powered off; After the power detection device and the solid state hard disk are powered off, a fault check is performed; If the fault is recovered, controlling the power detection device and the solid state hard disk to power on; If the microcontroller in the power detection device passes the self-test, the microcontroller collects power information data of the power sensor; Processing the collected power information data by the microcontroller to obtain a power value; Displaying the power value on a display via the microcontroller; In response to a switching operation on the switching button, the power values of different channels to be tested of the solid state hard disk are switched, so that the power values of different channels to be tested of the solid state hard disk are displayed on the display.
6. The method according to claim 5, characterized in that The microcontroller processes the collected power information data to obtain a power value, including: Collecting original power information data of the power sensor through the microcontroller; The microcontroller pre-processes the raw power information data to obtain a power value; the pre-processing includes filtering, calibration or unit conversion processing.
7. The method according to claim 5, characterized in that The power collection device further comprises a multiplexer, wherein the multiplexer is connected to the power sensor and the microcontroller; The power value in the power sensor is collected through the multiplexer; the power value includes the power values of different channels to be tested in the solid state drive.
8. A power detection device, characterized in that: The device comprises: A disassembly module, used to disassemble a component to be tested from a preset solid-state hard disk, wherein the component to be tested includes an inductor or a magnetic bead; A first welding module, used for welding the inductor or magnetic bead to the welding pad of the power detection device; A connection module, used to connect the inductor or magnetic bead welded to the power detection device to the installation position of the inductor or magnetic bead in the solid state hard disk through a wire; A power-on module, used to power on the power detection device and the solid-state hard disk, and collect power information of the solid-state hard disk during operation through a power sensor; The second welding module is used to remove the inductor or magnetic bead on the welding pad of the power detection device after the power detection is completed, and re-weld the inductor or magnetic bead to the installation position of the inductor or magnetic bead in the solid state drive.
9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the power detection method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the power detection method according to any one of claims 1 to 7 is implemented.
