Testing device and testing method

By using control modules, amplification modules and level conversion modules to automatically adjust the test voltage and record the working status in MEMS sensor testing, the problems of cumbersome, inefficient and high cost in the existing technology are solved, and efficient and automated testing is achieved process.

CN118937770APending Publication Date: 2024-11-12BOE TECHNOLOGY GROUP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411046081.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the testing process of different types of MEMS sensors is cumbersome, inefficient and expensive, and it is necessary to develop a matching test device, and frequent welding and plugging operations are required during the test process, which consumes a lot of manpower and material resources. .

Method used

It provides a testing device, including a control module, an amplification module and a level conversion module, which simplifies the test process, improves efficiency and reduces costs by automatically adjusting the test voltage and recording the working state.

Benefits of technology

It realizes automated test voltage regulation and result recording, simplifies the test process, improves efficiency, reduces labor costs, and is compatible with different types of MEMS sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118937770A_ABST
    Figure CN118937770A_ABST
Patent Text Reader

Abstract

The invention provides a testing device and a testing method.The testing device comprises a control module, an amplification module and a level conversion module, the control module comprises a first testing end and a second testing end, the amplification module comprises an input end and an output end, and the level conversion module comprises a first end and a second end; the first test end of the control module is connected with the input end of the amplification module, the output end of the amplification module is used for being connected with the voltage input end of a device to be tested, and the second test end of the control module is connected with the first end of the level conversion module. The second end of the level conversion module is used for being connected with a communication interface of a to-be-tested device. Compared with the prior art, the test voltage is automatically adjusted, the test result is automatically recorded and analyzed, the test process is simplified, the test efficiency is improved, and the labor cost is reduced; and the test of different types of to-be-tested devices can be compatible by setting the preset voltage range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of testing technology, and more specifically, to a testing device and a testing method. Background Art

[0002] With the rapid development of micro-electromechanical systems (MEMS) technology, MEMS sensors have been widely used in consumer electronics, automotive electronics, industrial control, medical health and other fields. During the research and development stage of MEMS sensors, the verification of the operating range of the key pin signal voltage is a key link to ensure product performance and reliability.

[0003] At present, when testing and verifying different types of MEMS sensors, on the one hand, it is necessary to develop matching test equipment; on the other hand, during the test process, welding, plugging and unplugging and other operations are frequently required to manually switch signals and voltages, and the test results need to be specially recorded and analyzed, which consumes a lot of manpower and material resources. Summary of the invention

[0004] The purpose of the present disclosure is to provide a testing device and a testing method to solve the technical problems in the related art that the testing process is cumbersome, inefficient, and costly when testing different types of MEMS sensors.

[0005] In order to achieve the above objectives, the present invention adopts the following technical solutions:

[0006] A first aspect of the present disclosure provides a test device, comprising: a control module, an amplifying module and a level conversion module, wherein the control module comprises a first test terminal and a second test terminal, the amplifying module comprises an input terminal and an output terminal, the level conversion module comprises a first terminal and a second terminal, the first test terminal of the control module is connected to the input terminal of the amplifying module, the output terminal of the amplifying module is used to be connected to the voltage input terminal of a device under test, the second test terminal of the control module is connected to the first terminal of the level conversion module, and the second terminal of the level conversion module is used to be connected to the communication interface of the device under test;

[0007] The control module is configured to test the device under test in response to a test instruction, and the test includes a test step and a loop step. The test step includes: outputting one of a test voltage signal and a reference voltage signal to the amplification module through a first test terminal, and outputting the other of the test voltage signal and the reference voltage signal to the level conversion module through a second test terminal, the test voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a reference voltage and input to the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the test voltage according to the working data, and recording the test voltage and working state; the loop step includes: keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeatedly executing the test step on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

[0008] Optionally, the test instruction includes a first test instruction and / or a second test instruction; and the control module is configured to:

[0009] In response to a first test instruction, a first test is performed on the device under test, the first test comprising a first test step and a first loop step, the first test step comprising: outputting a first test voltage signal to the amplification module through a first test terminal, outputting a first reference voltage signal to the level conversion module through a second test terminal, the first test voltage signal is amplified by the amplification module to form a first test voltage and input to the voltage input terminal of the device under test, the reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test, receiving first working data returned by the communication interface of the device under test, judging the working state of the device under test under the first test voltage according to the first working data, and recording the first test voltage and the first working state; the first loop step comprises: adjusting the first test voltage signal to adjust the first test voltage in units of a preset voltage length, repeatedly executing the first test step on the adjusted first test voltage signal until the adjusted first test voltage exceeds a first preset voltage range; and / or

[0010] In response to a second test instruction, a second test is performed on the device under test, the second test includes a second test step and a second loop step, the second test step includes: outputting a second reference voltage signal to the amplification module through the first test terminal, outputting a second test voltage signal to the level conversion module through the second test terminal, the second test voltage signal is level-converted by the level conversion module to form a second test voltage and input to the communication interface of the device under test, the second reference voltage signal is amplified by the amplification module to form a second reference voltage and input to the voltage input terminal of the device under test, receiving second working data returned by the communication interface of the device under test, judging the working state of the device under test under the second test voltage according to the second working data, and recording the second test voltage and the second working state; the second loop step includes: adjusting the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeatedly executing the second test step on the adjusted second test voltage signal until the adjusted second test voltage exceeds the second preset voltage range.

[0011] Optionally, the first test end includes a first voltage output pin and a second voltage output pin, the amplification module includes a first amplification circuit and a second amplification circuit, the voltage input end of the device under test includes a first voltage input pin and a second voltage input pin, the first voltage output pin is connected to the input end of the first amplification circuit, the output end of the first amplification circuit is connected to the first voltage input pin of the device under test, the second voltage output pin is connected to the input end of the second amplification circuit, and the output end of the second amplification circuit is connected to the second voltage input pin of the device under test; the first test voltage signal includes a third test voltage signal and a fourth test voltage signal;

[0012] The first test step includes: in response to the first test instruction, outputting a third test voltage signal to the first amplifier circuit through the first voltage output pin, and outputting a fourth test voltage signal to the second amplifier circuit through the second voltage output pin, the third test voltage signal is amplified by the first amplifier circuit to form a third test voltage and input to the first voltage input pin of the device under test, the fourth test voltage signal is amplified by the second amplifier circuit to form a fourth test voltage and input to the second voltage input pin of the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the third test voltage and the fourth test voltage according to the working data, and recording the third test voltage, the fourth test voltage and the working state;

[0013] The first cycle step includes: adjusting the third test voltage signal to adjust the third test voltage in units of a preset voltage length, repeating the first test step on the adjusted third test voltage signal until the adjusted third test voltage exceeds a third preset voltage range, and for any third test voltage, adjusting the fourth test voltage signal to adjust the fourth test voltage in units of a preset voltage length, repeating the first test step on the adjusted fourth test voltage signal until the adjusted fourth test voltage exceeds a fourth preset voltage range.

[0014] Optionally, the circuit structure of the first amplifying circuit and the second amplifying circuit is the same, the first amplifying circuit includes an operational amplifier, a first resistor, a second resistor, a third resistor and a first capacitor, the first input terminal of the operational amplifier is connected to the first end of the first resistor, the second end of the first resistor is connected to the first voltage output pin, the second input terminal of the operational amplifier is connected to the first end of the second resistor and the first end of the third resistor, the second end of the second resistor is grounded, and the second end of the third resistor is connected to the output terminal of the operational amplifier; the first power supply pin of the operational amplifier is connected to the first power supply and the first end of the first capacitor, the second end of the first capacitor is grounded, the second power supply pin of the operational amplifier is grounded, and the output terminal of the operational amplifier is connected to the first voltage input pin of the device under test.

[0015] Optionally, the second test end includes a first clock signal pin and a first data signal pin, the level conversion module includes a first level conversion module, and the first level conversion module includes a dual-way bidirectional multi-voltage level converter; the first end and the second end of the dual-way bidirectional multi-voltage level converter respectively include two pins, the first clock signal pin and the first data signal pin are respectively connected to the two pins of the first end of the dual-way bidirectional multi-voltage level converter, and the two pins of the second end of the dual-way bidirectional multi-voltage level converter are used to connect to the serial communication interface of the device under test.

[0016] Optionally, the second test end also includes a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, and the level conversion module also includes a second level conversion module, and the second level conversion module includes a four-way bidirectional multi-voltage level converter; the first end and the second end of the four-way bidirectional multi-voltage level converter respectively include four pins, the second clock signal pin, the second data signal pin, the third data signal pin and the chip select signal pin are respectively connected to the four pins of the first end of the four-way bidirectional multi-voltage level converter, and the four pins of the second end of the four-way bidirectional multi-voltage level converter are used to connect to the serial peripheral interface of the device under test.

[0017] Optionally, the control module is further configured to:

[0018] In response to a second test instruction and first configuration information, a second test voltage signal is output to the first level conversion module through a first clock signal pin and a first data signal pin, or the second test voltage signal is output to the second level conversion module through a second clock signal pin, a second data signal pin, a third data signal pin, and a chip select signal pin, and the first configuration information indicates that the second test instruction is a serial communication interface test or a serial peripheral interface test.

[0019] Optionally, the testing device also includes a power management module, which includes an input end and an output end, the input end is used to connect to an external power supply, and the output end is connected to the power input end of the control module, the amplification module and the level conversion module, and the power management module is used to stabilize the external power supply and output a first power supply to the control module, the amplification module and the level conversion module.

[0020] Optionally, the power management module includes a power interface circuit and a low voltage difference linear voltage regulator circuit; the power interface circuit includes a power socket, the power socket includes a first input pin, a second input pin, a first output pin and a second output pin, the first input pin and the second input pin of the power socket are used to connect to the first pole and the second pole of an external power supply, respectively, and the first output pin and the second output pin of the power socket are used to connect to the input end of the low voltage difference linear voltage regulator circuit; the low voltage difference linear voltage regulator circuit includes a low voltage difference linear regulator, the output end of the low voltage difference linear regulator is connected to the power input end of the control module, the amplification module and the level conversion module, and is used to output the first power supply.

[0021] Optionally, the testing device further comprises an interface conversion circuit, wherein the interface conversion circuit comprises a first end and a second end, wherein the first end is connected to a USB bus of an external terminal, and the second end is connected to a serial communication interface of the control module.

[0022] A second aspect of the present disclosure provides a testing method, which is applicable to a testing device, wherein the testing device comprises a control module, an amplifying module and a level conversion module, wherein the control module comprises a first test end and a second test end, the amplifying module comprises an input end and an output end, the level conversion module comprises a first end and a second end, the first test end of the control module is connected to the input end of the amplifying module, the output end of the amplifying module is used to be connected to the voltage input end of a device under test, the second test end of the control module is connected to the first end of the level conversion module, and the second end of the level conversion module is used to be connected to the communication interface of the device under test, and the testing method comprises the following steps:

[0023] In response to the test instruction, the device under test is tested, the test comprising:

[0024] Step A, outputting one of a test voltage signal and a reference voltage signal to the amplification module through a first test terminal, outputting the other of the test voltage signal and the reference voltage signal to the level conversion module through a second test terminal, the test voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a reference voltage and input to the device under test;

[0025] Step B, receiving working data returned by the communication interface of the device under test, determining the working state of the device under test under the test voltage according to the working data, and recording the test voltage and working state;

[0026] Step C, keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeating steps A and B on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

[0027] Optionally, the test instruction includes a first test instruction and / or a second test instruction; and the test method includes:

[0028] In response to a first test instruction, a first test is performed on the device under test, the first test comprising a first test step and a first loop step, the first test step comprising: outputting a first test voltage signal to the amplification module through a first test terminal, outputting a first reference voltage signal to the level conversion module through a second test terminal, the first test voltage signal is amplified by the amplification module to form a first test voltage and input to the voltage input terminal of the device under test, the reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test, receiving first working data returned by the communication interface of the device under test, judging the working state of the device under test under the first test voltage according to the first working data, and recording the first test voltage and the first working state; the first loop step comprises: adjusting the first test voltage signal to adjust the first test voltage in units of a preset voltage length, repeatedly executing the first test step on the adjusted first test voltage signal until the adjusted first test voltage exceeds a first preset voltage range; and / or

[0029] In response to a second test instruction, a second test is performed on the device under test, the second test includes a second test step and a second loop step, the second test step includes: outputting a second reference voltage signal to the amplification module through the first test terminal, outputting a second test voltage signal to the level conversion module through the second test terminal, the second test voltage signal is level-converted by the level conversion module to form a second test voltage and input to the communication interface of the device under test, the second reference voltage signal is amplified by the amplification module to form a second reference voltage and input to the voltage input terminal of the device under test, receiving second working data returned by the communication interface of the device under test, judging the working state of the device under test under the second test voltage according to the second working data, and recording the second test voltage and the second working state; the second loop step includes: adjusting the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeatedly executing the second test step on the second test voltage until the adjusted second test voltage exceeds the second preset voltage range.

[0030] Optionally, the second test end includes a first clock signal pin, a first data signal pin, a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, the level conversion module includes a first level conversion module and a second level conversion module, the first clock signal pin and the first data signal pin are respectively connected to two pins at the first end of the first level conversion module, and the second clock signal pin, the second data signal pin, the third data signal pin and the chip select signal pin are respectively connected to four pins at the first end of the second level conversion module; the testing method further includes:

[0031] In response to a second test instruction and first configuration information, a second test voltage signal is output to the first level conversion module through a first clock signal pin and a first data signal pin, or the second test voltage signal is output to the second level conversion module through a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, and the first configuration information indicates that the second test instruction is a serial communication interface test or a serial peripheral interface test.

[0032] The beneficial effects of the present disclosure are as follows:

[0033] In the test method and test device of the embodiment of the present disclosure, when the control module performs a test in response to a test instruction, different test voltages are output to the device under test in sequence, the working state of the device under test under different test voltages is acquired and recorded, and then the working voltage range of each key pin of the device under test (such as a voltage input terminal or a communication interface) can be determined according to the working state of the device under test under different test voltages. On the one hand, the test device of the embodiment of the present disclosure can realize automatic adjustment of the test voltage through the cooperation of the control module, the amplification module and the level conversion module, and automatically record and analyze the test results, thereby avoiding manual signal switching, voltage conversion, analysis and other operations, simplifying the test process, improving test efficiency and reducing labor costs; on the other hand, each key pin of different types of devices under test has a different working voltage range, and by setting a preset voltage range, it can be compatible with the testing of different types of devices under test. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The specific implementation methods of the present disclosure are further described in detail below with reference to the accompanying drawings.

[0035] Figure 1 A schematic diagram of the product structure and pin structure of the MEMS sensor provided in the embodiment of the present disclosure;

[0036] Figure 2 A structural block diagram of a test device provided in an embodiment of the present disclosure;

[0037] Figure 3 A functional block diagram of a microcontroller unit provided in an embodiment of the present disclosure;

[0038] Figure 4 A circuit diagram of a control module provided in an embodiment of the present disclosure;

[0039] Figure 5 A circuit diagram of an amplification module provided in an embodiment of the present disclosure;

[0040] Figure 6 A circuit diagram of a level conversion module provided in an embodiment of the present disclosure;

[0041] Figure 7 A circuit diagram of an interface conversion module provided in an embodiment of the present disclosure;

[0042] Figure 8 A circuit diagram of a power management module provided in an embodiment of the present disclosure;

[0043] Fig. 9 A circuit diagram of a device under test and a connector provided in an embodiment of the present disclosure;

[0044] Fig.10 A flow chart of a testing method provided for an embodiment of the present disclosure;

[0045] Fig.11 A flow chart of performing a first test for the test method provided in the embodiment of the present disclosure;

[0046] Fig.12 A flowchart of performing a second test on the test method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0048] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0049] In order to better understand the technical solutions of the test device and the test method disclosed in the present invention, the design concept of the present invention is first briefly introduced.

[0050] During the R&D phase of MEMS sensors, testing the voltage operating range of key pin signals is a key step in ensuring product performance and reliability. Different types of MEMS sensors generally have several identical and critical pins. During the R&D phase of the sensor, the voltage operating range of these pin signals needs to be tested and verified.

[0051] Please refer to Figure 1 , Figure 1 The product and pin structure diagram of the MEMS sensor provided in the embodiment of the present disclosure is as follows: Figure 1 As shown, MEMS sensors usually include:

[0052] (1) Two voltage pins, the two voltage pins are used for input voltage signals VDD and IOVDD respectively.

[0053] The voltage signal VDD is used to provide the operating voltage for the entire MEMS sensor. Generally, the voltage range of VDD is 1.2V to 5.0V. The supply voltages of different MEMS sensors are different, but usually within this voltage range. The voltage signal IOVDD is used to provide the operating voltage for the I / O interface of the MEMS sensor. Generally, the voltage value of IOVDD is less than or equal to the voltage value of VDD.

[0054] (2) Communication interface, wherein the communication interface may be an IIC (Inter-Integrated Circuit) communication interface or an SPI (Serial Peripheral Interface) communication interface. Exemplarily, the MEMS sensor includes an IIC communication interface and an SPI communication interface.

[0055] The IIC communication interface is a widely used synchronous serial communication interface and is also the most commonly used data communication interface for MEMS sensors. It consists of two main signal lines to realize data transmission between the master device and the slave device. These two signal lines are: (1) SDA (Serial Data Line). SDA is the data line on the IIC bus and is used to transmit data between the master device and the slave device. Data is transmitted in serial mode through the SDA line. The master device can send data to the slave device, or the slave device can send data to the master device. (2) SCL (Serial Clock Line). SCL is the clock line on the IIC bus and is used to synchronize data transmission between the master device and the slave device. The SCL line is controlled by the master device to generate a clock signal to control the rate and timing of data transmission.

[0056] The SPI communication interface is a full-duplex, synchronous serial peripheral interface that is widely used in microcontrollers, embedded systems, and digital integrated circuits. It is also a data communication interface that MEMS sensors are usually equipped with. It mainly includes four signal lines: (1) SCK (Serial Clock), SCK is the clock signal line provided by the master device and is used to synchronize data transmission between the master and slave devices; (2) MOSI (Master Out Slave In), MOSI is the master device output / slave device input data line used by the master device to send data to the slave device; (3) MISO (Master In Slave Out), MISO is the master device input / slave device output data line used by the slave device to send data to the master device; (4) CS (Chip Select), CS is the chip select signal line used by the master device to select which slave device to communicate with.

[0057] Figure 1 The MEMS sensor in the illustrated embodiment includes 8 pins, 2 of which are used to input VDD and IOVDD signals, 5 of which are used as communication interfaces (SCK and SCL share one pin), and 1 pin is used as a ground pin. In the development process of MEMS sensors, it is necessary to conduct actual measurement and verification of the operating voltage range and transmission performance of key pin signals (such as VDD, IOVDD, SCL, SDA, SCK, MOSI, MISO, and CS) to ensure that the actual values ​​are consistent with the theoretical design values. This testing process has important practical value for the research and development process of MEMS sensors, and can provide an important reference for improving the quality of MEMS sensor products and enhancing the extreme performance of products. It is of great significance to expand new customer applications and broaden the MEMS sensor carrying platform.

[0058] The existing MEMS sensor testing devices have the following problems:

[0059] (1) Poor versatility: Different types of MEMS sensors (such as pressure sensors, accelerometers, gyroscopes, etc.) have different pin distributions and signal characteristics, resulting in existing test devices often being limited to specific types of sensors.

[0060] (2) It consumes a lot of manpower and material resources and is time-consuming: During the verification process, manual operations such as signal switching and voltage conversion are required, which not only increases the workload but also easily introduces human errors. In addition, the data detected by the MEMS sensor usually needs to be manually entered into the analysis software for further analysis and processing. This process is time-consuming and prone to errors.

[0061] In summary, there is currently a lack of a universal, automated testing device on the market, which results in a cumbersome, inefficient, and costly testing process for different types of MEMS sensors.

[0062] In order to solve the above technical problems, the embodiments of the present disclosure provide a testing device and a testing method. The specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0063] Please refer to Figure 2 , Figure 2A structural block diagram of a test device provided in an embodiment of the present disclosure. The test device is used to test the voltage range of the key pin signal of the device under test, wherein the device under test includes a voltage input terminal and a communication interface, and the test device is used to test the operating voltage range of the voltage input terminal and the communication interface of the device under test. Exemplarily, the device under test is a sensor, such as a MEMS sensor, and the MEMS sensor can be a pressure sensor, an accelerometer, a temperature sensor, a gyroscope, etc. It can be understood that the device under test can also be other types of sensors or electronic devices, and is not limited to the types listed in the embodiments of the present disclosure.

[0064] like Figure 2 As shown, the test device 100 includes a control module 10, an amplifying module 20 and a level conversion module 30. Specifically, the control module 10 includes a first test terminal and a second test terminal, the amplifying module 20 includes an input terminal and an output terminal, the level conversion module 30 includes a first terminal and a second terminal, the first test terminal of the control module 10 is connected to the input terminal of the amplifying module 20, the output terminal of the amplifying module 20 is used to connect to the voltage input terminal of the device under test, the second test terminal of the control module 10 is connected to the first terminal of the level conversion module 30, and the second terminal of the level conversion module 30 is used to connect to the communication interface of the device under test.

[0065] Wherein, the control module 10 is configured to test the device under test in response to a test instruction, and the test includes a test step and a loop step, and the test step includes: outputting one of a test voltage signal and a reference voltage signal to the amplification module 20 through a first test terminal, and outputting the other of the test voltage signal and the reference voltage signal to the level conversion module 30 through a second test terminal, the test voltage signal is amplified by the amplification module 20 or level-converted by the level conversion module 30 to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module 20 or level-converted by the level conversion module 30 to form a reference voltage and input to the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the test voltage according to the working data, and recording the test voltage and working state; the loop step includes: keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeatedly executing the test step on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

[0066] The test device in the embodiment of the present disclosure needs to test the voltage input terminal of the device under test and the working voltage range of the communication interface respectively. When testing the working voltage range of the voltage input terminal, the control module 10 outputs the test voltage to the voltage input terminal via the amplification module 20, and provides the reference voltage to the communication interface via the level conversion module 30. At this time, the communication interface can return the working data of the device under test, and the control module 10 can determine the working state of the device under test under the test voltage according to the working data; similarly, when testing the working voltage range of the communication interface, the control module 10 provides the reference voltage to the voltage input terminal via the amplification module 20, and outputs the test voltage to the communication interface via the level conversion module 30. Then the communication interface can return the working data of the device under test, and the control module 10 can determine the working state of the device under test under the test voltage according to the working data.

[0067] Exemplarily, when the device under test is a temperature sensor, the working data returned by the device under test is the temperature value detected by the device under test. When testing, the device under test is set in a standard test environment (such as a constant temperature environment with a temperature value of T0), and then the test device tests the device under test. By comparing the working data (T1) returned by the device under test with the standard data (T0) under the standard test environment, the working state of the device under test under the test voltage can be determined. The working state can be expressed as normal or abnormal. If the working data T1 is equal to T0 or T1 is within the allowable error range, the working state of the test device is considered to be normal, otherwise it is abnormal.

[0068] Since the operating voltage range of the voltage input terminal of the device under test has a reference voltage range, such as [Vmin, Vmax], Vmin represents the theoretical minimum operating voltage of the voltage input terminal, and Vmax represents the theoretical maximum operating voltage of the voltage input terminal. During the development of the device under test, it is necessary to test / verify whether the actual operating voltage range of the voltage input terminal of the device under test is consistent with the reference voltage range, and the reference voltage range is the above-mentioned preset voltage range. When the operating voltage range of the device under test is tested in the embodiment of the present disclosure, the working state of the device under test under different voltages (i.e., test voltages) is tested in sequence according to a preset order, and then the actual operating voltage range of the device under test can be determined according to the voltage values ​​of each test voltage when the working state of the device under test is normal.

[0069] Exemplarily, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length is specifically as follows: during the test process, the initial test voltage is set to Vmin, and then the test voltage is gradually increased in units of a preset voltage length ΔV, and the working states of the device under test at different test voltages are obtained in turn until the test voltage value is greater than Vmax.

[0070] Exemplarily, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length is specifically as follows: during the test process, the initial test voltage is set to Vmax, and then the test voltage is gradually reduced in units of a preset voltage length ΔV, and the working states of the device under test at different test voltages are obtained in turn until the test voltage value is less than Vmin.

[0071] It is understandable that the device under test in the embodiment of the present disclosure may also be other sensors, such as a humidity sensor, a pressure sensor, etc., or the device under test may be a sensor integrating multiple functions, such as an integrated sensor having temperature detection and pressure detection functions. For different types of devices under test, the test principle is the same as that of the temperature sensor, and will not be described one by one.

[0072] Compared with the related art, the test device of the embodiment of the present disclosure includes a control module, an amplifying module and a level conversion module, wherein the first test end of the control module can be connected to the voltage input end of the device under test via the amplifying module, and the second test end of the control module can be connected to the communication interface of the device under test via the level conversion module. When the control module performs a test in response to a test instruction, it sequentially outputs different test voltages to the device under test, obtains and records the working state of the device under test under different test voltages, and then determines the working voltage range of each key pin (such as the voltage input end or the communication interface) of the device under test according to the working state of the device under test under different test voltages. On the one hand, the test device of the embodiment of the present disclosure can realize automatic adjustment of the test voltage through the cooperation of the control module, the amplifying module and the level conversion module, and automatically record and analyze the test results, thereby avoiding manual signal switching, voltage conversion, analysis and other operations, simplifying the test process, improving test efficiency and reducing labor costs; on the other hand, each key pin of different types of devices under test has a different working voltage range, and by setting a preset voltage range, it can be compatible with the testing of different types of devices under test.

[0073] In a possible implementation, the test instruction includes a first test instruction and / or a second test instruction, wherein the first test instruction is used to test the operating voltage range of the voltage input terminal of the device under test (represented as a first test), and the second test instruction is used to test the operating voltage range of the communication interface of the device under test (represented as a second test). Correspondingly, the control module 10 is configured to: perform a first test on the device under test in response to the first test instruction; and / or perform a second test on the device under test in response to the second test instruction.

[0074] Optionally, the first test includes a first test step and a first cycle step.

[0075] The first test step includes:

[0076] (11) outputting a first test voltage signal to the amplifying module 20 through the first test terminal, and outputting a first reference voltage signal to the level conversion module 30 through the second test terminal, wherein the first test voltage signal is amplified by the amplifying module 20 to form a first test voltage and is input to the voltage input terminal of the device under test, and the reference voltage signal is level-converted by the level conversion module 30 to form a first reference voltage and is input to the communication interface of the device under test;

[0077] (12) receiving first operating data returned by the communication interface of the device under test, determining an operating state of the device under test under the first test voltage according to the first operating data, and recording the first test voltage and the first operating state.

[0078] The first cycle steps include:

[0079] (13) Keep the first reference voltage signal unchanged, adjust the first test voltage signal to adjust the first test voltage in units of a preset voltage length, and repeat the first test steps (11) and (12) on the adjusted first test voltage signal until the adjusted first test voltage exceeds the first preset voltage range. In the first test process, the first reference voltage signal is used to provide a working voltage for the communication interface of the device under test so that the communication interface can work normally. Exemplarily, the first reference voltage is a standard voltage when the communication interface of the device under test works normally.

[0080] Optionally, the second test includes a second test step and a second cycle step.

[0081] The second test step includes:

[0082] (21) outputting a second reference voltage signal to the amplifying module 20 through the first test terminal, outputting a second test voltage signal to the level conversion module 30 through the second test terminal, the second test voltage signal being level-converted by the level conversion module 30 to form a second test voltage and inputting it to the communication interface of the device under test, the second reference voltage signal being amplified by the amplifying module 20 to form a second reference voltage and inputting it to the voltage input terminal of the device under test;

[0083] (22) receiving second operating data returned by the communication interface of the device under test, determining an operating state of the device under test under the second test voltage according to the second operating data, and recording the second test voltage and the second operating state.

[0084] The second cycle steps include:

[0085] (23) Keep the second reference voltage signal unchanged, adjust the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeat the second test steps (21) and (22) on the second test voltage until the adjusted second test voltage exceeds the second preset voltage range. In the second test process, the second reference voltage signal is used to provide an operating voltage for the voltage input terminal of the device under test. Exemplarily, the second reference voltage is a standard voltage of the voltage input terminal when the device under test is working normally.

[0086] In one possible implementation, Figure 2 As shown, the testing device further includes an interface conversion module 40 and a power management module 50 .

[0087] The interface conversion module 40 is used to convert the USB interface connection of an external terminal (such as a computer) into a serial communication interface. The serial communication interface here is, for example, an RS-232, RS-485 or TTL-level serial port. In the embodiment of the present disclosure, through the interface conversion module 40, it can be achieved that: the external terminal can communicate with the control module 10 through the USB port, such as: the communication between the computer and the control module 10 is achieved through the interface conversion module 40, so that the tester can configure the test device on the computer.

[0088] The power management module 50 is used to stabilize the external power supply and output a first power supply VCC. The first power supply VCC is used to provide working voltage for circuits such as the control module 10, the interface conversion module 40, the amplification module 20, and the level conversion module 30. Specifically, the power management module 50 includes an input end and an output end. The input end is used to connect to the external power supply, and the output end is used to connect to the power input end of the control module.

[0089] Please refer to Figure 3 , Figure 3 A circuit structure diagram of a control module provided in an embodiment of the present disclosure, such as Figure 3 As shown, the control module 10 includes a microcontroller unit (MCU) U11. For example, the microcontroller unit U11 uses an STM32F103 series chip. The functional block diagram of the STM32F103 series chip is as follows: Figure 4 As shown by Figure 4It can be seen that the STM32F103 series chips are rich in resources, with a core operating frequency of up to 72MHz, built-in high-speed memory (up to 128KB of flash and 20KB of SRAM), rich I / O ports and a large number of peripherals connected to the two internal APB buses, as well as 2 12-bit analog to digital converters (ADC), 2 general-purpose 16-bit timers, 2 integrated circuit buses (Inter-IC Control, IIC), 2 serial peripheral interfaces (SPI), 3 universal synchronous asynchronous receivers / transmitters (USART / UART), 1 universal serial bus (USB), 1 controller area network (CAN), etc.

[0090] Specifically, Figure 3 As shown, the microcontroller unit U11 includes multiple power input pins, multiple I / O interfaces, some of which are used as the first test end (including the first voltage output pin VDD1, the second voltage output pin IOVDD1) of the control module 10, the second test end (including the first clock signal pin IIC_SCL-1, the first data signal pin IIC_SDA-1, the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1 and the chip select signal pin SPI_CS-1), some interfaces are used as the control end (including the first control end RESET, the second control end BOOT0) of the control module 10, and some interfaces are used as serial data transmission pins (RXD-1, TXD-1). Based on the powerful functions of the STM32F103 series chips, the microcontroller unit U11 can switch to output different voltages (corresponding to the test voltage signal or the reference voltage signal) through the second test end. In addition, the control module 10 also includes a resistor R11, capacitors C11, C12, C13, C14, C15, C16, C17, C18, C19 and a crystal oscillator Y11, and the specific connection relationship thereof can be referred to Figure 3 .

[0091] In one possible implementation, Figure 1 and Figure 5 As shown, Figure 5The circuit diagram of the amplifier module provided in the embodiment of the present disclosure, the voltage input end of the device under test includes a first voltage input pin VDD and a second voltage input pin IOVDD, the amplifier module 20 includes a first amplifier circuit 201 and a second amplifier circuit 202, and the first test end includes a first voltage output pin VDD1 and a second voltage output pin IOVDD1. Specifically, the first voltage output pin VDD1 is connected to the input end of the first amplifier circuit 201, the output end of the first amplifier circuit 201 is connected to the first voltage input pin VDD of the device under test, the second voltage output pin IOVDD1 is connected to the input end of the second amplifier circuit 202, and the output end of the second amplifier circuit 202 is connected to the second voltage input pin IOVDD of the device under test. Among them, the circuit structures of the first amplifier circuit 201 and the second amplifier circuit 202 are the same, the parameters of each component in the circuit can be the same or different, and the amplification factors of the first amplifier circuit 201 and the second amplifier circuit 202 can be changed by selecting different component parameters. The amplification factors of the first amplifier circuit 201 and the second amplifier circuit 202 may be the same or different. For example, the amplification factors of the first amplifier circuit 201 and the second amplifier circuit 202 are the same, and the amplification factor is 2.

[0092] For example, Figure 5 As shown, the first amplifier circuit 201 includes an operational amplifier OP21, a first resistor R21, a second resistor R22, a third resistor R23 and a first capacitor C21. The first input terminal (non-inverting input pin IN+) of the operational amplifier OP21 is connected to the first terminal of the first resistor R21, and the second terminal of the first resistor R21 is connected to the first voltage output pin VDD1; the second input terminal (inverting input pin IN-) of the operational amplifier OP21 is connected to the first terminal of the second resistor R22 and the first terminal of the third resistor R23, the second terminal of the second resistor R22 is grounded, and the second terminal of the third resistor R23 is connected to the output terminal (VOUT) of the operational amplifier OP21; the first power supply pin (positive power supply pin V+) of the operational amplifier OP21 is connected to the first power supply VCC and the first terminal of the first capacitor C21, and the second terminal of the first capacitor C21 is grounded; the second power supply pin (negative power supply pin V-) of the operational amplifier OP21 is grounded; and the output terminal (VOUT) of the operational amplifier OP21 is connected to the first voltage input pin VDD of the device under test.

[0093] In the embodiment of the present disclosure, the second amplifier circuit 202 has the same circuit structure as the first amplifier circuit 201. Specifically, Figure 5As shown, the second amplifier circuit 202 includes an operational amplifier OP22, a fourth resistor R24, a fifth resistor R25, a sixth resistor R26 and a second capacitor C22. Among them, the first input terminal (non-inverting input pin IN+) of the operational amplifier OP22 is connected to the first end of the fourth resistor R24, and the second end of the fourth resistor R24 ​​is connected to the second voltage output pin IOVDD1; the second input terminal (inverting input pin IN-) of the operational amplifier OP22 is connected to the first end of the fifth resistor R25 and the first end of the sixth resistor R26, the second end of the fifth resistor R25 is grounded, and the second end of the sixth resistor R26 is connected to the output terminal (VOUT) of the operational amplifier OP22; the first power supply pin (positive power supply pin V+) of the operational amplifier OP22 is connected to the first power supply VCC and the first end of the second capacitor C22, and the second end of the second capacitor C22 is grounded; the second power supply pin (negative power supply pin V-) of the operational amplifier OP22 is grounded; the output terminal (VOUT) of the operational amplifier OP22 is connected to the second voltage input pin IOVDD of the device under test.

[0094] Exemplarily, the model of the operational amplifiers OP21 and OP22 is OPA354AIDBVR. The input stage of the amplifier is a differential amplifier circuit with high input resistance and zero drift suppression capability; the intermediate stage mainly performs voltage amplification with a high voltage amplification factor and is generally composed of a common emitter amplifier circuit; the output signal can be the result of mathematical operations such as addition, subtraction, differentiation, and integration of the input signal. The output pole of the operational amplifier is connected to the load and has the characteristics of strong load capacity and low output resistance.

[0095] Correspondingly, the first test voltage signal includes a third test voltage signal and a fourth test voltage signal, wherein the third test voltage signal is used to test the operating voltage range of the first voltage input pin VDD, and the fourth test voltage signal is used to test the operating voltage range of the second voltage input pin IOVDD.

[0096] At this time, the first test step includes: in response to the first test instruction, outputting a third test voltage signal to the first amplifier circuit 201 through the first voltage output pin VDD1, and outputting a fourth test voltage signal to the second amplifier circuit 202 through the second voltage output pin IOVDD1, the third test voltage signal is amplified by the first amplifier circuit 201 to form a third test voltage and input to the first voltage input pin VDD of the device under test, the fourth test voltage signal is amplified by the second amplifier circuit 202 to form a fourth test voltage and input to the second voltage input pin IOVDD of the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the third test voltage and the fourth test voltage according to the working data, and recording the third test voltage, the fourth test voltage and the working state.

[0097] The first cycle step includes: adjusting the third test voltage signal to adjust the third test voltage in units of a preset voltage length, repeating the first test step on the adjusted third test voltage signal until the adjusted third test voltage exceeds a third preset voltage range, and for any third test voltage, adjusting the fourth test voltage signal to adjust the fourth test voltage in units of a preset voltage length, repeating the first test step on the adjusted fourth test voltage signal until the adjusted fourth test voltage exceeds a fourth preset voltage range.

[0098] Among them, the third test voltage input by the first voltage input pin VDD is used to provide an operating voltage for the entire device under test, and its operating voltage range is generally 1.2V to 5.0V; the fourth test voltage input by the second voltage input pin IOVDD is used to provide an operating voltage for the I / O port of the device under test, and its operating voltage range is generally less than or equal to the voltage value of the third test voltage. Exemplarily, the third preset voltage range is [1.2V, 5.0V], and the fourth preset voltage range is [1.2V, 5.0V]. It can be understood that the third preset voltage range and the fourth preset voltage range can also be other voltage values, and the corresponding preset voltage range can be set according to the specific type of the device under test.

[0099] In one possible implementation, Figure 1 and Figure 6 As shown, Figure 6 The circuit diagram of the level conversion module 30 provided in the embodiment of the present disclosure, the communication interface of the device to be tested is a serial communication interface or a serial peripheral interface, in order to be compatible with the testing of sensors with different communication interfaces, the level conversion module 30 in the embodiment of the present disclosure includes a first level conversion module 301 and a second level conversion module 302, and the second test end includes a first clock signal pin IIC_SCL-1, a first data signal pin IIC_SDA-1, a second clock signal pin SPI_SCK-1, a second data signal pin SPI_MISO-1, a third data signal pin SPI_MOSI-1 and a chip select signal pin SPI_CS-1. Among them, the first clock signal pin IIC_SCL-1, the first data signal pin IIC_SDA-1, and the first level conversion module 301 are used to implement the test of the serial communication interface; the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1, the chip select signal pin SPI_CS-1, and the second level conversion module 302 are used to implement the test of the serial peripheral interface.

[0100] Optional, such as Figure 6As shown, the first level conversion module 301 includes a dual-way bidirectional multi-voltage level converter U31, the first end and the second end of the dual-way bidirectional multi-voltage level converter U31 respectively include two pins, the first clock signal pin IIC_SCL-1 and the first data signal pin IIC_SDA-1 are respectively connected to the two pins (B1 and B2) at the first end of the dual-way bidirectional multi-voltage level converter U1, and the two pins (A1 and A2) at the second end of the dual-way bidirectional multi-voltage level converter U1 are used to connect to the serial communication interface (IIC_SCL and IIC_SDA) of the device under test. Exemplarily, the model of the dual-way bidirectional multi-voltage level converter U1 is LSF0102DCTR. In addition, the first level conversion module 301 also includes resistors R31, R32, R33, R34, R35 and a capacitor C31, wherein the first power pin (Vref B) of the dual-way bidirectional multi-voltage level converter U31 and the two pins B1 and B2 at the first end are respectively connected to the first power supply VCC through the resistors R33, R34, and R35, the second power pin (Vref A) of the dual-way bidirectional multi-voltage level converter U31 is connected to the second voltage input pin IOVDD, the two pins A1 and A2 at the second end are respectively connected to the second voltage input pin IOVDD through the resistors R31 and R32, and the first power pin (Vref B) and the enable pin (EN) of the dual-way bidirectional multi-voltage level converter U31 are connected to the first end of the capacitor C31, and the second end of the capacitor C31 is grounded.

[0101] Optional, such as Figure 6As shown, the second level conversion module 302 includes a four-way bidirectional multi-voltage level converter U32, the first end and the second end of the four-way bidirectional multi-voltage level converter U32 respectively include four pins, the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1 and the chip selection signal pin SPI_CS-1 are respectively connected to the four pins (B1, B2, B3 and B4) at the first end of the four-way bidirectional multi-voltage level converter U32, and the four pins (A1, A2, A3 and A4) at the second end of the four-way bidirectional multi-voltage level converter U32 are used to connect to the serial peripheral interface (SPI_SCL, SPI_MISO, SPI_MOSI and SPI_CS) of the device under test. Exemplarily, the model of the four-way bidirectional multi-voltage level converter U32 is LSF0204PWR. In addition, the second level conversion module 302 also includes a capacitor C32 and a capacitor C33. The first power pin (VREF B) of the four-way bidirectional multi-voltage level converter U32 is connected to the first power supply VCC and the first end of the capacitor C33, and the second end of the capacitor C33 is grounded; the second power pin (VREF A) of the four-way bidirectional multi-voltage level converter U32 is connected to the second voltage input pin IOVDD and the first end of the capacitor C32, and the second end of the capacitor C32 is grounded.

[0102] In the hardware circuit, different chip pins use different voltages, such as the common 1.8V, 3.3V, 5V, etc. When different voltage chips (such as the microcontroller unit U11 and the device under test) communicate, due to the mismatch of the level, the voltage difference between the two ends is too large, which can easily lead to damage to the chip pins. In the embodiment of the present disclosure, on the one hand, through the first level conversion module 301 and the second level conversion module 302, the voltage output by the second test terminal of the microcontroller unit U11 can be converted into an operating voltage that matches the communication interface of the device under test, so as to achieve normal data communication. On the other hand, the first level conversion module 301 and the second level conversion module 302 use a bidirectional multi-voltage level converter, which has the following advantages:

[0103] (1) Support for multiple voltages: The bidirectional multi-voltage level converter can support conversion between multiple voltage nodes, such as 1.8V, 2.5V, 3.3V and 5V, etc., so that devices of different voltage levels can communicate with each other conveniently, and the compatibility of the system is improved. When applied to the test device of the embodiment of the present disclosure, on the one hand, the voltage conversion between the first test terminal of the control module 10 and the voltage input terminal of the device under test can be realized. By automatically switching multiple test voltages, the manual switching process can be reduced, and the automatic test of the working voltage range can be realized; on the other hand, by supporting the conversion of multiple voltage nodes, the test device can also be compatible with the test of different types of devices under test with different working voltage ranges.

[0104] (2) Bidirectional conversion capability: Bidirectional signal transmission and level conversion can be achieved through a bidirectional multi-voltage level converter. On the one hand, it can reduce the number of other components required in the system, such as unidirectional level converters, pull-up resistors, etc., thereby simplifying system design and reducing costs. On the other hand, due to the reduction in the number of components, the circuit board space required by the system will also be reduced accordingly, which helps to save space and realize the miniaturization of the test equipment.

[0105] Correspondingly, the control module 10 is also configured to: output a second test voltage signal to the first level conversion module 301 or the second level conversion module 302 through the second test terminal in response to a second test instruction and first configuration information, wherein the first configuration information indicates that the second test instruction corresponds to a serial communication interface test or a serial peripheral interface test.

[0106] Specifically, when the first configuration information indicates that the second test instruction is a serial communication interface test (i.e., an IIC interface test), the control module 10 outputs a second test voltage signal to the device under test through the first clock signal pin IIC_SCL-1 and the first data signal pin IIC_SDA-1; when the first configuration information indicates that the second test instruction is a serial peripheral interface test (i.e., an SPI interface test), the control module 10 outputs a second test voltage signal to the device under test through the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1, and the chip select signal pin SPI_CS-1.

[0107] The first configuration information is set by a tester, and the tester sets the first configuration information according to the type of the current communication interface of the device under test. Exemplarily, the tester can set the first configuration information on a computer, and the computer is connected to the control module 10 of the test device through a USB bus and an interface conversion module 40, thereby realizing the configuration of the test device.

[0108] like Figure 7 As shown, the interface conversion module 40 includes a USB-to-serial port chip U41 , a first end of which is connected to a USB interface of an external terminal, and a second end of which is connected to the control module 10 .

[0109] Optionally, the USB to serial port chip U41 is CH340. Exemplarily, the first pin (UD+) and the second pin (UD-) of the USB to serial port chip U41 are used to connect to the D+ data line and the D- data line of the external terminal USB bus respectively; the third pin (GND) of the USB to serial port chip U41 is grounded and used to connect to the ground line of the USB bus; the fourth pin (RTS#) of the USB to serial port chip U41 is connected to the first control pin (RESET) of the control module 10 to realize the input of the external reset signal; the fifth pin of the USB to serial port chip U41 is suspended; the sixth pin (TNOW / DTR#) of the USB to serial port chip U41 is connected to the control module 10. The second control pin (BOOT0) of the USB-to-serial port chip U41 is connected; the seventh pin (VCC) of the USB-to-serial port chip U41 is connected to the first power supply VCC, and the seventh pin is also externally connected to power decoupling capacitors C43 and C44; the eighth pin (serial data output pin TXD) and the ninth pin (serial data input pin RXD) of the USB-to-serial port chip U41 are respectively connected to the serial data output pin (TXD-1) and the serial data input pin (RXD-1) of the control module 10; the tenth pin (V3) of the USB-to-serial port chip U41 is connected to the first power supply VCC, and the tenth pin is also externally connected to power decoupling capacitors C41 and C42. The above-mentioned first pin (UD+) and the second pin (UD-) constitute the first end of the USB-to-serial port chip U41, and the above-mentioned eighth pin (TXD) and the ninth pin (RXD) constitute the second end of the USB-to-serial port chip U41.

[0110] In one possible approach, Figure 1 and Figure 8 As shown, Figure 8 This is a circuit diagram of a power management module provided in an embodiment of the present disclosure. The power management module 50 includes a power interface circuit 501 and a low voltage difference linear voltage regulator circuit 502 .

[0111] Exemplarily, the power interface circuit 501 is a USB Type-C interface circuit, which includes a power socket U51, electrostatic diodes D51, D52, D53, resistors R51 and R52, the power socket U51 includes a first input pin (USB D-), a second input pin (USB D+), a first channel configuration pin (CC1), a second channel configuration pin (CC2), a first output pin (VBUS1) and a second output pin (VBUS2), the first input pin and the second input pin of the power socket U51 are respectively connected to the first pole (USB_D-) and the second pole (USB_D+) of the external power supply, the first output pin and the second output pin of the power socket U51 are connected to the input end (VBUS) of the low voltage difference linear voltage regulator circuit 502, the first input pin, the second input pin, the first channel configuration pin, the second channel configuration pin, the first output pin and the second output pin of the power socket U51 are respectively grounded via electrostatic diodes, the first channel configuration pin is connected to the resistor R52 and then grounded, and the second channel configuration pin is connected to the resistor R51 and then grounded. Exemplarily, the power socket U51 is a USB Type-C socket, and the model of the electrostatic diodes D51, D52, and D53 is GSOT05C.

[0112] Optionally, the low voltage difference linear voltage regulator circuit 502 includes a low voltage difference linear regulator (Low Dropout Linera Regulator, LDO for short) U52, a resistor R53, a resistor R54, a capacitor C51 and a capacitor C52, the input end (INPUT) of the low voltage difference linear regulator U52 is respectively connected to the first end of the resistor R53 and the capacitor C51, the second end of the resistor R53 is connected to the first output pin and the second output pin of the power socket U51, the second end of the capacitor C51 is grounded, the output end (OUT2) of the low voltage difference linear regulator U52 is respectively connected to the first end of the resistor R54 and the capacitor C52, the second end of the resistor R54 outputs the first power supply VCC, and the second end of the capacitor C52 is grounded. Among them, the first power supply VCC is used to provide working voltage for other circuits, such as the second end of the resistor R54 is connected to the power input terminal (VBAT, VDDA, VDD1, VDD2, VDD3, VDD4) of the micro control unit U11, and the first power supply VCC is used to provide working voltage for the micro control unit U11. Exemplarily, the voltage value of the first power supply VCC is 3.3V. Exemplarily, the model of the low voltage drop linear regulator U52 is TLV1117LV33DCYR. ​​The low voltage drop linear regulator is a micro-chip system with very low self-consumption. It uses a voltage-controlled current source to force a fixed voltage to be generated at the output end of the regulator, and then the control circuit continuously monitors the output voltage and adjusts the current source according to the load requirements to keep the output voltage at the desired value. LDO usually has extremely low self-noise and high power supply rejection ratio, and can be used as a precision voltage reference source; at the same time, LDO has functions such as overcurrent protection, over-temperature protection, differential amplification, and circuit signal delay. The embodiment of the present disclosure outputs a stable first power supply VCC through a low voltage drop linear regulator.

[0113] In one possible implementation, see Fig. 9 , Fig. 9 A circuit diagram of a device under test and a connector provided in an embodiment of the present disclosure, Fig. 9 U60 represents the device under test, which is connected to the test device through a connector, wherein the connector includes a male socket (such as Fig. 9 U61 in the figure) and the female seat (as shown in Fig. 9 In addition, the ground pin of the device under test is grounded, and the first voltage input pin VDD is connected to the first end of the capacitor C61, and the second end of the capacitor C61 is grounded.

[0114] Based on the same inventive concept, the second aspect of the present disclosure provides a test method, which is applicable to the test device shown above. Exemplarily, the test device includes a control module, an amplification module and a level conversion module, the control module includes a first test terminal and a second test terminal, the amplification module includes an input terminal and an output terminal, the level conversion module includes a first terminal and a second terminal, the first test terminal of the control module is connected to the input terminal of the amplification module, the output terminal of the amplification module is used to connect to the voltage input terminal of the device under test, the second test terminal of the control module is connected to the first terminal of the level conversion module, and the second terminal of the level conversion module is used to connect to the communication interface of the device under test.

[0115] Please refer to Fig.10 , Fig.10 A flow chart of a testing method provided in an embodiment of the present disclosure, the testing method is used to test a device under test in response to a test instruction, wherein the test includes:

[0116] Step A, outputting one of the test voltage signal and the reference voltage signal to the amplification module through the first test terminal, and outputting the other of the test voltage signal and the reference voltage signal to the level conversion module through the second test terminal, the test voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a reference voltage and input to the device under test.

[0117] Step B, receiving the working data returned by the communication interface of the device under test, determining the working state of the device under test under the test voltage according to the working data, and recording the test voltage and the working state.

[0118] Step C, keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeating steps A and B on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

[0119] Compared with the related art, the test method of the embodiment of the present invention, when performing a test in response to a test instruction, outputs different test voltages to the device under test in sequence, obtains and records the working status of the device under test at different test voltages, and then determines the working voltage range of each key pin of the device under test (such as a voltage input terminal or a communication interface) according to the working status of the device under test at different test voltages. On the one hand, the test voltage can be automatically adjusted by adjusting the test voltage signal, and the test results can be automatically recorded and analyzed, avoiding manual signal switching, voltage conversion, analysis and other operations, simplifying the test process, improving test efficiency, and reducing labor costs; on the other hand, each key pin of different types of devices under test has a different working voltage range, and by setting a preset voltage range, it can be compatible with the testing of different types of devices under test.

[0120] In a possible implementation, the test instruction includes a first test instruction and / or a second test instruction. The first test instruction is used to test the operating voltage range of the voltage input terminal of the device under test (represented as a first test), and the second test instruction is used to test the operating voltage range of the communication interface of the device under test (represented as a second test). Correspondingly, the test method includes: performing a first test on the device under test in response to the first test instruction; and / or performing a second test on the device under test in response to the second test instruction.

[0121] Optionally, the first test includes a first test step and a first loop step, the first test step including: outputting a first test voltage signal to an amplifying module through a first test terminal, outputting a first reference voltage signal to a level conversion module through a second test terminal, the first test voltage signal is amplified by the amplifying module to form a first test voltage and input to the voltage input terminal of the device under test, the reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test, receiving first working data returned by the communication interface of the device under test, judging the working state of the device under test under the first test voltage according to the first working data, and recording the first test voltage and the first working state; the first loop step includes: adjusting the first test voltage signal to adjust the first test voltage in units of a preset voltage length, repeating the first test step on the adjusted first test voltage signal until the adjusted first test voltage exceeds the first preset voltage range.

[0122] Optionally, the second test includes a second test step and a second loop step, the second test step including: outputting a second reference voltage signal to the amplification module through the first test end, outputting a second test voltage signal to the level conversion module through the second test end, the second test voltage signal is level-converted by the level conversion module to form a second test voltage and input to the communication interface of the device under test, the second reference voltage signal is amplified by the amplification module to form a second reference voltage and input to the voltage input end of the device under test, receiving second working data returned by the communication interface of the device under test, judging the working state of the device under test under the second test voltage according to the second working data, and recording the second test voltage and the second working state; the second loop step includes: adjusting the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeating the second test step on the second test voltage until the adjusted second test voltage exceeds the second preset voltage range.

[0123] In a possible implementation, the voltage input terminal of the device under test includes a first voltage input pin VDD and a second voltage input pin IOVDD, the amplification module 20 includes a first amplification circuit and a second amplification circuit, and the first test terminal includes a first voltage output pin VDD1 and a second voltage output pin IOVDD1. At this time, the first test voltage signal includes a third test voltage signal and a fourth test voltage signal, and the first test step is as follows: Fig.11 As shown, the following steps are included:

[0124] Step S201 , receiving user setting information, where the setting information includes a minimum test voltage VDD_min and a maximum test voltage VDD_max.

[0125] Exemplarily, the third preset voltage range is the same as the fourth preset voltage range and is limited by the minimum test voltage VDD_min and the maximum test voltage VDD_max. It is understandable that the third preset voltage range and the fourth preset voltage range may also be different, in which case the setting information includes the minimum test voltage and the maximum test voltage that define the third preset voltage range, and the minimum test voltage and the maximum test voltage that define the fourth preset voltage range.

[0126] Exemplarily, an external computer is connected to the test device, specifically, the computer is connected to the control module via an interface conversion module, and a tester can set the test device on the computer, such as setting a minimum test voltage VDD_min and a maximum test voltage VDD_max on the computer.

[0127] Step S202 , in response to the first test instruction, setting the third test voltage V3 =VDD_min.

[0128] Step S203, outputting a third test voltage V3 to the first voltage input pin VDD of the device under test.

[0129] In specific implementation, the control module outputs the third test voltage signal to the first amplifier circuit through the first voltage output pin VDD1, and the third test voltage signal is amplified by the first amplifier circuit to form a third test voltage V3, and the third test voltage V3 is input to the device under test. Exemplarily, the third test voltage signal and the third test voltage V3 satisfy V30*K=V3, V30 represents the voltage value of the third test voltage signal, K represents the amplification factor of the first amplifier circuit, and since the control module knows K, the control module can adjust the third test voltage V3 by adjusting the output third test voltage signal.

[0130] Step S204, setting the fourth test voltage V4=VDD_min.

[0131] Step S205 , outputting a fourth test voltage V4 to the second voltage input pin IOVDD of the device under test.

[0132] In specific implementation, the control module outputs the fourth test voltage signal to the second amplifier circuit through the second voltage output pin IOVDD1, and the fourth test voltage signal is amplified by the second amplifier circuit to form a fourth test voltage V4, which is input to the device under test. Similarly, the control module can adjust the fourth test voltage V4 by adjusting the output fourth test voltage signal.

[0133] Step S206, receiving the working data returned by the device under test, determining the working state of the device under test under the third test voltage and the fourth test voltage according to the working data, and recording the third test voltage, the fourth test voltage and the working state.

[0134] Step S207 , adjusting the fourth test voltage signal to increase the fourth test voltage by a preset voltage length, and the increased fourth test voltage is expressed as V4+ΔV, wherein ΔV represents the preset voltage length.

[0135] Step S208, determining whether the increased fourth test voltage is less than or equal to the maximum test voltage VDD_max, if the determination result is yes, executing step S205, if the determination result is no, executing step S209.

[0136] Step S209, determining whether the current third test voltage V3 is greater than the maximum test voltage VDD_max, if the determination result is yes, ending the first test, if the determination result is no, executing step S210.

[0137] Step S210, adjusting the third test voltage signal to increase the third test voltage by a preset voltage length, and the increased third test voltage is expressed as V3+ΔV, wherein ΔV represents the preset voltage length.

[0138] Step S211, determining whether the increased third test voltage is less than or equal to the maximum test voltage VDD_max, if the determination result is yes, executing step S203, if the determination result is no, ending the first test.

[0139] It should be noted that the above steps S201 to S211 only describe the implementation process of outputting the first test voltage signal (including the third test voltage signal and the fourth test voltage signal) through the first test terminal according to the first test instruction. In the actual test method, after the control module receives the first test instruction, it will also output the first reference voltage signal to the level conversion module through the second test terminal. The first reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test. The first reference voltage here refers to the standard voltage when the communication interface of the device under test is working normally.

[0140] In a possible implementation, the level conversion module 30 includes a first level conversion module 301 and a second level conversion module 302, and the second test end includes a first clock signal pin IIC_SCL-1, a first data signal pin IIC_SDA-1, a second clock signal pin SPI_SCK-1, a second data signal pin SPI_MISO-1, a third data signal pin SPI_MOSI-1, and a chip select signal pin SPI_CS-1. Among them, the first clock signal pin IIC_SCL-1, the first data signal pin IIC_SDA-1, and the first level conversion module 301 are used to implement the test of the serial communication interface; the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1, the chip select signal pin SPI_CS-1, and the second level conversion module 302 are used to implement the test of the serial peripheral interface.

[0141] At this time, the second test step is as follows Fig.12 As shown, the following steps are included:

[0142] Step S301 , in response to a second test instruction, obtaining first configuration information and a second preset voltage range, wherein the second preset voltage range is defined by a maximum test voltage and a minimum test voltage.

[0143] The external computer is connected to the test device, specifically, the computer is connected to the control module through the interface conversion module, and the tester can set the first configuration information on the computer, such as setting the first configuration information to a serial communication interface test or a serial peripheral interface test on the computer. Similarly, the tester can set the second preset voltage range on the computer.

[0144] For example, for serial communication interface testing, the minimum test voltage of the serial communication interface is recorded as V IIC_ low, the maximum test voltage is recorded as V IIC _high, correspondingly, the second preset voltage range is expressed as [V IIC_ low,V IIC _high]; for serial peripheral interface test, the minimum test voltage of the serial peripheral interface is recorded as V SPI_ low, the maximum test voltage is recorded as V SPI _high, the second preset voltage range is expressed as [V SPI_ low,V SPI _high].

[0145] Step S302, judging whether the second test instruction is a serial communication interface test or a serial peripheral interface test according to the first configuration information, if it is a serial communication interface test, executing step S303, if it is a serial peripheral interface test, executing step S307.

[0146] Step S303, set V SCL =V IIC_ low、V SDA =V IIC_ low.

[0147] Among them, V SCL Represents the input voltage of the clock line pin in the IIC communication interface of the device under test, recorded as the fifth test voltage, V SDA Represents the input voltage of the data line pin in the IIC communication interface of the device under test, recorded as the sixth test voltage. Correspondingly, the second test voltage includes the fifth test voltage and the sixth test voltage.

[0148] Step S304, determine V SCL or V SDA Is it less than or equal to V IIC _high, if the judgment result is yes, execute step S305, otherwise, end the process.

[0149] Step S305: outputting a fifth test voltage V through the first clock signal pin IIC_SCL-1. SCLTo the clock line pin of the IIC communication interface of the device under test, output the sixth test voltage V through the first data signal pin IIC_SDA-1 SDA To the data line pin of the IIC communication interface of the device under test.

[0150] In specific implementation, the control module outputs the fifth test voltage signal and the sixth test voltage signal to the first level conversion circuit through the first clock signal pin IIC_SCL-1 and the first data signal pin IIC_SDA-1 respectively. The fifth test voltage signal is converted by the first level conversion circuit to form a fifth test voltage, which is input to the clock line pin of the IIC communication interface of the device under test. The sixth test voltage signal is converted by the first level conversion circuit to form a sixth test voltage, which is input to the data line pin of the IIC communication interface of the device under test. The control module can adjust the fifth test voltage and the sixth test voltage by adjusting the output fifth test voltage signal and the sixth test voltage signal.

[0151] Step S306, receiving the second working data returned by the communication interface of the device under test, and determining the device under test at V SCL and V SDA Under the working state, and record V SCL 、V SDA and the second working state;

[0152] Step S306, adjusting the fifth test voltage signal and the sixth test voltage signal to increase V by a preset voltage length unit SCL and V SDA , the increased V SCL Represented as V SCL +ΔV, increased V SDA Represented as V SDA +ΔV, return to step S304, and determine the increased V in step S304 SCL or V SDA Is it less than or equal to V IIC _high; wherein ΔV represents a preset voltage length, and illustratively, ΔV is 0.1V.

[0153] Step S308, set V sck =V SPI_ low、V MISO =V SPI_ low、V MOSI =V SPI_ low, Vcs = V SPI_ low.

[0154] Among them, V sckRepresents the input voltage of the clock signal pin of the SPI communication interface of the device under test, recorded as the seventh test voltage; V MISO Represents the input voltage of the second pin of the SPI communication interface of the device under test, recorded as the eighth test voltage; V MOSI Vcs represents the input voltage of the third data pin of the SPI communication interface of the device under test, which is recorded as the ninth test voltage; Vcs represents the input voltage of the chip select signal pin of the SPI communication interface of the device under test, which is recorded as the tenth test voltage; correspondingly, the second test voltage at this time includes Vcs, V MOSI 、V MISO 、V sck .

[0155] Step S309, determine V sck 、V MISO 、V MOSI Or whether Vcs is less than or equal to V SPI _high, if the judgment result is yes, execute step S310, otherwise end the process.

[0156] Step S310: output V through the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1 and the chip select signal pin SPI_CS-1 respectively. sck 、V MISO 、V MOSI , Vcs to the clock signal pin, the second data signal pin, the third data signal pin and the chip select signal pin of the SPI communication interface of the device under test.

[0157] In specific implementation, the control module outputs the seventh test voltage signal, the eighth test voltage signal, the ninth test voltage signal, and the tenth test voltage signal to the four pins of the first end of the second level conversion circuit through the second clock signal pin SPI_SCK-1, the second data signal pin SPI_MISO-1, the third data signal pin SPI_MOSI-1, and the chip select signal pin SPI_CS-1 respectively; the seventh test voltage signal is converted by the second level conversion circuit to form a seventh test voltage, and the seventh test voltage is input to the clock signal pin of the SPI communication interface of the device under test; the eighth test voltage signal is converted by the second level conversion circuit to form an eighth test voltage, and the eighth test voltage is input to the second data signal pin of the SPI communication interface of the device under test; the ninth test voltage signal is converted by the second level conversion circuit to form a ninth test voltage, and the ninth test voltage is input to the third data signal pin of the SPI communication interface of the device under test; the tenth test voltage signal is converted by the second level conversion circuit to form a tenth test voltage, and the tenth test voltage is input to the chip select signal pin of the SPI communication interface of the device under test. The control module can adjust the V input to the device under test by adjusting the output seventh test voltage signal, the eighth test voltage signal, the ninth test voltage signal, and the tenth test voltage signal. sck 、V MISO 、V MOSI and Vcs.

[0158] Step S311, receiving second working data returned by the communication interface of the device under test, and determining the device under test at V sck 、V MISO 、V MOSI And the working status under Vcs, and record V sck 、V MISO 、V MOSI And Vcs and second working state;

[0159] Step S312: The seventh test voltage signal, the eighth test voltage signal, the ninth test voltage signal, and the tenth test voltage signal are increased by a preset voltage length. sck 、V MISO 、V MOSI And Vcs, the increased V sck Represented as V sck +ΔV, increased V MISO Represented as V MISO +ΔV, increased V MOSI Represented as V MOSI +ΔV, the increased Vcs is expressed as Vcs+ΔV, and the process returns to step S309 to determine the increased V sck 、V MISO 、V MOSIOr whether Vcs is less than or equal to V SPI _high.

[0160] Based on the same inventive concept, the third aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the testing method described above are implemented.

[0161] In the specific implementation process, the computer storage medium may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.

[0162] Based on the same inventive concept, the fifth aspect of the present disclosure provides a computer program product, including a computer program, which implements the steps of the above-mentioned test method when executed by a processor. Since the principle of solving the problem by the above-mentioned computer program is similar to the principle of the test method, the implementation of the above-mentioned computer program can refer to the implementation of the test method, and the repeated parts will not be repeated.

[0163] The computer program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0164] Obviously, the above embodiments of the present disclosure are merely examples for clearly illustrating the present disclosure, and are not limitations on the implementation methods of the present disclosure. For ordinary technicians in this field, other different forms of changes or modifications can be made on the basis of the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present disclosure are still within the protection scope of the present disclosure.

Claims

1. A test device, It is characterized in that include: A control module, an amplifying module and a level conversion module, wherein the control module includes a first test terminal and a second test terminal, the amplifying module includes an input terminal and an output terminal, the level conversion module includes a first terminal and a second terminal, the first test terminal of the control module is connected to the input terminal of the amplifying module, the output terminal of the amplifying module is used to connect to the voltage input terminal of the device under test, the second test terminal of the control module is connected to the first terminal of the level conversion module, and the second terminal of the level conversion module is used to connect to the communication interface of the device under test; The control module is configured to test the device under test in response to a test instruction, and the test includes a test step and a loop step. The test step includes: outputting one of a test voltage signal and a reference voltage signal to the amplification module through a first test terminal, and outputting the other of the test voltage signal and the reference voltage signal to the level conversion module through a second test terminal, the test voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a reference voltage and input to the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the test voltage according to the working data, and recording the test voltage and working state; the loop step includes: keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeatedly executing the test step on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

2. The testing device according to claim 1, It is characterized in that The test instruction includes a first test instruction and / or a second test instruction; the control module is configured to: In response to a first test instruction, a first test is performed on the device under test, the first test comprising a first test step and a first loop step, the first test step comprising: outputting a first test voltage signal to the amplification module through a first test terminal, outputting a first reference voltage signal to the level conversion module through a second test terminal, the first test voltage signal is amplified by the amplification module to form a first test voltage and input to the voltage input terminal of the device under test, the reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test, receiving first working data returned by the communication interface of the device under test, judging the working state of the device under test under the first test voltage according to the first working data, and recording the first test voltage and the first working state; the first loop step comprises: adjusting the first test voltage signal to adjust the first test voltage in units of a preset voltage length, repeatedly executing the first test step on the adjusted first test voltage signal until the adjusted first test voltage exceeds a first preset voltage range; and / or In response to a second test instruction, a second test is performed on the device under test, the second test includes a second test step and a second loop step, the second test step includes: outputting a second reference voltage signal to the amplification module through the first test terminal, outputting a second test voltage signal to the level conversion module through the second test terminal, the second test voltage signal is level-converted by the level conversion module to form a second test voltage and input to the communication interface of the device under test, the second reference voltage signal is amplified by the amplification module to form a second reference voltage and input to the voltage input terminal of the device under test, receiving second working data returned by the communication interface of the device under test, judging the working state of the device under test under the second test voltage according to the second working data, and recording the second test voltage and the second working state; the second loop step includes: adjusting the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeatedly executing the second test step on the adjusted second test voltage signal until the adjusted second test voltage exceeds the second preset voltage range.

3. The testing device according to claim 2, It is characterized in that The first test end includes a first voltage output pin and a second voltage output pin, the amplification module includes a first amplification circuit and a second amplification circuit, the voltage input end of the device under test includes a first voltage input pin and a second voltage input pin, the first voltage output pin is connected to the input end of the first amplification circuit, the output end of the first amplification circuit is connected to the first voltage input pin of the device under test, the second voltage output pin is connected to the input end of the second amplification circuit, and the output end of the second amplification circuit is connected to the second voltage input pin of the device under test; The first test voltage signal includes a third test voltage signal and a fourth test voltage signal; The first test step includes: in response to the first test instruction, outputting a third test voltage signal to the first amplifier circuit through the first voltage output pin, and outputting a fourth test voltage signal to the second amplifier circuit through the second voltage output pin, the third test voltage signal is amplified by the first amplifier circuit to form a third test voltage and input to the first voltage input pin of the device under test, the fourth test voltage signal is amplified by the second amplifier circuit to form a fourth test voltage and input to the second voltage input pin of the device under test, receiving working data returned by the communication interface of the device under test, judging the working state of the device under test under the third test voltage and the fourth test voltage according to the working data, and recording the third test voltage, the fourth test voltage and the working state; The first cycle step includes: adjusting the third test voltage signal to adjust the third test voltage in units of a preset voltage length, repeating the first test step on the adjusted third test voltage signal until the adjusted third test voltage exceeds a third preset voltage range, and for any third test voltage, adjusting the fourth test voltage signal to adjust the fourth test voltage in units of a preset voltage length, repeating the first test step on the adjusted fourth test voltage signal until the adjusted fourth test voltage exceeds a fourth preset voltage range.

4. The testing device according to claim 3, It is characterized in that The circuit structures of the first amplifying circuit and the second amplifying circuit are the same. The first amplifying circuit includes an operational amplifier, a first resistor, a second resistor, a third resistor and a first capacitor. The first input terminal of the operational amplifier is connected to the first end of the first resistor, the second end of the first resistor is connected to the first voltage output pin, the second input terminal of the operational amplifier is connected to the first end of the second resistor and the first end of the third resistor, the second end of the second resistor is grounded, and the second end of the third resistor is connected to the output terminal of the operational amplifier; the first power supply pin of the operational amplifier is connected to the first power supply and the first end of the first capacitor, the second end of the first capacitor is grounded, the second power supply pin of the operational amplifier is grounded, and the output terminal of the operational amplifier is connected to the first voltage input pin of the device under test.

5. The testing device according to claim 2, It is characterized in that The second test end includes a first clock signal pin and a first data signal pin, the level conversion module includes a first level conversion module, and the first level conversion module includes a dual-way bidirectional multi-voltage level converter; the first end and the second end of the dual-way bidirectional multi-voltage level converter respectively include two pins, the first clock signal pin and the first data signal pin are respectively connected to the two pins of the first end of the dual-way bidirectional multi-voltage level converter, and the two pins of the second end of the dual-way bidirectional multi-voltage level converter are used to connect to the serial communication interface of the device under test.

6. The testing device according to claim 5, It is characterized in that The second test end also includes a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, and the level conversion module also includes a second level conversion module, and the second level conversion module includes a four-way bidirectional multi-voltage level converter; the first end and the second end of the four-way bidirectional multi-voltage level converter respectively include four pins, the second clock signal pin, the second data signal pin, the third data signal pin and the chip select signal pin are respectively connected to the four pins of the first end of the four-way bidirectional multi-voltage level converter, and the four pins of the second end of the four-way bidirectional multi-voltage level converter are used to connect to the serial peripheral interface of the device under test.

7. The testing device according to claim 6, It is characterized in that The control module is further configured to: In response to a second test instruction and first configuration information, a second test voltage signal is output to the first level conversion module through a first clock signal pin and a first data signal pin, or the second test voltage signal is output to the second level conversion module through a second clock signal pin, a second data signal pin, a third data signal pin, and a chip select signal pin, and the first configuration information indicates that the second test instruction is a serial communication interface test or a serial peripheral interface test.

8. The testing device according to claim 1, It is characterized in that The testing device also includes a power management module, which includes an input end and an output end, the input end is used to connect to an external power supply, and the output end is connected to the power input end of the control module, the amplification module and the level conversion module. The power management module is used to stabilize the external power supply and output a first power supply to the control module, the amplification module and the level conversion module.

9. The testing device according to claim 8, It is characterized in that The power management module includes a power interface circuit and a low voltage difference linear voltage regulator circuit; the power interface circuit includes a power socket, the power socket includes a first input pin, a second input pin, a first output pin and a second output pin, the first input pin and the second input pin of the power socket are used to be connected to the first pole and the second pole of an external power supply respectively, and the first output pin and the second output pin of the power socket are used to be connected to the input end of the low voltage difference linear voltage regulator circuit; the low voltage difference linear voltage regulator circuit includes a low voltage difference linear regulator, the output end of the low voltage difference linear regulator is connected to the power input end of the control module, the amplification module and the level conversion module, and is used to output the first power supply.

10. The testing device according to claim 1, It is characterized in that The testing device further comprises an interface conversion circuit, which comprises a first end and a second end, wherein the first end is connected to a USB bus of an external terminal, and the second end is connected to a serial communication interface of the control module.

11. A test method, applicable to a test device, It is characterized in that The test device comprises a control module, an amplifying module and a level conversion module, wherein the control module comprises a first test end and a second test end, the amplifying module comprises an input end and an output end, the level conversion module comprises a first end and a second end, the first test end of the control module is connected to the input end of the amplifying module, the output end of the amplifying module is used to connect to the voltage input end of the device under test, the second test end of the control module is connected to the first end of the level conversion module, and the second end of the level conversion module is used to connect to the communication interface of the device under test, and the test method comprises the following steps: In response to the test instruction, the device under test is tested, the test comprising: Step A, outputting one of a test voltage signal and a reference voltage signal to the amplification module through a first test terminal, outputting the other of the test voltage signal and the reference voltage signal to the level conversion module through a second test terminal, the test voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a test voltage and input to the device under test, the reference voltage signal is amplified by the amplification module or level-converted by the level conversion module to form a reference voltage and input to the device under test; Step B, receiving working data returned by the communication interface of the device under test, determining the working state of the device under test under the test voltage according to the working data, and recording the test voltage and working state; Step C, keeping the reference voltage signal unchanged, adjusting the test voltage signal to adjust the test voltage in units of a preset voltage length, and repeating steps A and B on the adjusted test voltage signal until the adjusted test voltage exceeds the preset voltage range.

12. The test method according to claim 11, It is characterized in that The test instruction includes a first test instruction and / or a second test instruction; the test method includes: In response to a first test instruction, a first test is performed on the device under test, the first test comprising a first test step and a first loop step, the first test step comprising: outputting a first test voltage signal to the amplification module through a first test terminal, outputting a first reference voltage signal to the level conversion module through a second test terminal, the first test voltage signal is amplified by the amplification module to form a first test voltage and input to the voltage input terminal of the device under test, the reference voltage signal is level-converted by the level conversion module to form a first reference voltage and input to the communication interface of the device under test, receiving first working data returned by the communication interface of the device under test, judging the working state of the device under test under the first test voltage according to the first working data, and recording the first test voltage and the first working state; the first loop step comprises: adjusting the first test voltage signal to adjust the first test voltage in units of a preset voltage length, repeatedly executing the first test step on the adjusted first test voltage signal until the adjusted first test voltage exceeds a first preset voltage range; and / or In response to a second test instruction, a second test is performed on the device under test, the second test includes a second test step and a second loop step, the second test step includes: outputting a second reference voltage signal to the amplification module through the first test terminal, outputting a second test voltage signal to the level conversion module through the second test terminal, the second test voltage signal is level-converted by the level conversion module to form a second test voltage and input to the communication interface of the device under test, the second reference voltage signal is amplified by the amplification module to form a second reference voltage and input to the voltage input terminal of the device under test, receiving second working data returned by the communication interface of the device under test, judging the working state of the device under test under the second test voltage according to the second working data, and recording the second test voltage and the second working state; the second loop step includes: adjusting the second test voltage signal to adjust the second test voltage in units of a preset voltage length, and repeatedly executing the second test step on the second test voltage until the adjusted second test voltage exceeds the second preset voltage range.

13. The testing method according to claim 11, It is characterized in that The second test end includes a first clock signal pin, a first data signal pin, a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, the level conversion module includes a first level conversion module and a second level conversion module, the first clock signal pin and the first data signal pin are respectively connected to two pins of the first end of the first level conversion module, and the second clock signal pin, the second data signal pin, the third data signal pin and the chip select signal pin are respectively connected to four pins of the first end of the second level conversion module; the testing method also includes: In response to a second test instruction and first configuration information, a second test voltage signal is output to the first level conversion module through a first clock signal pin and a first data signal pin, or the second test voltage signal is output to the second level conversion module through a second clock signal pin, a second data signal pin, a third data signal pin and a chip select signal pin, and the first configuration information indicates that the second test instruction is a serial communication interface test or a serial peripheral interface test.