[go: up one dir, main page]

CN118837726A - MEMS chip testing method and system and storage medium - Google Patents

MEMS chip testing method and system and storage medium Download PDF

Info

Publication number
CN118837726A
CN118837726A CN202411310362.0A CN202411310362A CN118837726A CN 118837726 A CN118837726 A CN 118837726A CN 202411310362 A CN202411310362 A CN 202411310362A CN 118837726 A CN118837726 A CN 118837726A
Authority
CN
China
Prior art keywords
mems chip
fpga board
mems
mcu
test data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411310362.0A
Other languages
Chinese (zh)
Other versions
CN118837726B (en
Inventor
朱炯
方泽莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaoxing Yuanfang Semiconductor Co Ltd
Original Assignee
Shaoxing Yuanfang Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shaoxing Yuanfang Semiconductor Co Ltd filed Critical Shaoxing Yuanfang Semiconductor Co Ltd
Priority to CN202411310362.0A priority Critical patent/CN118837726B/en
Publication of CN118837726A publication Critical patent/CN118837726A/en
Application granted granted Critical
Publication of CN118837726B publication Critical patent/CN118837726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2834Automated test systems [ATE]; using microprocessors or computers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • G01R31/2884Testing of integrated circuits [IC] using dedicated test connectors, test elements or test circuits on the IC under test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

本申请提出一种MEMS芯片的测试方法及系统、存储介质。该方法包括:FPGA板连接MCU,并通过自身的多个接口连接若干MEMS芯片,每一接口连接一MEMS芯片,MCU还连接上位机;FPGA板将接收自上位机的控制指令并行传输给各个MEMS芯片;FPGA板接收各个MEMS芯片并行传输的测试数据;FPGA板将测试数据发送给MCU,以由MCU对测试数据进行分析并将分析结果发送给上位机,或者,FPGA板对测试数据进行分析,并将分析结果发送给MCU以由MCU发送给上位机。本申请可以降低芯片测试时间,提高测试效率,还可以根据各个MEMS芯片的差异实现针对性自动校准。

The present application proposes a test method, system and storage medium for MEMS chips. The method includes: the FPGA board is connected to the MCU, and is connected to a number of MEMS chips through its own multiple interfaces, each interface is connected to a MEMS chip, and the MCU is also connected to the host computer; the FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel; the FPGA board receives the test data transmitted in parallel by each MEMS chip; the FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU so that the MCU sends them to the host computer. The present application can reduce chip testing time, improve testing efficiency, and can also achieve targeted automatic calibration according to the differences between each MEMS chip.

Description

MEMS芯片的测试方法及系统、存储介质MEMS chip testing method and system, storage medium

技术领域Technical Field

本申请涉及芯片测试领域,具体涉及一种MEMS(Micro Electro MechanicalSystem,微机电系统)芯片的测试方法及系统、存储介质。The present application relates to the field of chip testing, and specifically to a testing method and system for a MEMS (Micro Electro Mechanical System) chip, and a storage medium.

背景技术Background Art

目前,用于控制IMU(Inertial Measurement Unit,惯性测量单元)或陀螺仪等的MEMS芯片在出厂前需要做测试,以确保最终上市的MEMS芯片具有的良好性能。现有技术通常是基于测试机台的MCU(Micro-controller Unit,微控制单元)采集MEMS芯片产生的数据,该数据可称为“测试数据”,并根据该测试数据来判断MEMS芯片是否符合出厂要求。MCU与各个MEMS芯片之间采用串行传输方式进行测试数据的传输,但串行传输方式的效率较慢,一般而言在做惯性角度测试和校准过程中每个MEMS芯片需要花费20分钟左右的时间,如果待测试的MEMS芯片数量较多,则需要花费的时间更长,这无疑会严重影响MEMS芯片的测试效率及出厂效率。At present, MEMS chips used to control IMU (Inertial Measurement Unit) or gyroscopes need to be tested before leaving the factory to ensure that the final MEMS chips on the market have good performance. The existing technology usually collects the data generated by the MEMS chip based on the MCU (Micro-controller Unit) of the test machine. This data can be called "test data", and judges whether the MEMS chip meets the factory requirements based on the test data. The MCU and each MEMS chip use serial transmission to transmit test data, but the efficiency of the serial transmission method is slow. Generally speaking, it takes about 20 minutes for each MEMS chip to perform inertial angle testing and calibration. If there are a large number of MEMS chips to be tested, it will take longer, which will undoubtedly seriously affect the test efficiency and factory efficiency of the MEMS chip.

发明内容Summary of the invention

鉴于此,本申请提供一种MEMS芯片的测试方法及系统、存储介质,可以至少改善MEMS芯片的现有测试效率较慢的问题。In view of this, the present application provides a test method and system for a MEMS chip, and a storage medium, which can at least improve the problem of low efficiency in existing testing of MEMS chips.

本申请提供的一种MEMS芯片的测试方法,所述MEMS芯片用于控制IMU或陀螺仪的多个轴,所述方法包括:The present application provides a method for testing a MEMS chip, wherein the MEMS chip is used to control multiple axes of an IMU or a gyroscope, and the method comprises:

FPGA(Field Programmable Gate Array,现场可编程门阵列)板连接MCU,并通过自身的多个接口连接若干MEMS芯片,每一接口连接一MEMS芯片,所述MCU还连接上位机;The FPGA (Field Programmable Gate Array) board is connected to the MCU and is connected to several MEMS chips through its own multiple interfaces, each interface is connected to a MEMS chip, and the MCU is also connected to the host computer;

所述FPGA板将接收自上位机的控制指令并行传输给各个MEMS芯片;The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel;

所述FPGA板接收各个MEMS芯片并行传输的测试数据;The FPGA board receives test data transmitted in parallel by each MEMS chip;

所述FPGA板将所述测试数据发送给MCU,以由所述MCU对所述测试数据进行分析并将分析结果发送给上位机,或者,所述FPGA板对所述测试数据进行分析,并将分析结果发送给MCU以由所述MCU发送给上位机。The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer.

可选的,各个MEMS芯片设置于所述FPGA板上;所述方法还包括:Optionally, each MEMS chip is disposed on the FPGA board; the method further includes:

所述FPGA板设置温度传感器以检测各个MEMS芯片的当前温度;The FPGA board is provided with a temperature sensor to detect the current temperature of each MEMS chip;

所述FPGA板将所述当前温度发送给MCU,以由所述MCU判断是否达到预设温度、并在确定所述当前温度达到所述预设温度时产生触发指令;The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached, and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature;

所述FPGA板响应于从所述MCU接收到所述触发指令,执行所述将从上位机接收的控制指令并行传输给各个MEMS芯片的步骤。In response to receiving the trigger instruction from the MCU, the FPGA board executes the step of transmitting the control instruction received from the host computer to each MEMS chip in parallel.

可选的,所述方法还包括:Optionally, the method further includes:

所述FPGA板采集各个MEMS芯片上电时并行传输的模拟信号;The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on;

所述FPGA板将采集的模拟信号模数转换为数字信号;The FPGA board converts the collected analog signal into a digital signal;

所述FPGA板根据所述数字信号对各个MEMS芯片进行校准。The FPGA board calibrates each MEMS chip according to the digital signal.

可选的,测试数据为对IMU或陀螺仪的各个轴在若干参数位点进行测试得到;所述FPGA板根据所述数字信号对各个MEMS芯片进行校准,包括:Optionally, the test data is obtained by testing each axis of the IMU or gyroscope at a number of parameter locations; the FPGA board calibrates each MEMS chip according to the digital signal, including:

对于相邻两个所述参数位点,在对后一参数位点输出模拟信号之前,根据前一参数位点产生的数字信号完成对应MEMS芯片的校准。For two adjacent parameter sites, before outputting an analog signal to the latter parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the former parameter site.

可选的,所述测试数据表现为封装包,所述封装包包括数据头、数据类型、来源编号、数据长度及数据内容,所述来源编号表示所述测试数据来自的MEMS芯片;所述方法还包括:Optionally, the test data is presented as a package, the package includes a data header, a data type, a source number, a data length and data content, the source number indicates the MEMS chip from which the test data comes; the method further includes:

所述FPGA板从所述测试数据中获取各轴的数据;The FPGA board acquires data of each axis from the test data;

对获取到数据的每一轴创建一存储队列,并存储对应的数据;Create a storage queue for each axis that obtains data and store the corresponding data;

根据所述来源编号和所述存储队列的数量,判断是否接收到全部MEMS芯片的测试数据;以及,若是,则确定完成所述测试数据的采集;若否,则继续接收各个MEMS芯片并行传输的测试数据。According to the source number and the number of the storage queues, it is determined whether the test data of all MEMS chips are received; and, if so, it is determined that the collection of the test data is completed; if not, the test data transmitted in parallel by each MEMS chip is continuously received.

可选的,所述方法还包括:Optionally, the method further includes:

S11:将所述多个接口相连,选取其中一MEMS芯片发出包含自身标识和存储队列数量的一询问包,其中,所述存储队列为从所述测试数据中获取到对应各轴的数据时创建,且每一轴创建一存储队列;S11: connecting the multiple interfaces, selecting one of the MEMS chips to send an inquiry packet containing its own identification and the number of storage queues, wherein the storage queue is created when the data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis;

S12:剩余MEMS芯片接收到所述询问包后,将各自当前的存储队列数量与所述其中一MEMS芯片的存储队列数量相比较;S12: After receiving the inquiry packet, the remaining MEMS chips compare their current storage queue quantities with the storage queue quantity of one of the MEMS chips;

S13:对于剩余MEMS芯片中的任一者,若所述当前的存储队列数量小于所述其中一MEMS芯片的存储队列数量,则发出询问包;S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of one of the MEMS chips, an inquiry packet is issued;

S14:对于剩余MEMS芯片中的任一者,若所述当前的存储队列数量大于或等于所述其中一MEMS芯片的存储队列数量,则不发出询问包;S14: For any of the remaining MEMS chips, if the current storage queue quantity is greater than or equal to the storage queue quantity of one of the MEMS chips, no inquiry packet is sent;

重复执行所述S11至S14,直至剩余MEMS芯片仅为一个;Repeating S11 to S14 until only one MEMS chip remains;

响应于接收到最后一个剩余MEMS芯片传输的封装包,则判定接收到全部MEMS芯片的测试数据,确定完成所述测试数据的采集。In response to receiving the packaging package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips are received, and it is determined that the collection of the test data is completed.

可选的,所述封装包包括数据头、数据类型、来源编号、数据长度及数据内容,所述来源编号表示所述测试数据来自的MEMS芯片以及标识最后一个剩余MEMS芯片;所述方法还包括:Optionally, the package includes a data header, a data type, a source number, a data length, and data content, wherein the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the method further includes:

所述FPGA板根据所述来源编号确定剩余MEMS芯片仅为一个。The FPGA board determines that there is only one remaining MEMS chip based on the source number.

可选的,所述方法还包括:Optionally, the method further includes:

获取询问包从一MEMS芯片发出至另一MEMS芯片接收到的最大时长;Obtain the maximum time duration from when an inquiry packet is sent from one MEMS chip to when it is received by another MEMS chip;

在距离前次检测到所述询问包超过所述最大时长时,未接收到任一所述询问包,则确定剩余MEMS芯片仅为一个。When the time from the last detection of the inquiry packet exceeds the maximum time length, no inquiry packet is received, and it is determined that there is only one MEMS chip left.

本申请提供的一种MEMS芯片的测试系统,包括上位机、MCU以及FPGA板,所述FPGA板与所述MCU连接,所述FPGA板设置有多个接口,用于与若干MEMS芯片连接,每一所述接口连接一所述MEMS芯片,所述MCU与所述上位机连接;其中,所述FPGA板、所述上位机和所述MCU之间通过如上任一项所述的方法执行MEMS芯片的测试。The present application provides a MEMS chip testing system, comprising a host computer, an MCU and an FPGA board, wherein the FPGA board is connected to the MCU, the FPGA board is provided with a plurality of interfaces for connecting to a plurality of MEMS chips, each of the interfaces is connected to a MEMS chip, and the MCU is connected to the host computer; wherein the FPGA board, the host computer and the MCU perform the test of the MEMS chip by the method described in any one of the above items.

本申请提供的一种存储介质,存储有测试程序,所述测试程序被处理器执行时实现如上任一项所述的MEMS芯片的测试方法的对应步骤。The present application provides a storage medium storing a test program, which, when executed by a processor, implements corresponding steps of the MEMS chip test method as described in any one of the above items.

如上所述,本申请通过FPGA板接收各个MEMS芯片产生的测试数据,FPGA板和各个MEMS芯片之间通过并行传输方式来传输测试数据,并行传输方式使得测试数据通过多条线路同时传输,在相同时间内可以传输较多的测试数据,从而可以降低对MEMS芯片的测试时间,提高测试效率。As described above, the present application receives the test data generated by each MEMS chip through the FPGA board, and the test data is transmitted between the FPGA board and each MEMS chip through a parallel transmission method. The parallel transmission method enables the test data to be transmitted simultaneously through multiple lines. More test data can be transmitted in the same time, thereby reducing the test time of the MEMS chip and improving the test efficiency.

另外,本申请可以通过FPGA板采集各个MEMS芯片上电时并行传输的模拟信号,据此对各个MEMS芯片进行校准,于此,可以根据各个MEMS芯片的差异实现针对性自动校准,保证各个MEMS芯片的最佳性能。In addition, the present application can collect the analog signals transmitted in parallel when each MEMS chip is powered on through the FPGA board, and calibrate each MEMS chip accordingly. Hereby, targeted automatic calibration can be implemented according to the differences between each MEMS chip to ensure the optimal performance of each MEMS chip.

进一步的,本申请可以通过FPGA板从测试数据中获取IMU或陀螺仪的各轴的数据,并在每获取到一轴的数据时创建一存储队列,并存储对应的数据,继而根据测试数据中携带的来源编号和存储队列的数量,判断是否接收到全部MEMS芯片的测试数据,从而自动实现测试数据是否完成采集的确定。Furthermore, the present application can obtain the data of each axis of the IMU or gyroscope from the test data through the FPGA board, and create a storage queue every time the data of one axis is obtained, and store the corresponding data, and then determine whether the test data of all MEMS chips is received based on the source number carried in the test data and the number of storage queues, thereby automatically determining whether the test data collection is completed.

本申请也可以通过FPGA板将多个接口相连,以此将多个MEMS芯片互联,这些MEMS芯片之间通过比较存储队列数量来确定是否发出询问包,据此确定是否为最后一个发出询问包的MEMS芯片,基于此,本申请可以通过这些MEMS芯片之间的互联来自动确定测试数据是否完成采集,而无需FPGA板、MCU及上位机中任一者来执行,可以减少FPGA板、MCU及上位机中任一者的计算量。The present application can also connect multiple interfaces through an FPGA board to interconnect multiple MEMS chips. These MEMS chips determine whether to send an inquiry packet by comparing the number of storage queues, and thereby determine whether it is the last MEMS chip to send an inquiry packet. Based on this, the present application can automatically determine whether the test data has been collected through the interconnection between these MEMS chips without the need for any of the FPGA board, MCU, and host computer to execute, which can reduce the amount of calculation of any of the FPGA board, MCU, and host computer.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请一实施例的MEMS芯片的测试方法的流程示意图;FIG1 is a schematic flow chart of a method for testing a MEMS chip according to an embodiment of the present application;

图2为本申请一实施例的MEMS芯片的测试系统的结构示意图;FIG2 is a schematic diagram of the structure of a MEMS chip testing system according to an embodiment of the present application;

图3为本申请实施例提供的一种MEMS芯片、FPGA板、MCU及上位机在测试过程中的交互示意图;FIG3 is a schematic diagram of the interaction between a MEMS chip, an FPGA board, an MCU and a host computer during a test process provided by an embodiment of the present application;

图4为本申请实施例提供的另一种MEMS芯片、FPGA板、MCU及上位机在测试过程中的交互示意图;FIG4 is a schematic diagram of another interaction between a MEMS chip, an FPGA board, an MCU and a host computer during a test process provided by an embodiment of the present application;

图5为本申请一实施例的检测是否完成测试数据采集的流程示意图。FIG. 5 is a schematic diagram of a process for detecting whether test data collection is completed according to an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了解决现有技术中存在的上述问题,本申请提供一种MEMS芯片的测试方法及系统、存储介质。这几个保护主题基于同一构思,解决问题的原理基本相同或相似,各保护主题的实施方式可相互参阅,重复之处不予赘述。In order to solve the above problems existing in the prior art, the present application provides a test method and system for a MEMS chip, and a storage medium. These protection themes are based on the same concept, and the principles for solving the problems are basically the same or similar. The implementation methods of each protection theme can refer to each other, and the repeated parts will not be repeated.

为使本申请的目的、技术方案和优点更加清楚,下面将结合具体实施例及相应的附图,对本申请的技术方案进行清楚地描述。显然,下文所描述实施例仅是本申请的一部分实施例,而非全部的实施例。在不冲突的情况下,下述各个实施例及其技术特征可相互组合,且亦属于本申请的技术方案。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly described below in conjunction with specific embodiments and corresponding drawings. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments. In the absence of conflict, the following embodiments and their technical features can be combined with each other and also belong to the technical solutions of the present application.

图1为本申请一实施例的MEMS芯片的测试方法的流程示意图。该MEMS芯片的测试方法可简称为“方法”或者“测试方法”,其执行主体可以为FPGA板,该FPGA板即为集成有FPGA的测试板。所述MEMS芯片用于控制IMU或陀螺仪的多个轴,以IMU为例,MEMS芯片用于控制三个轴的加速度计和三个轴的陀螺仪执行相应操作,本申请方法即是对MEMS芯片控制这六个轴进行相应操作时的结果进行测试,以此确保MEMS芯片的性能。FIG1 is a flow chart of a test method for a MEMS chip according to an embodiment of the present application. The test method for the MEMS chip can be referred to as a “method” or a “test method”, and its execution subject can be an FPGA board, which is a test board integrated with an FPGA. The MEMS chip is used to control multiple axes of an IMU or a gyroscope. Taking the IMU as an example, the MEMS chip is used to control three-axis accelerometers and three-axis gyroscopes to perform corresponding operations. The method of the present application is to test the results of the MEMS chip controlling the six axes to perform corresponding operations, so as to ensure the performance of the MEMS chip.

如图1所示,该方法至少包括以下步骤S1至S4。As shown in FIG. 1 , the method at least includes the following steps S1 to S4 .

S1:FPGA板连接MCU,并通过自身的多个接口连接若干MEMS芯片,每一接口连接一MEMS芯片,MCU还连接上位机。S1: The FPGA board is connected to the MCU and several MEMS chips through its own multiple interfaces. Each interface is connected to a MEMS chip. The MCU is also connected to the host computer.

结合图2所示的场景,上位机连接MCU,例如两者之间通过滑环建立连接,MCU通过单个FPGA板连接多个MEMS芯片;单个FPGA板设置有多个接口,因此单个FPGA板可以实现与相同数量或者少于该数量的若干MEMS芯片之间的连接,图中仅示例性的显示六个MEMS芯片,并分别标号为1~n,对应的八个接口可以分别标号为1~n,相同标号的MEMS芯片与接口一一对应连接。应理解,其他示例可以设置单个或者两个以上的其他数量的FPGA板连接一MCU,以此适应其他数量的MEMS芯片的测试场景需求,各个FPGA板的结构可以完全相同,也可以不同,本申请并不予以限定。各个FPGA板之间互联,并据此实现数据互传和同步控制。In conjunction with the scenario shown in FIG. 2 , the host computer is connected to the MCU, for example, a connection is established between the two through a slip ring, and the MCU is connected to multiple MEMS chips through a single FPGA board; a single FPGA board is provided with multiple interfaces, so a single FPGA board can achieve connection with the same number or less than the number of MEMS chips. The figure only shows six MEMS chips by way of example, and they are numbered 1 to n respectively, and the corresponding eight interfaces can be numbered 1 to n respectively, and the MEMS chips with the same number are connected to the interfaces one by one. It should be understood that other examples can set a single or more than two other numbers of FPGA boards to connect to an MCU to meet the test scenario requirements of other numbers of MEMS chips. The structures of the various FPGA boards can be exactly the same or different, and this application does not limit them. The various FPGA boards are interconnected, and data transmission and synchronous control are achieved accordingly.

本申请将与MEMS芯片连接的接口称为第一接口、与MCU连接的接口称为第二接口。在图2所示的一示例中,FPGA板为具有独立数据处理与运算能力的测试板,其第一接口可以是LPT接口等接口,具有广泛的使用场景,第二接口包括但不限于为TCP/UDP端口,TCP为传输控制协议,UDP为用户数据报协议,于此FPGA板和MCU之间也可以并行传输相应的数据,例如同时传输日志数据及指令数据,提高传输效率。This application refers to the interface connected to the MEMS chip as the first interface and the interface connected to the MCU as the second interface. In an example shown in Figure 2, the FPGA board is a test board with independent data processing and computing capabilities, and its first interface can be an interface such as an LPT interface, which has a wide range of usage scenarios. The second interface includes but is not limited to a TCP/UDP port, TCP is the transmission control protocol, and UDP is the user datagram protocol. Corresponding data can also be transmitted in parallel between the FPGA board and the MCU, such as transmitting log data and instruction data at the same time, to improve transmission efficiency.

与FPGA板建立连接的MEMS芯片,可称为待测试芯片,于此,上位机、MCU和各个待测试芯片之间通过FPGA板即建立测试连接。The MEMS chip connected to the FPGA board can be called a chip to be tested. Here, a test connection is established between the host computer, the MCU and each chip to be tested through the FPGA board.

S2:FPGA板将接收自上位机的控制指令并行传输给各个MEMS芯片。S2: The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel.

S3:FPGA板接收各个MEMS芯片并行传输的测试数据。S3: The FPGA board receives the test data transmitted in parallel by each MEMS chip.

S4:FPGA板将测试数据发送给MCU,以由MCU对测试数据进行分析并将分析结果发送给上位机,或者,FPGA板对测试数据进行分析,并将分析结果发送给MCU以由MCU发送给上位机。S4: The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer.

在步骤S1之后、步骤S2之前,一并参阅图3和图4所示,上位机(例如通过其测试管理程序)下发控制指令给MCU,MCU转发给FPGA板,该控制指令用于对FPGA板所连接的MEMS芯片中的一个或多个进行测试,具体可以根据携带的各个第一接口的标识来区分,该控制指令是下发给哪一或哪些MEMS芯片。该控制指令可以包含指令数据,而不包含日志数据。After step S1 and before step S2, referring to FIG. 3 and FIG. 4, the host computer (for example, through its test management program) issues a control instruction to the MCU, and the MCU forwards it to the FPGA board. The control instruction is used to test one or more of the MEMS chips connected to the FPGA board. Specifically, the control instruction can be distinguished according to the identifiers of the first interfaces carried, to which MEMS chip or chips the control instruction is issued. The control instruction can contain instruction data but not log data.

各个MEMS芯片根据其接收到的控制指令执行对应的测试,并产生对应的测试数据,该测试数据包括但不限于IMU的各个轴的加速度值和角速度值;该测试数据可以表现为日志数据,然后各个MEMS芯片通过对应的第一接口将所述测试数据传输给FPGA板。步骤S2可视为FPGA板采集测试数据的步骤。在一示例中,各个第一接口可以具有缓存功能,以将对应MEMS芯片传输的测试数据进行缓存,第一接口在形成有缓存数据时向FPGA板发出提醒,FPGA板在检测到该提醒后读取所述缓存数据,以此实现各个MEMS芯片与FPGA板之间的并行传输。FPGA板可以通过第一接口的标号,来区分对应的MEMS芯片,以图2所示的场景为例,通过标号3的第一接口传输的即为标号3的MEMS芯片所产生及传输的测试数据。Each MEMS chip performs a corresponding test according to the control instruction it receives, and generates corresponding test data, which includes but is not limited to the acceleration value and angular velocity value of each axis of the IMU; the test data can be expressed as log data, and then each MEMS chip transmits the test data to the FPGA board through the corresponding first interface. Step S2 can be regarded as a step for the FPGA board to collect test data. In one example, each first interface can have a cache function to cache the test data transmitted by the corresponding MEMS chip. The first interface sends a reminder to the FPGA board when cached data is formed. After detecting the reminder, the FPGA board reads the cached data, thereby realizing parallel transmission between each MEMS chip and the FPGA board. The FPGA board can distinguish the corresponding MEMS chip by the number of the first interface. Taking the scenario shown in Figure 2 as an example, the test data generated and transmitted by the MEMS chip labeled 3 is transmitted through the first interface labeled 3.

在步骤S4的一示例中,在全部MEMS芯片的测试数据传输至FPGA板之后,FPGA板再将这些测试数据一并打包发送给MCU;在另一示例中,FPGA板可以每接收完成一个MEMS芯片的测试数据之后,就发送给MCU。In one example of step S4, after the test data of all MEMS chips are transmitted to the FPGA board, the FPGA board packages the test data together and sends them to the MCU; in another example, the FPGA board can send the test data of each MEMS chip to the MCU after receiving it.

如上所述,本申请通过FPGA板接收各个MEMS芯片产生的测试数据,FPGA板和各个MEMS芯片之间通过并行传输方式来传输测试数据,每一MEMS芯片及对应接入的第一接口可视为并行传输中的一数据通道,并行传输方式使得测试数据通过多条通道同时传输,在相同时间内可以传输较多的测试数据,从而可以降低对MEMS芯片的测试时间,提高测试效率。As described above, the present application receives the test data generated by each MEMS chip through the FPGA board, and the test data is transmitted between the FPGA board and each MEMS chip through a parallel transmission method. Each MEMS chip and the corresponding first interface can be regarded as a data channel in the parallel transmission. The parallel transmission method enables the test data to be transmitted through multiple channels at the same time. More test data can be transmitted in the same time, thereby reducing the test time of the MEMS chip and improving the test efficiency.

本申请既可以如图3所示,由FPGA板将测试数据发送给MCU以由MCU进行分析,也可以如图4所示,通过FPGA板对测试数据进行分析。MCU或者FPGA板对测试数据进行分析的具体过程及原理,可参阅现有技术,此处不再赘述。例如,将采集到的测试数据与理论计算得到的数据进行比较,当两者差值超过预设阈值后,则认为当前轴的测试不合格,上位机可以记录测试数据以及分析结果,以形成测试相关的日志数据。In this application, the FPGA board can send the test data to the MCU for analysis by the MCU as shown in Figure 3, or the FPGA board can analyze the test data as shown in Figure 4. The specific process and principle of the MCU or FPGA board analyzing the test data can be found in the prior art and will not be repeated here. For example, the collected test data is compared with the data obtained by theoretical calculation. When the difference between the two exceeds the preset threshold, it is considered that the test of the current axis is unqualified. The host computer can record the test data and analysis results to form test-related log data.

MEMS芯片所处环境的温度对测试结果的影响较为敏感,因此对MEMS芯片进行测试,可以理解为确认IMU的每个轴在不同温度下的运行数据是否符合预设要求,于此,本申请在采集测试数据之前需要检测当前温度达到预设温度。一并参阅图3和图4所示,所述方法还包括:The temperature of the environment in which the MEMS chip is located is more sensitive to the test results. Therefore, testing the MEMS chip can be understood as confirming whether the operating data of each axis of the IMU at different temperatures meets the preset requirements. Therefore, this application needs to detect whether the current temperature reaches the preset temperature before collecting test data. Referring to Figures 3 and 4, the method also includes:

S101:FPGA板设置温度传感器,各个MEMS芯片设置于FPGA板上,通过温度传感器检测各个MEMS芯片的当前温度。S101: The FPGA board is provided with a temperature sensor, each MEMS chip is provided on the FPGA board, and the current temperature of each MEMS chip is detected by the temperature sensor.

S102:FPGA板将当前温度发送给MCU,以由MCU判断是否达到预设温度、并在确定当前温度达到预设温度时产生触发指令。S102: The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature.

MCU可实时读取FPGA板的温度,在达到测试需求的预设温度后,可以进行测试。在当前温度未达到预设温度时,不产生触发指令,并继续执行S101。The MCU can read the temperature of the FPGA board in real time, and can perform the test after reaching the preset temperature required for the test. When the current temperature does not reach the preset temperature, no trigger instruction is generated, and S101 is continued to be executed.

S103:FPGA板检测是否从MCU接收到触发指令。S103: The FPGA board detects whether a trigger instruction is received from the MCU.

FPGA板响应于从MCU接收到触发指令,执行所述步骤S2,即,将从上位机接收的控制指令并行传输给各个MEMS芯片。In response to receiving the trigger instruction from the MCU, the FPGA board executes step S2, that is, transmitting the control instruction received from the host computer to each MEMS chip in parallel.

现有技术中的温度传感器设置于MCU所处平台,实际测试得到的温度相对于MEMS芯片实际所处位置的温度有所差异,从而会对测试结果产生不利影响。本申请示例将温度传感器放置于FPGA板上,FPGA板可以直接实时读取最接近各个MEMS芯片的实时温度,据此可以对实时温度进行较为准确的补偿以达到理论的预设温度,从而确保测试数据的准确性。The temperature sensor in the prior art is set on the platform where the MCU is located. The temperature obtained in the actual test is different from the temperature of the actual location of the MEMS chip, which will have an adverse effect on the test results. In this application example, the temperature sensor is placed on the FPGA board. The FPGA board can directly read the real-time temperature closest to each MEMS chip in real time, and the real-time temperature can be compensated more accurately to reach the theoretical preset temperature, thereby ensuring the accuracy of the test data.

请继续参阅图3和图4所示,所述方法还包括:Please continue to refer to FIG. 3 and FIG. 4 , the method further includes:

S104:FPGA板采集各个MEMS芯片上电时并行传输的模拟信号。S104: The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on.

S105:FPGA板将采集的模拟信号模数转换为数字信号。S105: The FPGA board converts the collected analog signal into a digital signal.

S106:FPGA板根据数字信号对各个MEMS芯片进行校准。S106: The FPGA board calibrates each MEMS chip according to the digital signal.

在测试前,本示例通过FPGA板对各个MEMS芯片进行校准,MEMS芯片在设计时可配置其内部的寄存器通过Pin脚输出模拟信号,结合图2所示的示例,可以在FPGA板上加设ADC(Analog-to-Digital Converter,模数转换器)采样芯片,各个MEMS芯片在接入FPGA板而上电后,输出不同的模拟信号,ADC采样芯片进行采样,将采样的数据发送到FPGA板,FPGA板进行实时数据分析,再通过FPGA板配置MEMS芯片内部的校准寄存器进行校准,通过对比采样的数据来确认MEMS芯片是否校准完成,这样就可以每颗MEMS芯片都输入最优的校准参数。在一示例中,本申请可以将经验值预先加载到MEMS芯片,以减少自动校准时间,提高自动校准效率;所述经验值可以为之前对各类型MEMS芯片进行校准时的历史校准参数。Before testing, this example calibrates each MEMS chip through the FPGA board. The MEMS chip can be configured to output analog signals through the pins when designing. In combination with the example shown in Figure 2, an ADC (Analog-to-Digital Converter) sampling chip can be added to the FPGA board. After each MEMS chip is connected to the FPGA board and powered on, it outputs different analog signals. The ADC sampling chip performs sampling and sends the sampled data to the FPGA board. The FPGA board performs real-time data analysis, and then configures the calibration register inside the MEMS chip through the FPGA board for calibration. By comparing the sampled data, it is confirmed whether the MEMS chip is calibrated. In this way, the optimal calibration parameters can be input for each MEMS chip. In one example, this application can pre-load the empirical value into the MEMS chip to reduce the automatic calibration time and improve the efficiency of the automatic calibration; the empirical value can be the historical calibration parameter when calibrating various types of MEMS chips before.

现有技术是通过MCU将所有MEMS芯片统一加载预先调试好的校准参数,即,所有MEMS芯片所加载的校准参数是相同的,现有技术无法根据各个MEMS芯片的差异实现针对性自动校准,难以保证各个MEMS芯片的最佳性能。本申请通过FPGA板采集各个MEMS芯片上电时并行传输的模拟信号,据此对各个MEMS芯片进行校准,可见,本申请可以根据各个MEMS芯片的差异实现针对性自动校准,保证各个MEMS芯片的最佳性能。The prior art is to load all MEMS chips with pre-debugged calibration parameters uniformly through MCU, that is, the calibration parameters loaded by all MEMS chips are the same. The prior art cannot achieve targeted automatic calibration according to the differences between each MEMS chip, and it is difficult to ensure the optimal performance of each MEMS chip. This application collects the analog signals transmitted in parallel when each MEMS chip is powered on through the FPGA board, and calibrates each MEMS chip accordingly. It can be seen that this application can achieve targeted automatic calibration according to the differences between each MEMS chip, and ensure the optimal performance of each MEMS chip.

在对各个MEMS芯片进行测试的实际场景中,本申请可以仅选取若干参数位点(又可称为“测试点”)对IMU或陀螺仪的各个轴进行测试,即,所述测试数据是对各个轴在若干参数位点进行测试得到。基于此,在FPGA板根据数字信号对各个MEMS芯片进行校准的过程中,对于相邻两个参数位点,按照时间顺序,在前的参数位点称为“前一参数位点”、在后的参数位点称为“后一参数位点”,在对后一参数位点输出模拟信号之前,根据前一参数位点产生的数字信号完成对应MEMS芯片的校准,于此,FPGA板可以实时判断MEMS芯片的状态,并实时调整校准参数,当到达固定的测试点时,就已经完成校准,从而可以确保在测试点时采集到的数据较为准确。In the actual scenario of testing each MEMS chip, the present application can only select several parameter sites (also called "test points") to test each axis of the IMU or gyroscope, that is, the test data is obtained by testing each axis at several parameter sites. Based on this, in the process of the FPGA board calibrating each MEMS chip according to the digital signal, for two adjacent parameter sites, in time order, the previous parameter site is called the "previous parameter site" and the next parameter site is called the "next parameter site". Before outputting the analog signal to the next parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the previous parameter site. Here, the FPGA board can judge the status of the MEMS chip in real time and adjust the calibration parameters in real time. When it reaches the fixed test point, the calibration has been completed, thereby ensuring that the data collected at the test point is more accurate.

在FPGA板将测试数据发送给MCU之前,或者FPGA板对测试数据进行分析之前,本申请可以通过FPGA板检测是否完成测试数据的采集,即,是否完成可对所有MEMS芯片的所有轴的测试数据的采集。若是,则执行前述步骤S4;若否,则继续采集测试数据,直至完成采集。Before the FPGA board sends the test data to the MCU, or before the FPGA board analyzes the test data, the present application can detect whether the test data collection is completed through the FPGA board, that is, whether the test data collection of all axes of all MEMS chips is completed. If yes, execute the aforementioned step S4; if no, continue to collect test data until the collection is completed.

在一示例中,FPGA板可以根据测试数据及其存储方式,来检测是否完测试数据的采集。具体地,在实际场景中,所述测试数据可以表现为封装包,所述封装包包括数据头、数据类型、来源编号、数据长度及数据内容,其中,所述来源编号表示所述测试数据来自的MEMS芯片;于此,FPGA板可以先解析封装包,以此从测试数据中获取各轴对应的数据,然后,对获取到数据的每一轴创建一存储队列,并存储对应的数据;根据所述来源编号和存储队列的数量,判断是否接收到全部MEMS芯片的测试数据。In one example, the FPGA board can detect whether the test data collection is complete based on the test data and its storage method. Specifically, in an actual scenario, the test data can be expressed as a package, which includes a data header, a data type, a source number, a data length, and a data content, wherein the source number indicates the MEMS chip from which the test data comes; here, the FPGA board can first parse the package to obtain the data corresponding to each axis from the test data, and then create a storage queue for each axis that obtains the data, and store the corresponding data; based on the source number and the number of storage queues, it is determined whether the test data of all MEMS chips has been received.

从封装包中解析得到轴1的数据,则创建存储队列1,解析得到轴2的数据,则创建存储队列2,以此类推。以MEMS芯片用于控制IMU为例,首先根据来源编号确定测试数据是否来自所有MEMS芯片,若否,则确定当前未接收到全部MEMS芯片的测试数据,若是,则检测存储队列的数量是否与IMU的总轴数相等,若相等,则确定接收到全部MEMS芯片的测试数据;若不相等,例如当前解析得到轴1~5的数据,创建了存储队列1~5,则存储队列的数量为五,小于IMU的总轴数(IMU的总轴数为六),则确定当前未接收到全部MEMS芯片的测试数据。If the data of axis 1 is parsed from the package, storage queue 1 is created; if the data of axis 2 is parsed, storage queue 2 is created, and so on. Taking the MEMS chip used to control the IMU as an example, first determine whether the test data comes from all MEMS chips based on the source number. If not, it is determined that the test data of all MEMS chips has not been received. If so, check whether the number of storage queues is equal to the total number of axes of the IMU. If they are equal, it is determined that the test data of all MEMS chips has been received; if they are not equal, for example, the data of axes 1 to 5 are currently parsed, and storage queues 1 to 5 are created, then the number of storage queues is five, which is less than the total number of axes of the IMU (the total number of axes of the IMU is six), then it is determined that the test data of all MEMS chips has not been received.

也就是说,本申请可以通过FPGA板从测试数据中获取各轴的数据,并在每获取到一轴的数据时创建一存储队列,并存储对应的数据,继而根据测试数据中携带的来源编号和存储队列的数量,来判断是否接收到全部MEMS芯片的测试数据,从而自动实现测试数据是否完成采集的确定。That is to say, the present application can obtain the data of each axis from the test data through the FPGA board, and create a storage queue and store the corresponding data each time the data of an axis is obtained, and then judge whether the test data of all MEMS chips is received based on the source number carried in the test data and the number of storage queues, thereby automatically realizing the determination of whether the test data collection is completed.

在其他示例中,本申请可以通过所接入的MEMS芯片之间的互联来自动确定测试数据是否完成采集,而无需FPGA板、MCU及上位机中任一者来执行。具体地,结合图5所示,所述方法还包括如下步骤:In other examples, the present application can automatically determine whether the test data has been collected through the interconnection between the connected MEMS chips, without the need for any of the FPGA board, MCU and host computer to execute. Specifically, in conjunction with FIG5 , the method further includes the following steps:

S11:将多个接口相连,选取其中一MEMS芯片发出包含自身标识和存储队列数量的一询问包,其中,存储队列为从测试数据中获取到对应各轴的数据时创建,且每一轴创建一存储队列;S11: Connect multiple interfaces, select one MEMS chip to send an inquiry packet containing its own identification and the number of storage queues, wherein the storage queue is created when the data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis;

S12:剩余MEMS芯片接收到询问包后,将各自当前的存储队列数量与所述其中一MEMS芯片的存储队列数量相比较;S12: After receiving the inquiry packet, the remaining MEMS chips compare their current storage queue quantities with the storage queue quantity of one of the MEMS chips;

对于剩余MEMS芯片中的任一者,检测自身当前的存储队列数量是否小于预设存储队列数量(可称为“预设存储队列数量”)。For any of the remaining MEMS chips, it is detected whether the current storage queue quantity of the chip itself is less than the preset storage queue quantity (which may be referred to as “preset storage queue quantity”).

S13:对于剩余MEMS芯片中的任一者,若当前的存储队列数量小于所述其中一MEMS芯片的存储队列数量,则发出询问包;S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of the one of the MEMS chips, an inquiry packet is issued;

S14:对于剩余MEMS芯片中的任一者,若当前的存储队列数量大于或等于所述其中一MEMS芯片的存储队列数量,则不发出询问包;S14: For any of the remaining MEMS chips, if the current storage queue quantity is greater than or equal to the storage queue quantity of the one of the MEMS chips, no inquiry packet is sent;

重复执行所述S11至S14,直至剩余MEMS芯片仅为一个;以及,Repeating S11 to S14 until only one MEMS chip remains; and,

S15:响应于接收到最后一个剩余MEMS芯片传输的封装包,则判定接收到全部MEMS芯片的测试数据,确定完成测试数据的采集。S15: In response to receiving the packaging package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips are received, and the collection of the test data is completed.

所述其中一MEMS芯片可视为已对自身的所有轴完成数据采集的MEMS芯片,其他任一MEMS芯片当前的存储队列数量小于其存储队列数量,表示该其他任一MEMS芯片未完成对所有轴数据的采集。One of the MEMS chips can be regarded as a MEMS chip that has completed data collection for all its axes. The current storage queue number of any other MEMS chip is less than its storage queue number, indicating that any other MEMS chip has not completed data collection for all axes.

本示例通过FPGA板将多个MEMS芯片互联,这些MEMS芯片之间通过比较存储队列的数量来确定是否发出询问包,据此检测出最后一个发出询问包的MEMS芯片,当检测到最后一个MEMS芯片发出的封装包(即测试数据)后,即可确定完成采集,而无需FPGA板、MCU及上位机中任一者来执行,可以减少FPGA板、MCU及上位机中任一者的计算量。In this example, multiple MEMS chips are interconnected through an FPGA board. These MEMS chips determine whether to send an inquiry packet by comparing the number of storage queues. Based on this, the last MEMS chip to send an inquiry packet is detected. When the package packet (i.e., test data) sent by the last MEMS chip is detected, it can be determined that the collection is completed without the need for any of the FPGA board, MCU, or host computer to execute it, which can reduce the amount of calculation for any of the FPGA board, MCU, or host computer.

本申请确定剩余MEMS芯片仅为一个的方式,包括但不限于如下一种:The method for determining that there is only one remaining MEMS chip in this application includes but is not limited to the following:

方式1:基于测试数据表现为封装包,且封装包包括数据头、数据类型、来源编号、数据长度及数据内容,本示例可以设置来源编号的字节,以使该来源编号表示测试数据来自的MEMS芯片以及标识最后一个剩余MEMS芯片;FPGA板根据所述来源编号确定剩余MEMS芯片仅为一个。Method 1: Based on the fact that the test data is represented by a package, and the package includes a data header, a data type, a source number, a data length, and data content, this example can set the bytes of the source number so that the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the FPGA board determines that there is only one remaining MEMS chip based on the source number.

方式2:在步骤S15之前,FPGA板获取询问包从一MEMS芯片发出至另一MEMS芯片接收到的最大时长;以及,在距离前次检测到询问包超过所述最大时长时,未接收到任一询问包,则确定剩余MEMS芯片仅为一个。Method 2: Before step S15, the FPGA board obtains the maximum time length from when an inquiry packet is sent from one MEMS chip to when it is received by another MEMS chip; and if no inquiry packet is received when the time length exceeding the maximum time length has passed since the last time an inquiry packet was detected, it is determined that there is only one MEMS chip left.

本申请实施例还提供一种MEMS芯片的测试系统,包括上位机、MCU以及FPGA板;所述FPGA板与MCU连接,FPGA板设置有多个接口,用于与若干MEMS芯片连接,每一接口连接一MEMS芯片,所述MCU与上位机连接;该测试系统的结构可参阅图2所示。其中,所述FPGA板、上位机和MCU之间通过如上任一示例的方法执行MEMS芯片的测试。The embodiment of the present application also provides a test system for a MEMS chip, including a host computer, an MCU and an FPGA board; the FPGA board is connected to the MCU, the FPGA board is provided with multiple interfaces for connecting to a number of MEMS chips, each interface is connected to a MEMS chip, and the MCU is connected to the host computer; the structure of the test system can be seen in Figure 2. Among them, the FPGA board, the host computer and the MCU perform the test of the MEMS chip through any of the above examples.

本申请实施例还提供一种存储介质,其存储有测试程序,该测试程序被处理器执行时实现如上任一示例的MEMS芯片的测试方法对应的步骤。An embodiment of the present application also provides a storage medium storing a test program, which, when executed by a processor, implements the steps corresponding to the test method of the MEMS chip in any of the above examples.

该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

由于该存储介质中所存储的程序,可以执行本申请实施例所提供的任一种MEMS芯片的测试方法中的步骤,因此,可以实现本申请实施例所提供的任一种MEMS芯片的测试方法所能实现的有益效果,详见前面的实施例。Since the program stored in the storage medium can execute the steps in any MEMS chip testing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any MEMS chip testing method provided in the embodiments of the present application can be achieved, see the previous embodiments for details.

另外,本申请实施例提供的FPGA板、通讯板、上位机及存储介质分别为完整的器件,也具备已知器件对应具有的结构,本申请仅对涉及芯片测试的部分结构元件进行示例性描述,而对其他结构元件未一一列出。例如,FPGA板可以设置有如图2所示的数据打包模块、检测模块、加速度计算模块、角速度计算模块、自动校准模块,该数据打包模块可以将测试数据或者分析结果发送给MCU,检测模块可用于对测试数据进行分析等,加速度计算模块用于测试获取MEMS芯片的各个轴的加速度值,角速度计算模块用于测试获取MEMS芯片的各个轴的角速度值,自动校准模块用于对各个MEMS芯片进行校准,这些模块在实际场景中可以通过适应硬件实现,例如两个或两个以上的模块可以实现为一个硬件,一个模块可以由两个或两个以上的硬件实现。In addition, the FPGA board, communication board, host computer and storage medium provided in the embodiment of the present application are complete devices, and also have the corresponding structure of the known devices. The present application only provides an exemplary description of some structural elements involved in chip testing, and does not list other structural elements one by one. For example, the FPGA board can be provided with a data packaging module, a detection module, an acceleration calculation module, an angular velocity calculation module, and an automatic calibration module as shown in Figure 2. The data packaging module can send test data or analysis results to the MCU, the detection module can be used to analyze the test data, etc. The acceleration calculation module is used to test and obtain the acceleration value of each axis of the MEMS chip, the angular velocity calculation module is used to test and obtain the angular velocity value of each axis of the MEMS chip, and the automatic calibration module is used to calibrate each MEMS chip. These modules can be implemented by adapting hardware in actual scenarios. For example, two or more modules can be implemented as one hardware, and one module can be implemented by two or more hardware.

以上所述仅为本申请的部分实施例,并非因此限制本申请的专利范围,对于本领域普通技术人员而言,凡是利用本说明书及附图内容所作的等效结构变换,均同理包括在本申请的专利保护范围内。The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. For ordinary technicians in this field, all equivalent structural changes made using the contents of this specification and drawings are also included in the patent protection scope of the present application.

本文采用了诸如S1、S2等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S2后执行S1等,但这些均应在本申请的保护范围之内。This document uses step codes such as S1, S2, etc., the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantial limitation on the order. When technical personnel in this field implement the specific steps, they may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.

尽管本文采用术语“第一、第二”等描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。另外,单数形式“一”、“一个”和“该”旨在也包括复数形式。术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。Although the terms "first, second", etc. are used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. In addition, the singular forms "one", "an", and "the" are intended to include plural forms as well. The terms "or" and "and/or" are interpreted as inclusive, or mean any one or any combination. Only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way, an exception to this definition will occur.

Claims (10)

1.一种MEMS芯片的测试方法,其特征在于,所述MEMS芯片用于控制惯性测量单元IMU或陀螺仪的多个轴,所述方法包括:1. A method for testing a MEMS chip, wherein the MEMS chip is used to control multiple axes of an inertial measurement unit (IMU) or a gyroscope, and the method comprises: FPGA板连接MCU,并通过自身的多个接口连接若干MEMS芯片,每一接口连接一MEMS芯片,所述MCU还连接上位机;The FPGA board is connected to the MCU and is connected to several MEMS chips through its own multiple interfaces, each interface is connected to a MEMS chip, and the MCU is also connected to the host computer; 所述FPGA板将接收自上位机的控制指令并行传输给各个MEMS芯片;The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel; 所述FPGA板接收各个MEMS芯片并行传输的测试数据;The FPGA board receives test data transmitted in parallel by each MEMS chip; 所述FPGA板将所述测试数据发送给MCU,以由所述MCU对所述测试数据进行分析并将分析结果发送给上位机,或者,所述FPGA板对所述测试数据进行分析,并将分析结果发送给MCU以由所述MCU发送给上位机。The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer. 2.根据权利要求1所述的方法,其特征在于,各个MEMS芯片设置于所述FPGA板上;所述方法还包括:2. The method according to claim 1, characterized in that each MEMS chip is arranged on the FPGA board; the method further comprises: 所述FPGA板设置温度传感器以检测各个MEMS芯片的当前温度;The FPGA board is provided with a temperature sensor to detect the current temperature of each MEMS chip; 所述FPGA板将所述当前温度发送给MCU,以由所述MCU判断是否达到预设温度、并在确定所述当前温度达到所述预设温度时产生触发指令;The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached, and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature; 所述FPGA板响应于从所述MCU接收到所述触发指令,执行所述将从上位机接收的控制指令并行传输给各个MEMS芯片的步骤。In response to receiving the trigger instruction from the MCU, the FPGA board executes the step of transmitting the control instruction received from the host computer to each MEMS chip in parallel. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 所述FPGA板采集各个MEMS芯片上电时并行传输的模拟信号;The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on; 所述FPGA板将采集的模拟信号模数转换为数字信号;The FPGA board converts the collected analog signal into a digital signal; 所述FPGA板根据所述数字信号对各个MEMS芯片进行校准。The FPGA board calibrates each MEMS chip according to the digital signal. 4.根据权利要求3所述的方法,其特征在于,所述测试数据为对所述IMU或陀螺仪的各个轴在若干参数位点进行测试得到;4. The method according to claim 3, characterized in that the test data is obtained by testing each axis of the IMU or gyroscope at several parameter locations; 所述FPGA板根据所述数字信号对各个MEMS芯片进行校准,包括:The FPGA board calibrates each MEMS chip according to the digital signal, including: 对于相邻两个所述参数位点,在对后一参数位点输出模拟信号之前,根据前一参数位点产生的数字信号完成对应MEMS芯片的校准。For two adjacent parameter sites, before outputting an analog signal to the latter parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the former parameter site. 5.根据权利要求1至4任一项所述的方法,其特征在于,所述测试数据表现为封装包,所述封装包包括数据头、数据类型、来源编号、数据长度及数据内容,所述来源编号表示所述测试数据来自的MEMS芯片;5. The method according to any one of claims 1 to 4, characterized in that the test data is expressed as a package, the package includes a data header, a data type, a source number, a data length and data content, and the source number indicates the MEMS chip from which the test data comes; 所述方法还包括:The method further comprises: 所述FPGA板从所述测试数据中获取各轴的数据;The FPGA board acquires data of each axis from the test data; 对获取到数据的每一轴创建一存储队列,并存储对应的数据;Create a storage queue for each axis that obtains data and store the corresponding data; 根据所述来源编号和所述存储队列的数量,判断是否接收到全部MEMS芯片的测试数据;以及,若是,则确定完成所述测试数据的采集。According to the source number and the number of the storage queues, it is determined whether the test data of all MEMS chips are received; and if so, it is determined that the collection of the test data is completed. 6.根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1 to 4, characterized in that the method further comprises: S11:将所述多个接口相连,选取其中一MEMS芯片发出包含自身标识和存储队列数量的一询问包,其中,所述存储队列为从所述测试数据中获取到对应各轴的数据时创建,且每一轴创建一存储队列;S11: connecting the multiple interfaces, selecting one of the MEMS chips to send an inquiry packet containing its own identification and the number of storage queues, wherein the storage queue is created when the data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis; S12:剩余MEMS芯片接收到所述询问包后,将各自当前的存储队列数量与所述其中一MEMS芯片的存储队列数量相比较;S12: After receiving the inquiry packet, the remaining MEMS chips compare their current storage queue quantities with the storage queue quantity of one of the MEMS chips; S13:对于剩余MEMS芯片中的任一者,若所述当前的存储队列数量小于所述其中一MEMS芯片的存储队列数量,则发出询问包;S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of one of the MEMS chips, an inquiry packet is issued; S14:对于剩余MEMS芯片中的任一者,若所述当前的存储队列数量大于或等于所述其中一MEMS芯片的存储队列数量,则不发出询问包;S14: For any of the remaining MEMS chips, if the current storage queue quantity is greater than or equal to the storage queue quantity of one of the MEMS chips, no inquiry packet is sent; 重复执行所述S11至S14,直至剩余MEMS芯片仅为一个;Repeating S11 to S14 until only one MEMS chip remains; 响应于接收到最后一个剩余MEMS芯片传输的封装包,则判定接收到全部MEMS芯片的测试数据,确定完成所述测试数据的采集。In response to receiving the packaging package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips are received, and it is determined that the collection of the test data is completed. 7.根据权利要求6所述的方法,其特征在于,所述封装包包括数据头、数据类型、来源编号、数据长度及数据内容,所述来源编号表示所述测试数据来自的MEMS芯片以及标识最后一个剩余MEMS芯片;所述方法还包括:7. The method according to claim 6, characterized in that the package includes a data header, a data type, a source number, a data length and data content, the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the method further comprises: 所述FPGA板根据所述来源编号确定剩余MEMS芯片仅为一个。The FPGA board determines that there is only one remaining MEMS chip based on the source number. 8.根据权利要求6所述的方法,其特征在于,所述方法还包括:8. The method according to claim 6, characterized in that the method further comprises: 获取询问包从一MEMS芯片发出至另一MEMS芯片接收到的最大时长;Obtain the maximum time duration from when an inquiry packet is sent from one MEMS chip to when it is received by another MEMS chip; 在距离前次检测到所述询问包超过所述最大时长时,未接收到任一所述询问包,则确定剩余MEMS芯片仅为一个。When the time from the last detection of the inquiry packet exceeds the maximum time length, no inquiry packet is received, and it is determined that there is only one MEMS chip left. 9.一种MEMS芯片的测试系统,其特征在于,包括上位机、MCU以及FPGA板,所述FPGA板与所述MCU连接,所述FPGA板设置有多个接口,用于与若干MEMS芯片连接,每一所述接口连接一所述MEMS芯片,所述MCU与所述上位机连接;其中,所述FPGA板、所述上位机和所述MCU之间通过如权利要求1至8中任一项所述的方法执行MEMS芯片的测试。9. A testing system for a MEMS chip, characterized in that it comprises a host computer, an MCU and a FPGA board, wherein the FPGA board is connected to the MCU, the FPGA board is provided with a plurality of interfaces for connecting to a plurality of MEMS chips, each of the interfaces is connected to a MEMS chip, and the MCU is connected to the host computer; wherein the FPGA board, the host computer and the MCU perform the test of the MEMS chip through the method described in any one of claims 1 to 8. 10.一种存储介质,其特征在于,所述存储介质上存储有测试程序,被处理器执行时实现如权利要求1至8中任一项所述的MEMS芯片的测试方法。10. A storage medium, characterized in that a test program is stored on the storage medium, and when executed by a processor, the test method of the MEMS chip according to any one of claims 1 to 8 is implemented.
CN202411310362.0A 2024-09-20 2024-09-20 MEMS chip testing method and system and storage medium Active CN118837726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411310362.0A CN118837726B (en) 2024-09-20 2024-09-20 MEMS chip testing method and system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411310362.0A CN118837726B (en) 2024-09-20 2024-09-20 MEMS chip testing method and system and storage medium

Publications (2)

Publication Number Publication Date
CN118837726A true CN118837726A (en) 2024-10-25
CN118837726B CN118837726B (en) 2024-12-17

Family

ID=93148431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411310362.0A Active CN118837726B (en) 2024-09-20 2024-09-20 MEMS chip testing method and system and storage medium

Country Status (1)

Country Link
CN (1) CN118837726B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0740247A2 (en) * 1995-04-28 1996-10-30 Hewlett-Packard Company Data stream server system
US6281818B1 (en) * 1999-05-14 2001-08-28 Diamond Systems Corporation Automatic auto-calibration system
CN105681277A (en) * 2015-12-28 2016-06-15 中国科学院计算技术研究所 Media access control method and system of nodes in full duplex wireless local area network
CN107621271A (en) * 2017-10-20 2018-01-23 北京航天控制仪器研究所 A kind of inertial platform real-time testing system and method for testing
CN110595504A (en) * 2019-09-09 2019-12-20 武汉元生创新科技有限公司 Automatic calibration method and automatic calibration system for inertial measurement unit
US20210019047A1 (en) * 2019-07-19 2021-01-21 EMC IP Holding Company LLC Method, device, and computer program product for parallel data transmission
CN113589142A (en) * 2021-07-16 2021-11-02 广东利扬芯片测试股份有限公司 Optical chip testing device and method based on FPGA
CN115656769A (en) * 2022-10-14 2023-01-31 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) FPGA multi-chip parallel test method, device and computer equipment
CN117079791A (en) * 2023-10-17 2023-11-17 深圳华声医疗技术股份有限公司 Gyroscope data acquisition method, terminal equipment and computer readable storage medium
CN117686880A (en) * 2023-12-08 2024-03-12 上海菲莱测试技术有限公司 Temperature control method, temperature control board card, equipment and medium for integrated circuit aging test
CN117740034A (en) * 2023-12-21 2024-03-22 上海径准科技有限公司 Automatic test system of optical fiber gyroscope
CN118210771A (en) * 2024-03-12 2024-06-18 北醒(北京)光子科技有限公司 Offline log processing method and device, electronic equipment and storage medium
CN118298900A (en) * 2024-03-28 2024-07-05 深圳宏芯宇存储技术有限公司 Memory chip testing method, memory chip testing device and memory medium
CN118519011A (en) * 2024-07-12 2024-08-20 星沿科技(杭州)有限责任公司 CP (control program) testing method and system of RFID (radio frequency identification) chip

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0740247A2 (en) * 1995-04-28 1996-10-30 Hewlett-Packard Company Data stream server system
US6281818B1 (en) * 1999-05-14 2001-08-28 Diamond Systems Corporation Automatic auto-calibration system
CN105681277A (en) * 2015-12-28 2016-06-15 中国科学院计算技术研究所 Media access control method and system of nodes in full duplex wireless local area network
CN107621271A (en) * 2017-10-20 2018-01-23 北京航天控制仪器研究所 A kind of inertial platform real-time testing system and method for testing
US20210019047A1 (en) * 2019-07-19 2021-01-21 EMC IP Holding Company LLC Method, device, and computer program product for parallel data transmission
CN110595504A (en) * 2019-09-09 2019-12-20 武汉元生创新科技有限公司 Automatic calibration method and automatic calibration system for inertial measurement unit
CN113589142A (en) * 2021-07-16 2021-11-02 广东利扬芯片测试股份有限公司 Optical chip testing device and method based on FPGA
CN115656769A (en) * 2022-10-14 2023-01-31 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) FPGA multi-chip parallel test method, device and computer equipment
CN117079791A (en) * 2023-10-17 2023-11-17 深圳华声医疗技术股份有限公司 Gyroscope data acquisition method, terminal equipment and computer readable storage medium
CN117686880A (en) * 2023-12-08 2024-03-12 上海菲莱测试技术有限公司 Temperature control method, temperature control board card, equipment and medium for integrated circuit aging test
CN117740034A (en) * 2023-12-21 2024-03-22 上海径准科技有限公司 Automatic test system of optical fiber gyroscope
CN118210771A (en) * 2024-03-12 2024-06-18 北醒(北京)光子科技有限公司 Offline log processing method and device, electronic equipment and storage medium
CN118298900A (en) * 2024-03-28 2024-07-05 深圳宏芯宇存储技术有限公司 Memory chip testing method, memory chip testing device and memory medium
CN118519011A (en) * 2024-07-12 2024-08-20 星沿科技(杭州)有限责任公司 CP (control program) testing method and system of RFID (radio frequency identification) chip

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ELIE H.SARRAF 等: "FPGA-based novel adaptive scheme using PN sequences for self-calibration and self-testing of MEMS-based Inertial sensors", JOUNAL OF ELECTRONIC TESTING, vol. 28, 1 November 2012 (2012-11-01), XP035137140, DOI: 10.1007/s10836-012-5336-x *
姜海洋 等: "基于FPGA的弹姿测试数字陀螺仪关键技术研究", 兵器装备工程学报, vol. 40, no. 6, 30 June 2019 (2019-06-30) *
朱贞 等: "基于FPGA和DSP的微型惯导系统", 应用光学, vol. 32, no. 4, 31 July 2011 (2011-07-31) *
贾毅婷;张东来;李铁才;王子才;张斌;: "大容量数据采集存储系统设计与实现", 测控技术, no. 04, 18 April 2019 (2019-04-18) *
黄远望;严济鸿;周伟;: "基于FPGA的数据采集测试系统设计", 现代雷达, no. 04, 15 April 2015 (2015-04-15) *

Also Published As

Publication number Publication date
CN118837726B (en) 2024-12-17

Similar Documents

Publication Publication Date Title
JP6271520B2 (en) Efficient parallel test method for time division duplex (TDD) communication systems
JP5266206B2 (en) Method for testing an embedded radio transceiver with minimal interaction between the radio transceiver and the host processor during testing
US8417856B1 (en) High speed sensor data transfer interface
CN109613412B (en) Method for analyzing STDF detection data in real time
CN108009065B (en) Method and apparatus for monitoring AXI bus
WO2008157290A1 (en) System and method for testing wireless devices
Khalilzad et al. FPGA implementation of real-time Ethernet communication using RMII interface
WO2015131697A1 (en) Method and apparatus for multiplex-frame random data verification
CN118837726A (en) MEMS chip testing method and system and storage medium
WO2017092459A1 (en) System on chip soc monitoring method, device and computer storage medium
US20030084363A1 (en) Bus interface
US9396145B1 (en) In-chip bus tracer
US9319298B2 (en) System and method for data packet transceiver testing after signal calibration and power settling to minimize test time
JP7383053B2 (en) Bus monitoring methods, storage media and electronic devices
CN114740329A (en) Data comparison device, data comparison method and chip tester
KR100925517B1 (en) Embedded device test system and method
CN117079791A (en) Gyroscope data acquisition method, terminal equipment and computer readable storage medium
KR101683962B1 (en) Method and system for high-speed real-time processing of measurement data
CN115643123A (en) Internet of things multi-network fusion experiment system and method
Bora et al. Design of a USB based multichannel, low cost data acquisition system using PIC microcontroller
Sollfrank et al. A testbed for evaluating QoS of different classes of industrial Ethernet protocols based on raspberry Pi
CZ2012264A3 (en) Connection for fast analysis of packet headers transmitted over the data bus
JP7147601B2 (en) Inspection method and inspection system
CN118330446B (en) Cross-core ASIC chip aging prediction method
KR20130131024A (en) Automation system and method for testing embedded device using independent interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant