CN118795265A - Automated testing system and method thereof - Google Patents
Automated testing system and method thereof Download PDFInfo
- Publication number
- CN118795265A CN118795265A CN202411289100.0A CN202411289100A CN118795265A CN 118795265 A CN118795265 A CN 118795265A CN 202411289100 A CN202411289100 A CN 202411289100A CN 118795265 A CN118795265 A CN 118795265A
- Authority
- CN
- China
- Prior art keywords
- test
- module
- main control
- control module
- tested
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M13/00—Testing of machine parts
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
Description
技术领域Technical Field
本发明属于游戏手柄的测试技术领域,具体涉及一种自动化测试系统及其方法。The invention belongs to the technical field of game controller testing, and in particular relates to an automatic testing system and method thereof.
背景技术Background Art
在游戏手柄领域,PCBA半成品测试主要依赖人工测试,其测试方法一般是制作一个测试治具,测试治具包含电压源、电流表以及多个按键。电压源用来提供测试电压,包含多个档位,测试过程中需要人工去改变电压档位。电流表用来测试工作电流以及充电电流,需要人工来判定电流是否符合要求。按键则用来模拟手柄上的各个按键,需要人工依次按下所有按键来判断贴片以及PCB线路是否有问题。而涉及到蓝牙等无线产品时,PCBA半成品测试时,往往是缺失射频方面的测试手段的。In the field of game controllers, PCBA semi-finished product testing mainly relies on manual testing. The testing method is generally to make a test fixture, which includes a voltage source, an ammeter and multiple buttons. The voltage source is used to provide the test voltage and contains multiple gears. The voltage gear needs to be changed manually during the test. The ammeter is used to test the working current and charging current, and it is necessary to manually determine whether the current meets the requirements. The buttons are used to simulate the buttons on the handle. It is necessary to manually press all the buttons in turn to determine whether there are problems with the patch and PCB circuit. When it comes to wireless products such as Bluetooth, the RF testing methods are often missing when testing PCBA semi-finished products.
上述现有PCBA半成品测试方法主要依赖人工进行测试,现有半成品测试方法缺失蓝牙等射频性能的测试,而射频性能是无线产品非常重要的一个评价参数。The above-mentioned existing PCBA semi-finished product testing method mainly relies on manual testing. The existing semi-finished product testing method lacks testing of RF performance such as Bluetooth, and RF performance is a very important evaluation parameter for wireless products.
发明内容Summary of the invention
本发明针对现有PCBA半成品测试时,缺少对射频方面的测试手段的技术问题,目的在于提供一种自动化测试系统及其方法。The present invention aims to provide an automated testing system and method thereof in view of the technical problem that there is a lack of testing means for radio frequency when testing existing PCBA semi-finished products.
为了解决前述技术问题,本发明的第一方面提供一种自动化测试系统,所述自动化测试系统包括测试治具,所述测试治具上设置有若干测试针以及用于定位被测单元的定位装置;In order to solve the aforementioned technical problem, a first aspect of the present invention provides an automated testing system, the automated testing system comprising a test fixture, the test fixture being provided with a plurality of test needles and a positioning device for positioning a unit under test;
所述自动化测试系统还包括:The automated testing system further comprises:
主控模块,所述主控模块用于测试任务调度及测试数据处理;A main control module, which is used for test task scheduling and test data processing;
通讯模块,所述通讯模块分别连接所述主控模块和所述测试治具上的所述测试针,由所述通讯模块将所述主控模块与被测单元建立通讯;A communication module, the communication module is connected to the main control module and the test pins on the test fixture respectively, and the communication module establishes communication between the main control module and the unit under test;
测试模块,所述测试模块分别与被测单元以及所述主控模块连接,通过所述测试模块对被测单元进行一个或多个测试项目的测试;A test module, wherein the test module is connected to the unit under test and the main control module respectively, and one or more test items are tested on the unit under test through the test module;
人机交互模块,所述人机交互模块用于可视化人机交互,所述人机交互模块连接所述主控模块。A human-computer interaction module, the human-computer interaction module is used for visualizing human-computer interaction, and the human-computer interaction module is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述人机交互模块内嵌于上位机上;Optionally, in the aforementioned automated testing system, the human-computer interaction module is embedded in a host computer;
所述自动化测试系统还包括:The automated testing system further comprises:
USB模块,所述USB模块用于与所述上位机连接,所述USB模块连接所述主控模块,由所述USB模块将所述主控模块与所述上位机建立通讯。A USB module is used to connect to the host computer, the USB module is connected to the main control module, and the USB module establishes communication between the main control module and the host computer.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
数据存储模块,所述数据存储模块用于存储测试数据,所述数据存储模块连接所述主控模块。A data storage module, wherein the data storage module is used to store test data and is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
提示模块,所述提示模块用于提醒测试项目结果,所述提示模块连接所述主控模块。A prompt module, the prompt module is used to remind the test item results, and the prompt module is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
射频测试模块,所述射频测试模块用于与被测单元建立无线连接,所述射频测试模块连接所述主控模块。A radio frequency test module, the radio frequency test module is used to establish a wireless connection with the unit under test, and the radio frequency test module is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
电源模块,所述电源模块用于为被测单元提供若干种电源,所述电源模块通过所述测试治具上的所述测试针连接被测单元的电源输入端,所述电源模块的控制端连接所述主控模块;A power module, the power module is used to provide several power supplies for the unit under test, the power module is connected to the power input terminal of the unit under test through the test pin on the test fixture, and the control terminal of the power module is connected to the main control module;
电流测试模块,所述电流测试模块用于测量被测单元的电流,所述电流测试模块连接所述主控模块。A current testing module, the current testing module is used to measure the current of the unit under test, and the current testing module is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述电流测试模块包括:Optionally, in the aforementioned automated testing system, the current testing module includes:
电流采样电阻,所述电流采样电阻串联在所述电源模块与被测单元的供电路径上;A current sampling resistor, wherein the current sampling resistor is connected in series on a power supply path between the power module and the unit under test;
一个或多个串联的运算放大单元,一个或多个串联的所述运算放大单元的输入端连接所述电流采样电阻,输出端连接所述主控模块。One or more operational amplifier units are connected in series, and the input end of the one or more operational amplifier units connected in series is connected to the current sampling resistor, and the output end is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
数字量测试模块,所述数字量测试模块用于测量被测单元的数字量参数,所述数字量测试模块具有若干模拟开关芯片,若干所述模拟开关芯片分别通过测试治具上的所述测试针连接被测单元,所述模拟开关芯片的控制端连接所述主控模块。A digital quantity test module, which is used to measure the digital quantity parameters of the unit under test. The digital quantity test module has several analog switch chips, and the several analog switch chips are respectively connected to the unit under test through the test pins on the test fixture, and the control end of the analog switch chip is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
模拟量测试模块,所述模拟量测试模块用于测量被测单元的模拟量参数,所述模拟量测试模块具有若干数模转换芯片,若干所述数模转换芯片分别通过测试治具上的所述测试针连接被测单元,所述数模转换芯片的控制端连接所述主控模块。An analog quantity test module is used to measure the analog quantity parameters of the unit under test. The analog quantity test module has a plurality of digital-to-analog conversion chips, and the plurality of digital-to-analog conversion chips are respectively connected to the unit under test through the test pins on the test fixture, and the control end of the digital-to-analog conversion chip is connected to the main control module.
可选地,在如前所述的自动化测试系统中,所述自动化测试系统还包括:Optionally, in the automated testing system as described above, the automated testing system further includes:
马达测试模块,所述马达测试模块用于测量被测单元的马达转动参数,所述马达测试模块具有若干马达以及检测各马达转速的马达转速检测单元,若干所述马达的驱动端分别通过测试治具上的所述测试针连接被测单元,若干所述马达转速检测单元分别连接所述主控模块。A motor test module, which is used to measure the motor rotation parameters of the unit under test. The motor test module has several motors and a motor speed detection unit for detecting the speed of each motor. The driving ends of several of the motors are respectively connected to the unit under test through the test pins on the test fixture, and the several motor speed detection units are respectively connected to the main control module.
为了解决前述技术问题,本发明的第二方面提供一种自动化测试方法,所述自动化测试方法包括:In order to solve the above technical problems, the second aspect of the present invention provides an automated testing method, the automated testing method comprising:
主控模块通过通讯模块与被测单元建立通讯,所述测试模块对被测单元进行一个或多个测试项目的测试,所述测试模块或所述被测单元将测试数据发送给主控模块,由主控模块判断测试数据是否在预设的范围内,若在预设的范围内,则测试项目结果为通过,否则为不通过,通过人机交互模块进行展示。The main control module establishes communication with the unit under test through the communication module. The test module tests one or more test items on the unit under test. The test module or the unit under test sends the test data to the main control module, and the main control module determines whether the test data is within a preset range. If it is within the preset range, the test item result is passed, otherwise it is failed and displayed through the human-computer interaction module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
主控模块通过通讯模块与被测单元建立通讯,获取被测单元的射频芯片的物理地址并传输给射频测试模块,使射频测试模块与射频芯片进行配对并建立无线连接,从而实现主控模块与被测单元建立无线连接;The main control module establishes communication with the unit under test through the communication module, obtains the physical address of the RF chip of the unit under test and transmits it to the RF test module, so that the RF test module and the RF chip are paired and a wireless connection is established, thereby realizing a wireless connection between the main control module and the unit under test;
主控模块通过通讯模块发送射频测试指令给被测单元,使被测单元以设定的强度和频率通过无线方式发送射频测试数据,主控模块通过射频测试模块接收射频测试数据,并获取射频测试数据的信号强度和信号频率;The main control module sends a radio frequency test instruction to the unit under test through the communication module, so that the unit under test sends radio frequency test data wirelessly at the set strength and frequency. The main control module receives the radio frequency test data through the radio frequency test module and obtains the signal strength and signal frequency of the radio frequency test data.
主控模块将获取的信号强度和预设的信号强度范围进行比较,将获取的信号频率和预设的信号频率范围进比较,若都在预设的范围内,则射频测试项目结果为通过,否则射频测试项目结果为不通过,主控模块将射频测试项目结果通过人机交互模块进行展示。The main control module compares the acquired signal strength with the preset signal strength range, and compares the acquired signal frequency with the preset signal frequency range. If both are within the preset range, the RF test item result is passed; otherwise, the RF test item result is failed. The main control module displays the RF test item result through the human-computer interaction module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
主控模块通过电源模块将被测单元的供电电压依次切换为电源模式中的一种,主控模块通过通讯模块与被测单元建立通讯,使被测单元进入对应的电流模式;The main control module switches the power supply voltage of the unit under test to one of the power supply modes in sequence through the power supply module, and the main control module establishes communication with the unit under test through the communication module, so that the unit under test enters the corresponding current mode;
主控模块通过电流测试模块获取被测单元的电流,将电流与预设的电流范围进行比较,若在预设的电流范围内,则电流测试项目结果为通过,否则电流测试项目结果为不通过,主控模块将电流测试项目结果通过人机交互模块进行展示;The main control module obtains the current of the unit under test through the current test module, and compares the current with the preset current range. If it is within the preset current range, the result of the current test item is passed, otherwise the result of the current test item is failed. The main control module displays the result of the current test item through the human-computer interaction module;
其中,所述电源模式为若干种,所述电流模式至少包括充电模式、休眠模式和工作模式中的一种或多种。There are several power supply modes, and the current mode includes at least one or more of a charging mode, a sleep mode and a working mode.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
主控模块向数字量测试模块发送导通指令,使若干模拟开关芯片的各个通道逐次导通;The main control module sends a conduction instruction to the digital quantity test module, so that each channel of a number of analog switch chips is turned on one by one;
被测单元检测按键是否被按下,并将键值通过通讯模块传输至主控模块;The unit under test detects whether the key is pressed and transmits the key value to the main control module through the communication module;
主控模块通过键值判断是否所有按键均被按下,若所有按键均有被按下,则按键测试项目结果为通过,否则按键测试项目结果为不通过,主控模块将按键测试项目结果以及不通过的按键通过人机交互模块进行展示。The main control module determines whether all buttons are pressed by key values. If all buttons are pressed, the button test item result is passed, otherwise the button test item result is failed. The main control module displays the button test item result and the failed buttons through the human-computer interaction module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
主控模块向模拟量测试模块发送模拟量指令,使各数模转换芯片输出不同的电压;The main control module sends analog quantity instructions to the analog quantity test module, so that each digital-to-analog conversion chip outputs different voltages;
被测单元通过自带的模数转换单元来检测数模转换芯片输出的电压,并通过通讯模块传输至主控模块;The unit under test detects the voltage output by the digital-to-analog conversion chip through its own analog-to-digital conversion unit, and transmits it to the main control module through the communication module;
主控模块将模拟量指令的各电压与被测单元传输的各电压进行比较,若电压差在预设的压差范围内,则模拟量测试项目结果为通过,否则模拟量测试项目结果为不通过,主控模块将模拟量测试项目结果以及不通过的模拟量通过人机交互模块进行展示。The main control module compares the voltages of the analog quantity instruction with the voltages transmitted by the unit under test. If the voltage difference is within the preset voltage difference range, the result of the analog quantity test item is passed, otherwise the result of the analog quantity test item is failed. The main control module displays the result of the analog quantity test item and the failed analog quantity through the human-computer interaction module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
主控模块将马达测试指令通过通讯模块传输给被测单元;The main control module transmits the motor test instruction to the unit under test through the communication module;
被测单元接收并向各马达发送马达测试指令,使马达动作;The unit under test receives and sends motor test instructions to each motor to cause the motor to operate;
主控模块通过各马达转速检测单元检测各马达的转速,将转速与预设的转速范围进行比较,若在预设的转速范围内,则马达测试项目结果为通过,否则马达测试项目结果为不通过,主控模块将马达测试项目结果以及不通过的马达位置通过人机交互模块进行展示。The main control module detects the speed of each motor through each motor speed detection unit, and compares the speed with the preset speed range. If it is within the preset speed range, the motor test item result is passed, otherwise the motor test item result is failed. The main control module displays the motor test item result and the failed motor position through the human-computer interaction module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
在所有的测试项目都完成后,若所有的测试项目结果都为通过,则认为被测单元的测试结果为测试通过,否则认为被测单元的测试结果为测试不通过,主控模块将被测单元的测试结果通过人机交互模块进行展示。After all test items are completed, if all test item results are passed, the test result of the unit under test is considered to be passed, otherwise the test result of the unit under test is considered to be failed, and the main control module displays the test result of the unit under test through the human-computer interaction module.
可选地,在如前所述的自动化测试系统中,当被测单元的测试结果为不通过时,主控模块将不通过的测试项目通过人机交互模块进行显著展示,主控模块还通过提示模块进行提醒。Optionally, in the aforementioned automated test system, when the test result of the unit under test is failed, the main control module prominently displays the failed test items through the human-computer interaction module, and the main control module also reminds through the prompt module.
可选地,在如前所述的自动化测试方法中,所述自动化测试方法还包括:Optionally, in the aforementioned automated testing method, the automated testing method further comprises:
用户通过人机交互模块设置各测试项目的测试参数、配置测试项目、保存模板和调用模板;The user sets the test parameters of each test item, configures the test item, saves the template and calls the template through the human-computer interaction module;
其中,保存模板用于将当前已经配置好的测试项目以及对应的测试参数作为一个模板进行保存,以用于后续调用。The save template is used to save the currently configured test items and corresponding test parameters as a template for subsequent calls.
本发明的积极进步效果在于:The positive and progressive effects of the present invention are:
1、现有半成品测试方法缺失蓝牙等射频性能的测试,而射频性能是无线产品非常重要的一个评价参数。本发明能够从功率和频偏两个重要维度对产品的射频性能进行测试和评估,可以提高产品的稳定性。1. The existing semi-finished product testing method lacks the test of Bluetooth and other RF performance, which is a very important evaluation parameter of wireless products. The present invention can test and evaluate the RF performance of the product from two important dimensions: power and frequency deviation, which can improve the stability of the product.
2、现有PCBA半成品测试方法需要工人不停的按下和拨动各种开关,效率比较低,工人也容易疲劳,相应地提高了成本。本发明使用自动化测试系统及其方法进行测试,可以减少人工操作,降低成本。2. The existing PCBA semi-finished product testing method requires workers to constantly press and toggle various switches, which is inefficient and easily fatigued, and the cost is increased accordingly. The present invention uses an automated testing system and method for testing, which can reduce manual operations and reduce costs.
3、现有PCBA半成品测试方法在测试过程中需要人工来判定一些参数是否符合要求,比较容易出现差错,也比较容易出现主观意识,导致判断出错。本发明由自动化测试系统自动判断测试参数是否通过,可以减少人工误判,提高产品合格率,降低返修率。3. The existing PCBA semi-finished product testing method requires manual work to determine whether some parameters meet the requirements during the testing process, which is prone to errors and subjective consciousness, resulting in misjudgment. The present invention uses an automated testing system to automatically determine whether the test parameters pass, which can reduce manual misjudgment, improve product qualification rate, and reduce the return rate.
4、本发明运用自动化技术来提高测试效率以及测试的全面性,降低生产成本,提升产品良率和稳定性。4. The present invention uses automation technology to improve test efficiency and comprehensiveness, reduce production costs, and improve product yield and stability.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
参照附图,本发明的公开内容将更加显然。应当了解,这些附图仅仅用于说明的目的,而并非意在对本发明的保护范围构成限制。图中:The disclosure of the present invention will become more apparent with reference to the accompanying drawings. It should be understood that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In the drawings:
图1为本发明自动化测试系统中各模块的一种连接示意图;FIG1 is a schematic diagram of a connection of modules in an automated testing system of the present invention;
图2为本发明自动化测试方法的一种方法流程图;FIG2 is a flow chart of an automated testing method of the present invention;
图3为本发明的一种人机交互界面示意图。FIG. 3 is a schematic diagram of a human-computer interaction interface of the present invention.
具体实施方式DETAILED DESCRIPTION
以下通过特定的具体示例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。It should be noted that the following embodiments and features therein may be combined with each other if there is no conflict.
在本发明的描述中,需要说明的是,对于方位词,如有术语“外侧”,“中段”、“内”、“外”等指示方位和位置关系为基于附图所示的方位或位置关系,仅是为了便于叙述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定方位构造和操作,不能理解为限制本发明的具体保护范围。In the description of the present invention, it should be noted that directional words such as the terms "outside", "middle", "inside", "outside", etc., which indicate directions and positional relationships, are based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and cannot be understood as limiting the specific protection scope of the present invention.
此外,如有术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或隐含指明技术特征的数量。由此,限定有“第一”、“第二”特征可以明示或者隐含包括一个或者多个该特征,在本发明描述中,“数个”、“若干”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Therefore, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features. In the description of the present invention, "several" and "a number" mean two or more, unless otherwise clearly and specifically defined.
参照图1,本发明实施例提供一种自动化测试系统,该自动化测试系统包括测试治具10、主控模块20、通讯模块30、若干测试模块以及人机交互模块40,其中,测试模块包括射频测试模块51、电流测试模块52、数字量测试模块53、模拟量测试模块54和马达测试模块55中的一种或多种的组合。1 , an embodiment of the present invention provides an automated testing system, which includes a test fixture 10, a main control module 20, a communication module 30, a plurality of test modules and a human-computer interaction module 40, wherein the test module includes a combination of one or more of a radio frequency test module 51, a current test module 52, a digital quantity test module 53, an analog quantity test module 54 and a motor test module 55.
测试治具10为被测单元90和自动化测试系统中的需要与被测单元90连接的其他模块的连接装置。测试治具10上设置有若干测试针以及用于定位被测单元90的定位装置。测试针优选采用弹针。The test fixture 10 is a connection device between the unit under test 90 and other modules in the automated test system that need to be connected to the unit under test 90. The test fixture 10 is provided with a plurality of test pins and a positioning device for positioning the unit under test 90. The test pins are preferably spring pins.
被测单元90上各个功能模块都存在一些的测试点,被测单元90通过测试治具10上的定位装置被固定在测试治具10上,使得测试针和被测单元90的测试点一一对齐并接触,形成电性连接。Each functional module on the unit under test 90 has some test points. The unit under test 90 is fixed on the test fixture 10 by a positioning device on the test fixture 10, so that the test needles and the test points of the unit under test 90 are aligned and contacted one by one to form an electrical connection.
其他模块可通过导线和测试治具10上的测试针电性连接,使得自动化测试系统中的需要与被测单元90连接的各个模块和被测单元90上的各个功能模块一一对应电性连接。Other modules can be electrically connected to the test pins on the test fixture 10 through wires, so that each module in the automated test system that needs to be connected to the unit under test 90 and each functional module on the unit under test 90 are electrically connected one-to-one.
主控模块20用于测试任务调度及测试数据处理。The main control module 20 is used for test task scheduling and test data processing.
通讯模块30通过导线和测试治具10上的测试针电性连接,通讯模块30用于与被测单元90进行通讯,传输测试数据和测试指令等。通讯模块30优选采用串口通讯。The communication module 30 is electrically connected to the test pins on the test fixture 10 through wires, and is used to communicate with the unit under test 90 to transmit test data and test instructions, etc. The communication module 30 preferably uses serial port communication.
通讯模块30还连接主控模块20,由通讯模块30将主控模块20与被测单元90建立通讯。The communication module 30 is also connected to the main control module 20 , and the communication module 30 establishes communication between the main control module 20 and the unit under test 90 .
人机交互模块40用于可视化人机交互,用户可通过人机交互模块40进行测试参数配置与测试项目配置、测试结果的显示以及保存和调用模板等。人机交互模块40连接主控模块20。The human-computer interaction module 40 is used for visual human-computer interaction. The user can configure test parameters and test items, display test results, and save and call templates through the human-computer interaction module 40 . The human-computer interaction module 40 is connected to the main control module 20 .
测试模块分别与被测单元以及主控模块连接,通过测试模块对被测单元进行一个或多个测试项目的测试。The test module is connected to the unit under test and the main control module respectively, and one or more test items are tested on the unit under test through the test module.
在一些实施例中,人机交互模块40内嵌于上位机42上。In some embodiments, the human-computer interaction module 40 is embedded in the host computer 42 .
此时,人机交互模块40可认为是安装于上位机上的应用程序。At this time, the human-computer interaction module 40 can be considered as an application program installed on the host computer.
自动化测试系统还包括USB模块41,USB模块41用于与上位机通信,进行数据传输,USB模块41连接主控模块20,由USB模块41将主控模块20与上位机建立通讯。The automated testing system further includes a USB module 41 , which is used to communicate with a host computer and perform data transmission. The USB module 41 is connected to the main control module 20 , and the USB module 41 establishes communication between the main control module 20 and the host computer.
在一些实施例中,自动化测试系统还包括数据存储模块60,数据存储模块60用于存储测试数据,数据存储模块60连接主控模块20。In some embodiments, the automated testing system further includes a data storage module 60 , which is used to store test data. The data storage module 60 is connected to the main control module 20 .
在一些实施例中,自动化测试系统还包括提示模块70,提示模块70用于提醒测试项目结果,提示模块70连接主控模块20。In some embodiments, the automated testing system further includes a prompt module 70 , which is used to remind test item results, and the prompt module 70 is connected to the main control module 20 .
提示模块70可以采用声音提示模块、声光提示模块等。The prompt module 70 may be a sound prompt module, a sound and light prompt module, or the like.
提示模块70优选采用蜂鸣器模块,当测试不通过时,可通过蜂鸣器模块来提醒使用者测试项目结果为不通过。The prompt module 70 is preferably a buzzer module. When the test fails, the buzzer module can be used to remind the user that the test item result is failed.
在一些实施例中,自动化测试系统还包括射频测试模块51,射频测试模块51用于与被测单元90建立无线连接,射频测试模块51用来测试被测单元90的蓝牙、2.4G和5G等中的至少一种无线通讯的射频性能,射频测试模块51连接主控模块20。In some embodiments, the automated testing system also includes a RF testing module 51, which is used to establish a wireless connection with the unit under test 90. The RF testing module 51 is used to test the RF performance of at least one wireless communication such as Bluetooth, 2.4G and 5G of the unit under test 90. The RF testing module 51 is connected to the main control module 20.
在一些实施例中,自动化测试系统还包括电源模块80和电流测试模块52。In some embodiments, the automated testing system further includes a power supply module 80 and a current testing module 52 .
电源模块80用于为被测单元90提供若干种电源,电源模块80包含休眠模式对应的电源、充电模式对应的电源以及工作模式对应的电源。例如至少提供3.7V和5V两种电源,并可由主控模块20自由切换。电源模块80通过测试治具10上的测试针连接被测单元90的电源输入端,电源模块80的控制端连接主控模块20。The power module 80 is used to provide several power supplies for the unit under test 90. The power module 80 includes a power supply corresponding to the sleep mode, a power supply corresponding to the charging mode, and a power supply corresponding to the working mode. For example, at least two power supplies of 3.7V and 5V are provided, and can be freely switched by the main control module 20. The power module 80 is connected to the power input terminal of the unit under test 90 through the test pin on the test fixture 10, and the control terminal of the power module 80 is connected to the main control module 20.
电流测试模块52用于测量被测单元90的电流如工作电流、充电电流和休眠电流等,电流测试模块52连接主控模块20。The current testing module 52 is used to measure the current of the unit under test 90 , such as the working current, the charging current and the sleep current, etc. The current testing module 52 is connected to the main control module 20 .
在一些实施例中,电流测试模块52包括电流采样电阻和一个或多个串联的运算放大单元。In some embodiments, the current testing module 52 includes a current sampling resistor and one or more operational amplifier units connected in series.
电流采样电阻串联在电源模块80与被测单元90的供电路径上。一个或多个串联的运算放大单元的输入端连接电流采样电阻,输出端连接主控模块20。The current sampling resistor is connected in series on the power supply path between the power module 80 and the unit under test 90. The input end of one or more serially connected operational amplifier units is connected to the current sampling resistor, and the output end is connected to the main control module 20.
通过电流采样电阻采样得到电压信号,通过一个或多个串联的运算放大单元将电压信号进行放大后,传输至主控模块20。主控模块20通过电压信号计算之后得到对应的电流。The voltage signal is obtained by sampling the current sampling resistor, and the voltage signal is amplified by one or more serially connected operational amplifier units and then transmitted to the main control module 20. The main control module 20 obtains the corresponding current after calculating the voltage signal.
在一些实施例中,自动化测试系统还包括数字量测试模块53,数字量测试模块53用于测量被测单元90的数字量参数如按键等,数字量测试模块53具有若干模拟开关芯片,若干模拟开关芯片分别通过测试治具10上的测试针连接被测单元90,模拟开关芯片的控制端连接主控模块20。In some embodiments, the automated testing system also includes a digital quantity testing module 53, which is used to measure digital quantity parameters of the unit under test 90, such as buttons, etc. The digital quantity testing module 53 has a number of analog switch chips, and the several analog switch chips are respectively connected to the unit under test 90 through the test pins on the test fixture 10, and the control end of the analog switch chip is connected to the main control module 20.
通过上述设计后,主控模块20驱动模拟开关芯片的导通或断开,等同于被测单元90上的数字量参数如按键导通或断开。With the above design, the main control module 20 drives the analog switch chip to be turned on or off, which is equivalent to the digital quantity parameter on the unit under test 90, such as the key being turned on or off.
在一些实施例中,自动化测试系统还包括模拟量测试模块54,模拟量测试模块54用于测量被测单元90的模拟量参数如摇杆和扳机等,模拟量测试模块54具有若干数模转换芯片,若干数模转换芯片分别通过测试治具10上的测试针连接被测单元90,数模转换芯片的控制端连接主控模块20。In some embodiments, the automated testing system also includes an analog quantity testing module 54, which is used to measure analog quantity parameters of the unit under test 90, such as a joystick and a trigger, etc. The analog quantity testing module 54 has a plurality of digital-to-analog conversion chips, and the plurality of digital-to-analog conversion chips are respectively connected to the unit under test 90 through the test pins on the test fixture 10, and the control end of the digital-to-analog conversion chip is connected to the main control module 20.
通过上述设计后,主控模块20驱动数模转换芯片输出不同的电压,等同于被测单元90上的模拟量参数如摇杆和扳机等拨动到不同位置。With the above design, the main control module 20 drives the digital-to-analog conversion chip to output different voltages, which is equivalent to the analog parameters on the unit under test 90, such as the joystick and trigger, being moved to different positions.
在一些实施例中,自动化测试系统还包括马达测试模块55,马达测试模块55用于测量被测单元90的马达转动参数,马达测试模块55具有若干马达以及检测各马达转速的马达转速检测单元,若干马达的驱动端分别通过测试治具10上的测试针连接被测单元90,若干马达转速检测单元分别连接主控模块20。In some embodiments, the automated testing system also includes a motor testing module 55, which is used to measure the motor rotation parameters of the unit under test 90. The motor testing module 55 has several motors and a motor speed detection unit for detecting the speed of each motor. The driving ends of the several motors are respectively connected to the unit under test 90 through the test pins on the test fixture 10, and the several motor speed detection units are respectively connected to the main control module 20.
通过上述设计后,被测单元90可驱动各马达转动至目标转速。With the above design, the unit under test 90 can drive each motor to rotate to a target speed.
本发明实施例提供一种自动化测试方法,该自动化测试方法采用本发明上述各实施例提供的自动化测试系统进行一个或多个测试项目的测试。An embodiment of the present invention provides an automated testing method. The automated testing method uses the automated testing system provided by the above embodiments of the present invention to test one or more test items.
该自动化测试方法包括主控模块通过通讯模块与被测单元建立通讯,测试模块对被测单元进行一个或多个测试项目的测试,测试模块或被测单元将测试数据发送给主控模块,由主控模块判断测试数据是否在预设的范围内,若在预设的范围内,则测试项目结果为通过,否则为不通过,通过人机交互模块进行展示。The automated testing method includes a main control module establishing communication with a unit under test through a communication module, a test module performing one or more test items on the unit under test, the test module or the unit under test sending test data to the main control module, and the main control module determining whether the test data is within a preset range. If so, the test item result is passed, otherwise, it is failed and displayed through a human-computer interaction module.
在一些实施例中,自动化测试方法包括进行射频测试项目的测试:In some embodiments, the automated testing method includes performing a test of a radio frequency test item:
S11,主控模块20通过通讯模块30与被测单元90建立通讯,获取被测单元90的射频芯片的物理地址并传输给射频测试模块51,使射频测试模块51与射频芯片进行配对并建立无线连接,从而实现主控模块20与被测单元90建立无线连接。S11, the main control module 20 establishes communication with the unit under test 90 through the communication module 30, obtains the physical address of the RF chip of the unit under test 90 and transmits it to the RF test module 51, so that the RF test module 51 is paired with the RF chip and establishes a wireless connection, thereby realizing the establishment of a wireless connection between the main control module 20 and the unit under test 90.
S12,主控模块20通过通讯模块30发送射频测试指令给被测单元90,使被测单元90以设定的强度和频率通过无线方式发送射频测试数据,主控模块20通过射频测试模块51接收射频测试数据,并获取射频测试数据的信号强度和信号频率。S12, the main control module 20 sends a radio frequency test instruction to the unit under test 90 through the communication module 30, so that the unit under test 90 sends radio frequency test data wirelessly at the set strength and frequency. The main control module 20 receives the radio frequency test data through the radio frequency test module 51 and obtains the signal strength and signal frequency of the radio frequency test data.
S13,主控模块20将获取的信号强度和预设的信号强度范围进行比较,将获取的信号频率和预设的信号频率范围进比较,若都在预设的范围内,则射频测试项目结果为通过,否则射频测试项目结果为不通过,主控模块20将射频测试项目结果通过人机交互模块40进行展示。S13, the main control module 20 compares the acquired signal strength with the preset signal strength range, and compares the acquired signal frequency with the preset signal frequency range. If both are within the preset range, the RF test item result is passed; otherwise, the RF test item result is failed. The main control module 20 displays the RF test item result through the human-computer interaction module 40.
在一些实施例中,自动化测试方法包括进行电流测试项目的测试:In some embodiments, the automated testing method includes performing a test of a current test item:
S21,主控模块20通过电源模块80将被测单元90的供电电压依次切换为电源模式中的一种,主控模块20通过通讯模块30与被测单元90建立通讯,使被测单元90进入对应的电流模式。S21, the main control module 20 switches the power supply voltage of the unit under test 90 to one of the power modes in sequence through the power module 80, and the main control module 20 establishes communication with the unit under test 90 through the communication module 30, so that the unit under test 90 enters the corresponding current mode.
其中,电源模式为若干种,电流模式至少包括充电模式、休眠模式和工作模式中的一种或多种。There are several power supply modes, and the current mode includes at least one or more of a charging mode, a sleep mode and a working mode.
S22,主控模块20通过电流测试模块52获取被测单元90的电流,将电流与预设的电流范围进行比较,若在预设的电流范围内,则电流测试项目结果为通过,否则电流测试项目结果为不通过,主控模块20将电流测试项目结果通过人机交互模块40进行展示。S22, the main control module 20 obtains the current of the unit under test 90 through the current test module 52, and compares the current with the preset current range. If it is within the preset current range, the current test item result is passed, otherwise the current test item result is failed, and the main control module 20 displays the current test item result through the human-computer interaction module 40.
在一些实施例中,自动化测试方法包括进行按键测试项目的测试:In some embodiments, the automated testing method includes performing a test on a key test item:
S31,主控模块20向数字量测试模块53发送导通指令,使若干模拟开关芯片的各个通道逐次导通。S31, the main control module 20 sends a conduction instruction to the digital quantity test module 53, so that the channels of the plurality of analog switch chips are successively turned on.
S32,被测单元90检测按键是否被按下,并将键值通过通讯模块30传输至主控模块20。S32 , the tested unit 90 detects whether the key is pressed, and transmits the key value to the main control module 20 through the communication module 30 .
S33,主控模块20通过键值判断是否所有按键均被按下,若所有按键均有被按下,则按键测试项目结果为通过,否则按键测试项目结果为不通过,主控模块20将按键测试项目结果以及不通过的按键通过人机交互模块40进行展示。S33, the main control module 20 determines whether all the keys are pressed through the key values. If all the keys are pressed, the key test item result is passed, otherwise the key test item result is failed. The main control module 20 displays the key test item result and the failed keys through the human-computer interaction module 40.
在一些实施例中,自动化测试方法包括进行模拟量测试项目的测试:In some embodiments, the automated testing method includes performing a test of a simulated quantity test item:
S41,主控模块20向模拟量测试模块54发送模拟量指令,使各数模转换芯片输出不同的电压。S41, the main control module 20 sends an analog quantity instruction to the analog quantity test module 54, so that each digital-to-analog conversion chip outputs a different voltage.
S42,被测单元90通过自带的模数转换单元来检测数模转换芯片输出的电压,并通过通讯模块30传输至主控模块20。S42 , the unit under test 90 detects the voltage output by the digital-to-analog conversion chip through its own analog-to-digital conversion unit, and transmits it to the main control module 20 through the communication module 30 .
S43,主控模块20将模拟量指令的各电压与被测单元90传输的各电压进行比较,若电压差在预设的压差范围内,则模拟量测试项目结果为通过,否则模拟量测试项目结果为不通过,主控模块20将模拟量测试项目结果以及不通过的模拟量通过人机交互模块40进行展示。S43, the main control module 20 compares the voltages of the analog quantity instruction with the voltages transmitted by the unit under test 90. If the voltage difference is within the preset voltage difference range, the result of the analog quantity test item is passed; otherwise, the result of the analog quantity test item is failed. The main control module 20 displays the result of the analog quantity test item and the failed analog quantity through the human-computer interaction module 40.
在一些实施例中,自动化测试方法包括进行马达测试项目的测试:In some embodiments, the automated testing method includes performing a test of a motor test item:
S51,主控模块20将马达测试指令通过通讯模块30传输给被测单元90。S51 , the main control module 20 transmits the motor test instruction to the unit under test 90 through the communication module 30 .
S52,被测单元90接收并向各马达发送马达测试指令,使马达动作。S52, the unit under test 90 receives and sends a motor test instruction to each motor to activate the motor.
S53,主控模块20通过各马达转速检测单元检测各马达的转速,将转速与预设的转速范围进行比较,若在预设的转速范围内,则马达测试项目结果为通过,否则马达测试项目结果为不通过,主控模块20将马达测试项目结果以及不通过的马达位置通过人机交互模块40进行展示。S53, the main control module 20 detects the speed of each motor through each motor speed detection unit, and compares the speed with the preset speed range. If it is within the preset speed range, the motor test item result is passed, otherwise the motor test item result is failed. The main control module 20 displays the motor test item result and the failed motor position through the human-computer interaction module 40.
在一些实施例中,自动化测试方法还包括:In some embodiments, the automated testing method further comprises:
S6,在所有的测试项目都完成后,若所有的测试项目结果都为通过,则认为被测单元90的测试结果为测试通过,否则认为被测单元90的测试结果为测试不通过,主控模块20将被测单元90的测试结果通过人机交互模块40进行展示。S6, after all the test items are completed, if the results of all the test items are passed, the test result of the unit under test 90 is considered to be passed, otherwise the test result of the unit under test 90 is considered to be failed, and the main control module 20 displays the test result of the unit under test 90 through the human-computer interaction module 40.
在一些实施例中,步骤S6中,当被测单元90的测试结果为不通过时,主控模块20将不通过的测试项目通过人机交互模块40进行显著展示,主控模块20还通过提示模块70进行提醒。In some embodiments, in step S6 , when the test result of the unit under test 90 is failed, the main control module 20 prominently displays the failed test items through the human-computer interaction module 40 , and the main control module 20 also reminds through the prompt module 70 .
在一些实施例中,自动化测试方法还包括:In some embodiments, the automated testing method further comprises:
S0,用户通过人机交互模块40设置各测试项目的测试参数、配置测试项目、保存模板和调用模板。其中,保存模板用于将当前已经配置好的测试项目以及对应的测试参数作为一个模板进行保存,以用于后续调用。S0, the user sets the test parameters of each test item, configures the test item, saves the template and calls the template through the human-computer interaction module 40. The template saving is used to save the currently configured test items and the corresponding test parameters as a template for subsequent calling.
具体使用时,使用者可将一个型号的手柄对应保存一个模板,可保存多个不同的模板,以使得在测试同一型号的手柄时,可直接调用对应已保存好的模板即可,省去了逐个配置测试项目以及对应的测试参数的步骤。During specific use, the user can save a template corresponding to a model of handle, and can save multiple different templates, so that when testing the same model of handle, the corresponding saved template can be directly called, eliminating the steps of configuring test items and corresponding test parameters one by one.
实施例1:Embodiment 1:
参照图3,本实施例通过人机交互模块40对各需要测试的测试项目进行展示,提供用户对各测试项目进行配置及参数修改等操作。3 , this embodiment displays each test item that needs to be tested through the human-computer interaction module 40 , and provides the user with operations such as configuration and parameter modification of each test item.
本实施例的各测试项目的测试过程依次为电流测试项目、按键测试项目、摇杆扳机测试项目、马达测试项目以及射频测试项目。当然,用户可以根据实际需求进行上述部分测试项目的测试,以及可以根据需求更改各测试项目的前后测试顺序。The test process of each test item in this embodiment is a current test item, a button test item, a joystick trigger test item, a motor test item, and a radio frequency test item. Of course, the user can test some of the above test items according to actual needs, and can change the order of the front and back tests of each test item according to needs.
对于电流测试项目,本实施例的电源模式包括充电模式、休眠模式和工作模式三种,其中,充电模式对应的电源为5V,休眠模式对应的电源为3.7V,工作模式对应的电源为3.7V,由主控模块20控制电源模块80进行依次切换。本实施例中,由于工作模式对应的电源电压与休眠模式对应的电源电压相同,因此从休眠电流测试切换为工作电流测试时,无需通过主控模块20对电源模块80进行切换以提供给被测单元。在人机交互模块40依次显示各模式的预设值、测试值以及测试结果,还显示电流测试项目的测试结果。For the current test item, the power supply mode of this embodiment includes three modes: charging mode, sleep mode and working mode. Among them, the power supply corresponding to the charging mode is 5V, the power supply corresponding to the sleep mode is 3.7V, and the power supply corresponding to the working mode is 3.7V. The main control module 20 controls the power supply module 80 to switch in sequence. In this embodiment, since the power supply voltage corresponding to the working mode is the same as the power supply voltage corresponding to the sleep mode, when switching from the sleep current test to the working current test, there is no need to switch the power supply module 80 through the main control module 20 to provide it to the unit under test. The preset value, test value and test result of each mode are displayed in sequence in the human-computer interaction module 40, and the test result of the current test item is also displayed.
对于按键测试项目,本实施例将各按键均进行展示,以用于当其中某个按键测试不通过时,以高亮的显著方式向用户进行提醒。同时,还显示按键测试项目的测试结果,提供按键测试项目的配置入口。For the key test items, this embodiment displays each key, so that when a key test fails, the user is reminded in a highlighted manner. At the same time, the test results of the key test items are also displayed, and a configuration entry for the key test items is provided.
对于摇杆扳机测试项目,本实施例将左右摇杆以及左右扳机进行展示,以用于当其中某个摇杆或扳机测试不通过时,以高亮的显著方式向用户进行提醒。同时,还显示摇杆扳机测试项目的测试结果。For the joystick trigger test item, this embodiment displays the left and right joysticks and the left and right triggers, so as to remind the user in a prominent manner when one of the joysticks or triggers fails the test. At the same time, the test results of the joystick trigger test item are also displayed.
对于马达测试项目,本实施例将左右握把马达以及左右扳机马达进行展示,以用于当其中某个马达测试不通过时,以高亮的显著方式向用户进行提醒。同时,还显示马达测试项目的测试结果,提供马达测试项目的配置入口。For the motor test items, this embodiment displays the left and right grip motors and the left and right trigger motors, so that when one of the motors fails the test, it can remind the user in a prominent and highlighted manner. At the same time, the test results of the motor test items are also displayed, and the configuration entry of the motor test items is provided.
对于射频测试项目,本实施例包括蓝牙测试以及2.4G测试,因此两者对应的参数进行展示,同时显示两者的预设值、测试值以及测试结果,还显示射频测试项目的测试结果,提供射频测试项目的配置入口。For the RF test items, this embodiment includes Bluetooth test and 2.4G test, so the corresponding parameters of the two are displayed, and the preset values, test values and test results of the two are displayed at the same time. The test results of the RF test items are also displayed, and the configuration entry of the RF test items is provided.
本实施例还展示各项目测试结束后的总的测试结果,提供保存模板按钮以及调用模板入口。This embodiment also displays the total test results after the test of each project is completed, and provides a save template button and a template call entry.
参照图2,在对各测试项目进行测试时,以本发明自动化测试方法依次对各测试项目进行测试,具体的:2, when testing each test item, each test item is tested in sequence using the automated testing method of the present invention, specifically:
1、进行电流测试项目的测试:1. Conduct current test items:
主控模块20将电源模块80切换为5V供电给被测单元(DUT),主控模块20通过通讯模块30发送指令给被测单元,使得被测单元进入充电模式。The main control module 20 switches the power module 80 to 5V to supply power to the unit under test (DUT). The main control module 20 sends a command to the DUT through the communication module 30, so that the DUT enters the charging mode.
主控模块20通过电流测试模块52获取被测单元90的充电电流,判断充电电流是否在预设的充电电流范围内,若在预设的充电电流范围内,则充电电流测试项目结果为通过,进行下一项测试,若不在预设的充电电流范围内,则充电电流测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 obtains the charging current of the unit under test 90 through the current testing module 52, and determines whether the charging current is within the preset charging current range. If it is within the preset charging current range, the result of the charging current test item is passed, and the next test is performed. If it is not within the preset charging current range, the result of the charging current test item is failed, and it is displayed through the human-computer interaction module 40, and the next test is performed.
主控模块20将电源模块80切换为3.7V供电给被测单元,主控模块20通过通讯模块30发送指令给被测单元,使得被测单元进入休眠模式。The main control module 20 switches the power module 80 to 3.7V to supply power to the unit under test. The main control module 20 sends a command to the unit under test through the communication module 30, so that the unit under test enters the sleep mode.
主控模块20通过电流测试模块52获取被测单元90的休眠电流,判断休眠电流是否在预设的休眠电流范围内,若在预设的休眠电流范围内,则休眠电流测试项目结果为通过,进行下一项测试,若不在预设的休眠电流范围内,则休眠电流测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 obtains the sleep current of the unit under test 90 through the current testing module 52, and determines whether the sleep current is within the preset sleep current range. If it is within the preset sleep current range, the sleep current test item result is passed, and the next test is performed. If it is not within the preset sleep current range, the sleep current test item result is failed, and it is displayed through the human-computer interaction module 40, and the next test is performed.
主控模块20通过通讯模块30发送指令给被测单元,使得被测单元进入工作模式。The main control module 20 sends instructions to the unit under test through the communication module 30, so that the unit under test enters the working mode.
主控模块20通过电流测试模块52获取被测单元90的工作电流,判断工作电流是否在预设的工作电流范围内,若在预设的工作电流范围内,则工作电流测试项目结果为通过,进行下一项测试,若不在预设的工作电流范围内,则工作电流测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 obtains the working current of the unit under test 90 through the current testing module 52, and determines whether the working current is within the preset working current range. If it is within the preset working current range, the result of the working current test item is passed, and the next test is performed. If it is not within the preset working current range, the result of the working current test item is failed, and it is displayed through the human-computer interaction module 40, and the next test is performed.
2、进行按键测试项目的测试:2. Test the key test items:
主控模块20向数字量测试模块53发送导通指令,使若干模拟开关芯片的各个通道逐次导通。The main control module 20 sends a conduction instruction to the digital quantity test module 53 to turn on the channels of the plurality of analog switch chips one by one.
被测单元90检测按键是否被按下,并将键值通过通讯模块30传输至主控模块20。The tested unit 90 detects whether the key is pressed, and transmits the key value to the main control module 20 through the communication module 30 .
主控模块20通过键值判断是否所有按键均被按下,若所有按键均有被按下,则按键测试项目结果为通过,进行下一项测试,否则按键测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 determines whether all the keys are pressed by the key value. If all the keys are pressed, the key test item result is passed and the next test is performed. Otherwise, the key test item result is failed and displayed through the human-computer interaction module 40 and the next test is performed.
3、进行摇杆扳机测试项目的测试:3. Test the joystick trigger test items:
主控模块20向模拟量测试模块54发送模拟量指令,使各数模转换芯片输出不同的电压。The main control module 20 sends an analog quantity instruction to the analog quantity test module 54, so that each digital-to-analog conversion chip outputs a different voltage.
被测单元90通过自带的模数转换单元来检测数模转换芯片输出的电压,并通过通讯模块30传输至主控模块20。The unit under test 90 detects the voltage output by the digital-to-analog conversion chip through its own analog-to-digital conversion unit, and transmits the voltage to the main control module 20 through the communication module 30 .
主控模块20将模拟量指令的各电压与被测单元90传输的各电压进行比较,若电压差在预设的压差范围内,则模拟量测试项目结果为通过,进行下一项测试,否则模拟量测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 compares the voltages of the analog quantity instruction with the voltages transmitted by the unit under test 90. If the voltage difference is within the preset voltage difference range, the result of the analog quantity test item is passed and the next test is performed. Otherwise, the result of the analog quantity test item is failed and displayed through the human-computer interaction module 40 and the next test is performed.
4、进行马达测试项目的测试:4. Carry out the motor test items:
主控模块20将马达测试指令通过通讯模块30传输给被测单元90。The main control module 20 transmits the motor test instruction to the unit under test 90 through the communication module 30 .
被测单元90接收并向各马达发送马达测试指令,使马达动作。The unit under test 90 receives and sends motor test instructions to each motor to activate the motor.
主控模块20通过各马达转速检测单元检测各马达的转速,将转速与预设的转速范围进行比较,若在预设的转速范围内,则马达测试项目结果为通过,进行下一项测试,否则马达测试项目结果为不通过,通过人机交互模块40进行展示,进行下一项测试。The main control module 20 detects the speed of each motor through each motor speed detection unit, and compares the speed with the preset speed range. If it is within the preset speed range, the result of the motor test item is passed and the next test is carried out. Otherwise, the result of the motor test item is failed and it is displayed through the human-computer interaction module 40 and the next test is carried out.
5、进行射频测试项目的测试:5. Conduct RF test items:
主控模块20通过通讯模块30与被测单元90建立通讯,获取被测单元90的射频芯片的物理地址并传输给射频测试模块51,使射频测试模块51与射频芯片进行配对并建立无线连接,从而实现主控模块20与被测单元90建立无线连接。The main control module 20 establishes communication with the unit under test 90 through the communication module 30, obtains the physical address of the RF chip of the unit under test 90 and transmits it to the RF test module 51, so that the RF test module 51 is paired with the RF chip and establishes a wireless connection, thereby realizing the establishment of a wireless connection between the main control module 20 and the unit under test 90.
主控模块20通过通讯模块30发送射频测试指令给被测单元90,使被测单元90以设定的强度和频率通过无线方式发送射频测试数据,主控模块20通过射频测试模块51接收射频测试数据,并获取射频测试数据的信号强度和信号频率。The main control module 20 sends a radio frequency test instruction to the unit under test 90 through the communication module 30, so that the unit under test 90 sends radio frequency test data wirelessly at a set strength and frequency. The main control module 20 receives the radio frequency test data through the radio frequency test module 51 and obtains the signal strength and signal frequency of the radio frequency test data.
主控模块20将获取的信号强度和预设的信号强度范围进行比较,将获取的信号频率和预设的信号频率范围进比较,若都在预设的范围内,则射频测试项目结果为通过,进行下一步,否则射频测试项目结果为不通过,通过人机交互模块40进行展示,进行下一步。The main control module 20 compares the acquired signal strength with the preset signal strength range, and compares the acquired signal frequency with the preset signal frequency range. If both are within the preset range, the result of the RF test item is passed and the next step is performed. Otherwise, the result of the RF test item is failed and displayed through the human-computer interaction module 40 and the next step is performed.
6、判断所有测试项目的测试项目结果是否均为通过,若是,则认为被测单元90的测试结果为测试通过,通过人机交互模块40展示测试通过,否则通过人机交互模块40展示测试不通过并通过蜂鸣器提醒。6. Determine whether the test results of all test items are passed. If so, the test result of the unit under test 90 is considered to be passed, and the human-computer interaction module 40 displays the test passed. Otherwise, the human-computer interaction module 40 displays the test failed and reminds through the buzzer.
最后保存所有的测试数据,测试结束。Finally, save all the test data and the test ends.
以上结合附图实施例对本发明进行了详细说明,本领域中普通技术人员可根据上述说明对本发明做出种种变化例。因而,实施例中的某些细节不应构成对本发明的限定,本发明将以所附权利要求书界定的范围作为保护范围。The present invention is described in detail above in conjunction with the embodiments of the accompanying drawings. A person skilled in the art can make various variations of the present invention according to the above description. Therefore, some details in the embodiments should not be construed as limiting the present invention, and the present invention shall be protected by the scope defined by the attached claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411289100.0A CN118795265A (en) | 2024-09-14 | 2024-09-14 | Automated testing system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411289100.0A CN118795265A (en) | 2024-09-14 | 2024-09-14 | Automated testing system and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118795265A true CN118795265A (en) | 2024-10-18 |
Family
ID=93021994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411289100.0A Pending CN118795265A (en) | 2024-09-14 | 2024-09-14 | Automated testing system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118795265A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275805A (en) * | 2019-06-13 | 2019-09-24 | 上海琪埔维半导体有限公司 | A kind of full-automatic test system for MCU chip |
CN114428208A (en) * | 2022-01-25 | 2022-05-03 | 山东锋士信息技术有限公司 | A hardware automatic measurement tool |
CN117250482A (en) * | 2023-11-16 | 2023-12-19 | 巨翊医疗科技(苏州)有限公司 | PCBA testing method, system and device based on Bluetooth interaction |
CN117389613A (en) * | 2023-11-02 | 2024-01-12 | 深圳联恒智控科技有限公司 | Production testing method of intelligent door lock, electronic equipment and storage medium |
-
2024
- 2024-09-14 CN CN202411289100.0A patent/CN118795265A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275805A (en) * | 2019-06-13 | 2019-09-24 | 上海琪埔维半导体有限公司 | A kind of full-automatic test system for MCU chip |
CN114428208A (en) * | 2022-01-25 | 2022-05-03 | 山东锋士信息技术有限公司 | A hardware automatic measurement tool |
CN117389613A (en) * | 2023-11-02 | 2024-01-12 | 深圳联恒智控科技有限公司 | Production testing method of intelligent door lock, electronic equipment and storage medium |
CN117250482A (en) * | 2023-11-16 | 2023-12-19 | 巨翊医疗科技(苏州)有限公司 | PCBA testing method, system and device based on Bluetooth interaction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108983082A (en) | Matrix switch device and system | |
CN101398776A (en) | Automatic powering-on/powering-off test device and method | |
CN108761328A (en) | Electric tool switch test device and system | |
CN211453815U (en) | Electronic product batch aging test system | |
CN106526457A (en) | Circuit board detection instrument and system | |
CN214954676U (en) | A detection device for robot multi-axis servo driver control board | |
CN115236504A (en) | Intelligent quick calibration device for relay | |
CN203522710U (en) | Signal converter multifunctional detection apparatus | |
CN208833886U (en) | Electric tool switch test device and system | |
CN104898001B (en) | Duplex potentiometer total resistance, zero resistance and dynamic noise detector | |
CN118795265A (en) | Automated testing system and method thereof | |
CN104049556B (en) | Portable radio-frequency switch unit integrated control system and method | |
CN205428501U (en) | Position measurement of nuclear power station reactor core stick and control rod drive mechanism's testing arrangement | |
CN111458634A (en) | Handheld power equipment relay on-line tester and testing method | |
CN110727239B (en) | Portable electric tool control program updating device and updating method | |
CN210155652U (en) | Mouse test system | |
CN111458592A (en) | Auto Lamp Drive Module Automatic Detection System | |
CN217181141U (en) | Automatic hardware measuring tool | |
CN203520072U (en) | Signal converter assembly detection device | |
CN110147088A (en) | Electric vehicle controller test system | |
CN213813904U (en) | Handheld circuit on-off inspection tester | |
CN202838762U (en) | Automatic electronic experimental teaching system | |
CN212060526U (en) | Power supply detection device and system | |
KR101005119B1 (en) | Multifunctional measuring device with replaceable analysis module for network configuration | |
CN219956306U (en) | Resistance and electrical property detection control equipment of electronic detonator |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20241018 |
|
RJ01 | Rejection of invention patent application after publication |