MicroPython-based micro-test platform, test method and storage medium

Through the micro test platform based on MicroPython, the problems of high development cost and difficult maintenance of chip test platform are solved, rapid testing and intelligent system verification of digital-analog mixed chips are realized, and development difficulty and cost are reduced.

CN113868069BActive Publication Date: 2024-09-13SHANGHAI BEILING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111091117.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2024-09-13
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The existing chip test platform has high development costs and difficult maintenance, and cannot achieve rapid testing of digital-analog mixed chips.

Method used

Design a micro test platform based on MicroPython, including an interaction module, an excitation module, a signal acquisition module and a signal analysis and processing module. The MicroPython micro control platform collaborates with each functional module to achieve intelligent system verification and debugging of digital-analog hybrid chips. Analysis and small batch testing.

Benefits of technology

It reduces development difficulty and cost, improves testing efficiency, facilitates development, maintenance and result evaluation, and enables fast and convenient testing of digital-analog hybrid chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113868069B
    Figure CN113868069B
Patent Text Reader

Abstract

The present invention discloses a micro-test platform, a test method and a storage medium based on MicroPython. The test platform includes: an interactive module for allowing users to set test conditions corresponding to different types of products to be tested according to different types of products to be tested; an excitation module for obtaining an excitation signal corresponding to the product to be tested according to the type of the product to be tested, and stimulating the product to be tested according to the test conditions corresponding to the product to be tested through the corresponding excitation signal to trigger the product to be tested to output a test signal corresponding to the corresponding test condition; a signal acquisition module for collecting the test signal output by the product to be tested, and outputting the test signal to a signal analysis and processing module; the signal analysis and processing module is used to analyze and process the test signal and generate an analysis result. The intelligent system verification, debugging analysis and small batch testing of digital-analog hybrid chips are realized, and the platform is easy to develop and maintain, reduces the development difficulty, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip testing technology, and in particular to a micro testing platform, a testing method and a storage medium based on MicroPython (programming language). Background Art

[0002] In the prior art, chip testing generally uses ATE (Automated Test Equipment) or a test platform based on Python (scripting language). However, ATE is bulky, expensive, and complex to maintain, and is generally used for mass production testing. The Python-based test platform realizes intelligent system verification, debugging analysis, comparative evaluation, and small-batch testing of mixed-signal chips. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the defects of the chip testing platform in the prior art, such as high development cost, great maintenance difficulty, and inability to realize rapid testing of digital-analog hybrid chips, and to provide a micro testing platform, testing method and storage medium based on MicroPython.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] A micro-testing platform based on MicroPython, the micro-testing platform comprising:

[0006] An interactive module, used for allowing a user to set test conditions corresponding to different types of products to be tested according to the different types of products to be tested;

[0007] An excitation module, used for obtaining an excitation signal corresponding to the product to be tested according to the type of the product to be tested, and stimulating the product to be tested according to the test condition corresponding to the product to be tested through the corresponding excitation signal, so as to trigger the product to be tested to output a test signal corresponding to the corresponding test condition;

[0008] A signal acquisition module, used for acquiring the test signal output by the product to be tested, and outputting the test signal to the signal analysis and processing module;

[0009] The signal analysis and processing module is used to perform analysis and processing according to the test signal and generate analysis results.

[0010] Preferably, the micro test platform includes an interface module and a control signal module;

[0011] The control signal module is used to generate different types of signal sources corresponding to the product to be tested and transmit the signal sources to the interface module. The interface module performs signal processing on the different types of signal sources to generate an excitation signal.

[0012] Preferably, the interface module comprises an analog interface module;

[0013] When the product to be tested is an analog product, the signal source is any analog wave signal;

[0014] The control signal module outputs an arbitrary analog wave signal to the analog interface module, and the analog interface module performs signal processing on the arbitrary analog wave signal to generate an analog excitation signal.

[0015] Preferably, the interface module comprises a digital interface module;

[0016] When the product to be tested is a digital product, the signal source is a digital signal;

[0017] The control signal module outputs the digital signal to the digital interface module, and the digital interface module performs level conversion and digital isolation on the digital signal to generate a digital excitation signal.

[0018] Preferably, the micro test platform comprises a calibration module, and the calibration module is used to calibrate functional parameters of the micro test platform according to test conditions corresponding to different types of products to be tested.

[0019] A testing method for a micro testing platform based on MicroPython, the testing method comprising the following steps:

[0020] According to different types of products to be tested, setting test conditions corresponding to the different types of products to be tested;

[0021] Acquire an excitation signal corresponding to the product to be tested according to the product to be tested, and stimulate the product to be tested according to the test condition corresponding to the product to be tested by the corresponding excitation signal, so as to trigger the product to be tested to output a test signal corresponding to the corresponding test condition;

[0022] Collecting a test signal output by the product to be tested;

[0023] An analysis process is performed according to the test signal to generate an analysis result.

[0024] Preferably, before the step of acquiring an excitation signal corresponding to the product to be tested according to the product to be tested, the testing method comprises:

[0025] Different types of signal sources corresponding to the product to be tested are generated, and signal processing is performed on the different types of signal sources to generate excitation signals.

[0026] Preferably, when the product to be tested is an analog product, the signal source is an arbitrary analog wave signal;

[0027] The step of generating different types of signal sources corresponding to the product to be tested, and performing signal processing on the different types of signal sources to generate an excitation signal comprises: generating an arbitrary analog wave signal corresponding to an analog product, and performing signal processing on the arbitrary analog wave signal to generate an analog excitation signal; or,

[0028] When the product to be tested is a digital product, the signal source is a digital signal;

[0029] The steps of generating different types of signal sources corresponding to the product to be tested and performing signal processing on the different types of signal sources to generate excitation signals include: generating a digital signal corresponding to a digital product, performing level conversion and digital isolation on the digital signal to generate a digital excitation signal.

[0030] Preferably, before the step of setting test conditions corresponding to different types of products to be tested according to the different types of products to be tested, the test method comprises:

[0031] The functional parameters of the micro test platform are calibrated according to the test conditions corresponding to different types of products to be tested.

[0032] A computer-readable medium stores a computer program, which, when executed by a processor, implements the testing method of the MicroPython-based micro testing platform as described above.

[0033] The positive and progressive effects of the present invention are: through the interactive module, it is used for users to set test conditions corresponding to different types of products to be tested according to different types of products to be tested; the excitation module is used to obtain the excitation signal corresponding to the product to be tested according to the type of the product to be tested, and the product to be tested is stimulated by the corresponding excitation signal according to the test condition corresponding to the product to be tested, so as to trigger the product to be tested to output the test signal corresponding to the corresponding test condition; the signal acquisition module is used to collect the test signal output by the product to be tested, and output the test signal to the signal analysis and processing module; the signal analysis and processing module is used to test according to the test signal and generate test results. Based on the microcontrol platform of MicroPython, using the advantages of MicroPython's elegance, efficiency, rich resources, and easy development and maintenance, and coordinating various functional modules, it can quickly and conveniently realize the intelligent system verification, debugging analysis, comparative evaluation and small batch testing of digital-analog hybrid chips. The platform is convenient for development and maintenance, debugging and analysis, and is convenient for evaluation and analysis of test results, which reduces the difficulty of development and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a module structure diagram of a micro-test platform based on MicroPython according to Example 1 of the present invention.

[0035] Figure 2 This is a flow chart of a testing method for a micro testing platform based on MicroPython according to Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0036] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0037] Example 1

[0038] MicroPython follows the MIT (Open Source Software License) license agreement, similar to Arduino (open source electronic prototyping platform), with its own parser, compiler, virtual machine and class library, etc. MicroPython is more powerful. Currently it supports 32-bit (bit, the smallest unit of information) ARM (processor), such as STM32F405, STM32f407 and many other hardware platforms. The typical structure of a MicroPython system consists of three parts: microcontroller (system bottom layer) hardware, MicroPython firmware and user program. Hardware and MicroPython firmware are the most basic parts and are relatively unchanged, while user programs can be changed at any time. Multiple user programs can be stored in the system and called or switched at any time. This is also a feature of using MicroPython. The underlying hardware has rich resources required by the micro-test system, such as multiple ADCs (analog / digital converters), DACs (digital-to-analog converters), timers, multiple I / Os (input / output), USB (universal serial bus), multiple UARTs (asynchronous interfaces), multiple SPIs (interfaces), multiple CANs (controller area networks), multiple IICs (communication buses), multiple PWMs (interfaces), GPIOs (interfaces), CAMERA interfaces, Ethernet interfaces, and various forms of synchronous and asynchronous interfaces. MicroPython-based user programs are easy to develop and maintain, and can easily call the underlying hardware resources to complete the test of mixed analog and digital signals. They are also suitable for completing the analysis and processing of test data, the parsing of communication protocols, and the interaction with other special instruments and human-machine interface modules.

[0039] Based on the MicroPython system, a micro test platform is set up. The micro test platform is a micro test platform embedded with the MicroPython system, that is, a micro test platform based on MicroPython provided in this embodiment. Figure 1 As shown, the micro test platform includes an interaction module 1, an excitation module 2, a signal acquisition module 3, a signal analysis and processing module 4, an interface module 5, a control signal module 6, an analog interface module 7, a digital interface module 8, and a calibration module 9.

[0040] The interactive module 1 is used for allowing the user to set test conditions corresponding to different types of products to be tested according to different types of products to be tested.

[0041] The interactive module 1 is connected to the intelligent terminal interface of the micro-test platform. The user can set the test conditions of the product to be tested through the intelligent terminal interface, and can also be used to view the test results, that is, the process of data analysis and processing.

[0042] The excitation module 2 is used to obtain an excitation signal corresponding to the product to be tested according to the type of the product to be tested, and to stimulate the product to be tested according to the test conditions corresponding to the product to be tested through the corresponding excitation signal to trigger the product to be tested to output a test signal corresponding to the corresponding test conditions.

[0043] The types of products to be tested may include digital products, analog products, or mixed digital and analog products. For different types of products to be tested, test conditions can be set according to the different types of products to be tested before testing. When starting the test, the stimulation module 2 will obtain the corresponding stimulation signal for the product to be tested according to the type of product to be tested. After setting the test conditions, partial or all functions of the product to be tested will be stimulated in a targeted manner according to the test conditions to improve the test efficiency.

[0044] An excitation signal is generated based on the MicroPython system, and a micro test platform based on MicroPython provided in this embodiment obtains the excitation signal and applies excitation to the product to be tested.

[0045] The signal acquisition module 3 is used to acquire the test signal output by the product to be tested, and output the test signal to the signal analysis and processing module 4. The signal analysis and processing module 4 is used to analyze and process the test signal and generate an analysis result.

[0046] After the product under test is stimulated, it will output a corresponding test signal. The signal acquisition module 3 collects the test signal output by the product under test and outputs it to the signal analysis and processing module 4. The signal analysis and processing module 4 tests the test signal. The test process will analyze and calculate the test signal to determine whether the product under test meets the standards and output the analysis results. The analysis results include whether the parameter test meets the standards or not, which is convenient for users to develop or maintain the product under test according to the analysis results.

[0047] The signal analysis and processing module 4 may include signal processing of analog signals, including parameter calculation, weighted filtering, harmonic analysis, noise analysis, frequency domain transformation, protocol analysis, and difference fitting, and may also process digital signals, which may be processed through protocol analysis and various algorithms to complete functional testing, timing testing, bit error rate testing, and eye diagram testing. The signal analysis and processing module 4 may perform specific function or parameter tests according to different test conditions, which are not listed here one by one.

[0048] The micro test platform includes an interface module 5 and a control signal module 6; the control signal module 6 is used to generate different types of signal sources corresponding to the product to be tested and transmit them to the interface module 5, and the interface module 5 processes the different types of signal sources to generate excitation signals.

[0049] The interface module includes an analog interface module 7; when the product to be tested is an analog product, the signal source is an arbitrary analog wave signal; the control signal module outputs the arbitrary analog wave signal to the analog interface module, and the analog interface module processes the arbitrary analog wave signal to generate an analog excitation signal.

[0050] Specifically, the micro-test platform based on the MicroPython system includes multiple ADCs and DACs, which can complete the parallel acquisition of multiple analog signals, which has great advantages compared to single-channel instruments and equipment. It also provides a test basis for a micro-test platform based on MicroPython provided in this embodiment, but the microcontroller is generally powered by a low-voltage single power supply, and the analog signal of the product to be tested may have a large dynamic range, even including negative pressure signals. Therefore, it is necessary to condition the signal of the product to be tested through the analog interface module 7, and the signal needs to be adjusted to the optimal sampling range. The product to be tested needs to perform signal conditioning when it outputs the signal to the micro-test platform through the analog interface module 7, and the micro-test platform also needs to perform signal conditioning when it outputs the signal to the product to be tested through the analog interface module 7. The signal conditioning method is the same and can be set accordingly according to the specific test conditions. For example, the multi-channel ADC of the micro test platform collects the analog signal of the product to be tested through the analog interface module 7, and the signal output by the product to be tested can be adjusted to the optimal range of ADC sampling through the multi-channel analog switch, voltage bias circuit and adjustable attenuator included in the analog interface module 7; the micro test platform outputs the signal to the product to be tested through the multi-channel DAC, and the DAC signal can be buffered and biased and amplified by PGA (programmable gain amplifier) ​​through the analog interface module 7 as the excitation signal of the product to be tested.

[0051] Various square wave, sine wave, step wave and other signals are generated through the rich mathematical library of the MicroPython system. These signals can be obtained from the MicroPython system for easy testing. If the product to be tested is an analog signal product, the analog signal can be obtained for testing through the micro-test platform based on MicroPython. The control signal module 6 will correspondingly generate any analog wave signal that can be converted into an analog signal as a signal source.

[0052] The interface module includes a digital interface module 8; when the product to be tested is a digital product, the signal source is a digital signal; the control signal module 6 outputs the digital signal to the digital interface module 8, and the digital interface module 8 performs level conversion and digital isolation on the digital signal to generate a digital excitation signal.

[0053] The digital interface module 8 requires a multi-level conversion circuit to achieve compatibility with different logic levels, adds a digital isolator to achieve system reliability design, uses a bus buffer to improve the driving ability of digital signals, and completes communication with other special instruments and equipment through a hub.

[0054] The micro test platform comprises a calibration module 9, which is used to calibrate the functional parameters of the micro test platform according to the test conditions corresponding to different types of products to be tested.

[0055] The micro-test platform based on MicroPython can be used to test different types of products under test. In order to ensure the accuracy of the test results, the test platform can be calibrated through the calibration module of the test platform before the test. In order to ensure the accuracy of the test, the system can realize the function of system calibration through interaction with other high-precision instruments and equipment, and can realize temperature compensation through temperature sensors and system modeling. The micro-test system can apply excitation signals (input signals), control signals, timing signals and test vectors to the product under test through analog interfaces and digital interfaces, and determine whether the test results meet the specification values ​​through the collection of analog and digital signals of the product under test and the analysis and calculation of the signal processing module.

[0056] like Figure 1 As shown, it is a module structure block diagram of a micro test platform based on MicroPython. The micro test platform also includes a power management module 10. The power management module includes an AC / DC module, a DC / DC or LDO, a voltage reference, an overcurrent protection circuit, and an overvoltage / undervoltage protection circuit, which provide a safe, high-noise and low-noise analog power supply, a digital power supply, and a high-precision voltage reference for the micro test platform based on MicroPython.

[0057] The micro test platform also includes a load module 11, including a constant voltage circuit, a constant current circuit and a constant resistance circuit, which provide a source current for the digital system and a load voltage and resistance for the analog system. The constant voltage, constant current circuit and constant resistance circuit can be realized by the ADC / DAC of the micro control platform, in conjunction with an operational amplifier and peripheral devices.

[0058] The micro test platform also includes a current detection module 12. For the test of analog-digital mixed signals, current detection is an indispensable component, ranging from sleep current, static current, IO output source current, to output current and short-circuit current of power supply products and power products. Current detection can be implemented in a variety of ways according to different accuracy requirements, such as high-side, low-side, bidirectional current detection circuit, detection resistor plus PGA, and detection through current sensor, etc.

[0059] The micro-test platform also includes other special equipment connected to the product to be tested. The purpose of connecting other special equipment is that the micro-test platform based on MicroPython can complete the test through analog-digital mixed signals. For some high-end products with higher requirements, special instruments or high-precision instruments are required, such as network analyzers, audio analyzers, high and low temperature equipment, temperature inspection instruments, various sensors, etc. The micro-control platform can realize the control and interaction of these external devices through digital interfaces, and display the test information in real time on the interface of the intelligent terminal through the human-machine interface, and save and generate test reports. The working principle of a micro-test platform based on MicroPython provided in this embodiment is as follows:

[0060] The user interacts with the micro test platform through the interactive module 1, sets the parameter indicators of the analog / digital product to be tested, and realizes the power supply and power-on timing of the entire system, including the product to be tested, through the power management module 10, and realizes the system's temperature compensation, system self-test and self-calibration. Specifically, the power management module 10 includes an AC / DC module, DC / DC or LDO, a voltage reference, an overcurrent protection circuit and an overvoltage / undervoltage protection circuit. The power management module 10 can be set as needed and is not limited here.

[0061] The test system generates an excitation signal through the excitation module 2 of the MicroPython micro test platform, and applies corresponding excitation to the product under test through the interface module 5, including the analog / digital interface. At the same time, the control module of the control platform synchronizes the current detection module 12, the load module 11 and other devices to achieve the test conditions set by the user.

[0062] Then the test system processes the output signal of the product to be tested through the signal conditioning of the digital / analog interface and returns it to the signal analysis and processing module 4. The signal analysis and processing module 4 analyzes and processes the test signal, determines the test result, and sends it to the interactive module 1 in real time through the digital interface to complete real-time display and monitoring, thereby realizing parameter testing of the product to be tested.

[0063] This embodiment sets up a micro-test platform based on MicroPython based on the MicroPython system. Specifically, for better explanation and illustration, the RS-485 transceiver product is used as an example for illustration. The product includes a digital logic part and an analog drive part. The digital logic part controls the enablement of the transmitter and the receiver, the transmission of the signal, and the reversal of the polarity. The product is widely used in the fields of smart meters, industrial control, etc. As a key component of smart meters, RS-485 transceivers need to pass the inspection of the State Grid Metering Center regularly, including functional testing, parameter index testing, system-level verification, temperature experiments, anti-static experiments, etc. The micro-test system based on MicroPython can efficiently and accurately simulate the standards of the State Grid detection, and complete the parameter index testing before and after the temperature and electrostatic experiments.

[0064] The RS-485 transceiver is tested through a micro-test platform based on MicroPython. The chip under test is powered by the power management module 10 and a power-on sequence is provided.

[0065] Through the excitation module 2 and the control signal module 6, various square wave, sine wave, step wave and other signals are generated by using the rich mathematical library based on the MicroPython system, and output through the D / A. After the signal conditioning of the analog interface module 7, it is used as an analog signal source to apply excitation to the RS-485 product, and the analog output signal of the RS-485 is conditioned by the analog interface module 7, sampled by A / D, and passed through the signal analysis and processing module 4 (i.e., signal analysis and processing) to complete the test of the analog part.

[0066] At the same time, the MicroPython system has a rich resource library and can also generate test vectors, specific timing, pseudo-random code and other digital signals, which are sent to the RS-485 product after level conversion and digital isolation of the digital interface module 8. The output signal of the RS-485 product is processed by the digital interface module 8, and the timing test, bit error rate test and functional test of the signal analysis and processing module 4 (i.e., signal analysis and processing) are performed to complete the test of the parameters of the digital-analog hybrid product.

[0067] The signal analysis and processing module 4 can complete the calculation of voltage and current tests on analog signals through preset judgment conditions, such as power consumption and driving capability tests; and can optimize the test time and improve the test accuracy through various algorithms, such as threshold and sensitivity detection; and realize the conversion from time domain to frequency domain through fast Fourier transform, such as the test analysis of electromagnetic interference of bus signals, harmonic analysis of signals, etc.

[0068] For digital signals, functional testing, timing testing, bit error rate testing and eye diagram testing can be completed through protocol analysis and various algorithms.

[0069] Based on the rich resources of the MicroPython system, glue-like applications, and peripheral interface modules, signal conditioning can be achieved. It is particularly suitable for the testing of mixed analog and digital products. It is easy to develop and maintain, and can efficiently and accurately complete customized comparative evaluation of interface products, USB switches, ADCs, DACs, digital isolators, and SOC products, system verification, debugging analysis, and small-batch testing. It is an ideal test system for Fabless chip design companies.

[0070] This implementation provides a micro-testing platform based on MicroPython, which takes advantage of the MicroPython system's elegance, efficiency, rich resources, and ease of development and maintenance, and collaborates with other functional modules of the digital system and analog system to quickly and conveniently implement intelligent system verification, debugging analysis, comparative evaluation, and small-batch testing of digital-analog hybrid chips. The test platform has low development difficulty and cost, reduces repetitive development work, speeds up development, is easy to maintain, can be used flexibly, and can be customized according to different types of products to improve the user experience.

[0071] Example 2

[0072] The present embodiment provides a test method for a micro-test platform based on MicroPython. Before introducing the test method steps, the MicroPython system is first introduced. MicroPython follows the MIT (Open Source Software License) license agreement, similar to Arduino (open source electronic prototype platform), with its own parser, compiler, virtual machine and class library, etc., MicroPython is more powerful. At present, it supports ARM (processor) based on 32-bit (bit, the smallest unit of information), such as STM32F405, STM32f407 and many other hardware platforms. The typical structure of a MicroPython system is composed of three major parts: microcontroller (system bottom) hardware, MicroPython firmware and user program. Hardware and MicroPython firmware are the most basic parts, and are relatively unchanged, and user programs can be changed at any time, and multiple user programs can be stored in the system, and can be called or switched at any time, which is also a feature of using MicroPython. The underlying hardware has rich resources required by the micro-test system, such as multiple ADCs (analog / digital converters), DACs (digital-to-analog converters), timers, multiple I / Os (input / output), USB (universal serial bus), multiple UARTs (asynchronous interfaces), multiple SPIs (interfaces), multiple CANs (controller area networks), multiple IICs (communication buses), multiple PWMs (interfaces), GPIOs (interfaces), CAMERA interfaces, Ethernet interfaces, and various forms of synchronous and asynchronous interfaces. MicroPython-based user programs are easy to develop and maintain, and can easily call the underlying hardware resources to complete the test of mixed analog and digital signals. They are also suitable for completing the analysis and processing of test data, the parsing of communication protocols, and the interaction with other special instruments and human-machine interface modules.

[0073] Based on the MicroPython system, a MicroPython-based micro test platform is set up to facilitate rapid testing of digital analog products. The micro test platform is used for testing a test method, that is, a test method based on a MicroPython-based micro test platform provided in this embodiment.

[0074] Furthermore, if Figure 2 As shown, the test method includes the following steps:

[0075] S1. Setting test conditions corresponding to different types of products to be tested.

[0076] It can be connected through the intelligent terminal interface of the micro test platform. Users can set the test conditions of the product to be tested through the intelligent terminal interface, and can also be used to view the test results, that is, the process of data analysis and processing.

[0077] S2, obtaining an excitation signal corresponding to the product to be tested according to the product to be tested, and stimulating the product to be tested according to the test condition corresponding to the product to be tested through the corresponding excitation signal, so as to trigger the product to be tested to output a test signal corresponding to the corresponding test condition;

[0078] The types of products to be tested may include digital products, analog products, or mixed digital and analog products. For different types of products to be tested, test conditions can be set according to the different types of products to be tested before testing. When starting the test, corresponding excitation signals are obtained for the products to be tested according to the type of products to be tested. After setting the test conditions, partial or all functions of the products to be tested are stimulated in a targeted manner according to the test conditions to improve test efficiency.

[0079] S3, collecting the test signal output by the product to be tested;

[0080] S4. Analyze and process the test signal and generate analysis results.

[0081] After the product under test is stimulated, it will output a corresponding test signal. The test signal output by the product under test is collected for testing. The test process will analyze and calculate the test signal to determine whether the product under test meets the standards and output the analysis results. The analysis results include whether the parameter test meets the standards or not, which is convenient for users to develop or maintain the product under test based on the analysis results.

[0082] The signal analysis and processing of the test signal may specifically include parameter calculation, weighted filtering, harmonic analysis, noise analysis, frequency domain transformation, protocol analysis, difference fitting, bit error rate calculation, etc.

[0083] Prior to S2, the test methods also included:

[0084] S5. Generate different types of signal sources corresponding to the product to be tested, and perform signal processing on the different types of signal sources to generate excitation signals.

[0085] When the product to be tested is an analog product, the signal source is an arbitrary analog wave signal, and step S5 specifically includes: generating an arbitrary analog wave signal corresponding to the analog product, and performing signal processing on the arbitrary analog wave signal to generate an analog excitation signal.

[0086] Specifically, the micro test platform contains multiple ADCs and DACs, which can complete the parallel acquisition of multiple analog signals, which has great advantages compared to single-channel instruments and equipment. However, microcontrollers are generally powered by a low-voltage single power supply, and the analog signal of the product to be tested may have a large dynamic range, even including negative voltage signals. Therefore, it is necessary to adjust the signal of the product to be tested to the optimal range of ADC sampling through signal conditioning, and at the same time, buffer the DAC signal and amplify it with PGA as the excitation signal of the product to be tested.

[0087] The MicroPython system's rich mathematical library is used to generate various square wave, sine wave, step wave and other signals. These signals can be obtained from the MicroPython system for easy testing. If the product to be tested is an analog signal product, the analog signal can be obtained through the test platform for testing.

[0088] When the product to be tested is a digital product, the signal source is a digital signal, and step S5 specifically includes: generating a digital signal corresponding to the digital product, performing level conversion and digital isolation on the digital signal to generate a digital excitation signal.

[0089] The compatibility of different logic levels is achieved through the multi-level conversion circuit of the MicroPython micro test platform, the reliability design of the system is realized by adding a digital isolator, the driving ability of the digital signal is improved by using a bus buffer, and the communication with other special instruments and equipment is completed through the hub to realize the signal processing of digital signals.

[0090] Prior to S1, testing methods included:

[0091] S6. Calibrate the functional parameters of the micro test platform according to the test conditions corresponding to different types of products to be tested.

[0092] The test method of the micro test platform based on MicroPython can be used to test different types of products to be tested. In order to ensure the accuracy of the test results, the test platform can be calibrated by the test method of the test platform before the test.

[0093] The present embodiment provides a test method based on a MicroPython micro test platform, which allows users to set parameter indicators of analog / digital products to be tested through a MicroPython-based micro test platform, and realize the power supply and power-on timing of the entire system, including the product to be tested, and realize temperature compensation of the system, system self-test and self-calibration.

[0094] This test method obtains the excitation signal through the MicroPython micro test platform, and applies corresponding excitation to the product under test according to the excitation signal. At the same time, it realizes the test conditions set by the user by controlling the synchronous current detection, load and other equipment of the platform.

[0095] The test signal of the product to be tested is analyzed and processed, and the test result is determined to complete the test. The test result can be displayed on the intelligent display terminal for users to view, compare and analyze.

[0096] This implementation provides a testing method for a micro-testing platform based on MicroPython to achieve intelligent system verification, debugging analysis, comparative evaluation, and small-batch testing of mixed-signal chips. The platform facilitates development and maintenance, debugging and analysis, and facilitates evaluation and analysis of test results, which reduces development difficulty and improves user experience.

[0097] Example 3

[0098] The present invention also provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the testing method of the MicroPython-based micro testing platform of the aforementioned embodiment 2 are implemented.

[0099] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0100] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the test method based on the MicroPython micro test platform of Example 2.

[0101] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0102] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A micro-test platform based on MicroPython, characterized in that: The micro test platform comprises: An interactive module, used for allowing a user to set test conditions corresponding to different types of products to be tested according to the different types of products to be tested; An excitation module, used for obtaining an excitation signal corresponding to the product to be tested according to the type of the product to be tested, and stimulating the product to be tested according to the test condition corresponding to the product to be tested through the corresponding excitation signal, so as to trigger the product to be tested to output a test signal corresponding to the corresponding test condition; A signal acquisition module, used for acquiring the test signal output by the product to be tested, and outputting the test signal to the signal analysis and processing module; The signal analysis and processing module is used to perform analysis and processing according to the test signal and generate analysis results; The micro test platform includes an interface module and a control signal module; The control signal module is used to generate different types of signal sources corresponding to the product to be tested and transmit them to the interface module, and the interface module performs signal processing on the different types of signal sources to generate an excitation signal; The micro test platform includes multiple ADCs and DACs for parallel acquisition of multiple analog signals. When the product to be tested is an analog product, the interface module includes a multiple analog switch, a voltage bias circuit, and an adjustable attenuator to adjust the signal output by the product to be tested to a preset range of ADC sampling; When the micro test platform outputs the signal to the product under test through the multi-channel DAC, the interface module is used to buffer and bias the DAC signal and amplify it with a programmable gain amplifier PGA to serve as the excitation signal of the product under test.

2. The MicroPython-based micro-test platform according to claim 1, characterized in that: The interface module includes an analog interface module; When the product to be tested is an analog product, the signal source is any analog wave signal; The control signal module outputs an arbitrary analog wave signal to the analog interface module, and the analog interface module performs signal processing on the arbitrary analog wave signal to generate an analog excitation signal.

3. The MicroPython-based micro-test platform according to claim 1, characterized in that: The interface module includes a digital interface module; When the product to be tested is a digital product, the signal source is a digital signal; The control signal module outputs the digital signal to the digital interface module, and the digital interface module performs level conversion and digital isolation on the digital signal to generate a digital excitation signal.

4. The MicroPython-based micro-test platform according to claim 1, characterized in that: The micro test platform comprises a calibration module, and the calibration module is used to calibrate the functional parameters of the micro test platform according to the test conditions corresponding to different types of products to be tested.

5. A testing method based on a micro testing platform of MicroPython, characterized in that: The test method comprises the following steps: According to different types of products to be tested, setting test conditions corresponding to the different types of products to be tested; Acquire an excitation signal corresponding to the product to be tested according to the product to be tested, and stimulate the product to be tested according to the test condition corresponding to the product to be tested by the corresponding excitation signal, so as to trigger the product to be tested to output a test signal corresponding to the corresponding test condition; Collecting a test signal output by the product to be tested; Performing analysis and processing according to the test signal and generating analysis results; Before the step of obtaining an excitation signal corresponding to the product to be tested according to the product to be tested, the testing method includes: Generating different types of signal sources corresponding to the product to be tested, and performing signal processing on the different types of signal sources to generate excitation signals; The micro test platform includes multiple ADCs and DACs for parallel acquisition of multiple analog signals. When the product to be tested is an analog product, the test method further includes: When the micro test platform outputs the signal to the product under test through the multi-channel DAC, the DAC signal is buffered and biased and amplified by the programmable gain amplifier PGA to serve as the excitation signal of the product under test.

6. The test method of the MicroPython-based micro test platform according to claim 5, characterized in that: When the product to be tested is an analog product, the signal source is any analog wave signal; The step of generating different types of signal sources corresponding to the product to be tested, and performing signal processing on the different types of signal sources to generate an excitation signal comprises: generating an arbitrary analog wave signal corresponding to an analog product, and performing signal processing on the arbitrary analog wave signal to generate an analog excitation signal; or, When the product to be tested is a digital product, the signal source is a digital signal; The steps of generating different types of signal sources corresponding to the product to be tested and performing signal processing on the different types of signal sources to generate excitation signals include: generating a digital signal corresponding to a digital product, performing level conversion and digital isolation on the digital signal to generate a digital excitation signal.

7. The test method of the MicroPython-based micro test platform as claimed in claim 5, characterized in that: Before the step of setting test conditions corresponding to different types of products to be tested according to the different types of products to be tested, the test method includes: The functional parameters of the micro test platform are calibrated according to the test conditions corresponding to different types of products to be tested.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the testing method of the MicroPython-based micro testing platform as described in any one of claims 5 to 7 is implemented.