技术领域technical field
本发明属于自动化测试领域,尤其涉及一种POS机主板的自动测试装置、系统及方法。The invention belongs to the field of automatic testing, and in particular relates to an automatic testing device, system and method for a mainboard of a POS machine.
背景技术Background technique
在POS(Point of sales,销售点)机的生产过程中,为了保证POS机的生产质量以及保证其在后续使用过程中可以正常使用,需要在POS机主板上的各个功能模块(包括打印模块、磁卡模块及主控模块等)装配好后,对POS机主板上的功能模块进行程序配置和功能测试。In the production process of POS (Point of sales, point of sale) machine, in order to ensure the production quality of the POS machine and ensure that it can be used normally in the subsequent use process, it is necessary to install various functional modules on the POS machine main board (including the printing module, After the magnetic card module and the main control module, etc.) are assembled, program configuration and functional testing are performed on the functional modules on the main board of the POS machine.
然而,现有POS机主板的测试系统中的程序下载治具和功能测试治具是分开的,在测试过程中,一个测试人员需要同时操作一台程序下载治具和一台功能测试治具,测试效率低下,测试的稳定性和准确性较低。However, the program download fixture and the function test fixture in the test system of the existing POS machine main board are separated. During the test process, a tester needs to operate a program download fixture and a function test fixture at the same time. The test efficiency is low, and the stability and accuracy of the test are low.
发明内容Contents of the invention
本发明的目的在于提供一种POS机主板的自动测试装置、系统及方法,旨在解决现有的POS机主板的测试系统存在测试效率低下,测试的稳定性和准确性较低的问题。The object of the present invention is to provide a kind of automatic testing device, system and method of POS machine main board, aim at solving the problem that existing POS machine main board test system exists test efficiency is low, the stability and accuracy of test are low.
本发明是这样实现的,一种POS机主板的自动测试装置,与控制终端连接,所述自动测试装置上设置有用于装载POS机主板的至少一个测试夹具,所述自动测试装置包括:The present invention is achieved in this way, a kind of automatic testing device of POS machine main board, is connected with control terminal, and described automatic testing device is provided with at least one test fixture for loading POS machine main board, and described automatic testing device comprises:
备用电源测试模块,用于若检测到待测主板被正确装载至所述自动测试装置的至少一个测试夹具中,则对所述待测主板上的备用电源进行测试;A backup power supply testing module, used to test the backup power supply on the mainboard to be tested if it is detected that the mainboard to be tested is correctly loaded into at least one test fixture of the automatic test device;
配置模块,用于若检测到所述备用电源测试完成,则获取所述控制终端根据所述待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将所述扩展序列号和所述预设测试程序输出至所述待测主板上相应的功能模块;The configuration module is configured to obtain an extended serial number and a preset test program output by the control terminal according to the order information corresponding to the mainboard to be tested if it is detected that the backup power supply test is completed, and set the extended serial number and The preset test program is output to the corresponding functional modules on the mainboard to be tested;
程序下载模块,用于获取所述控制终端通过预设下载工具下载的预设应用程序,并将所述预设应用程序下载至所述待测主板上的主控模块;A program download module, configured to obtain a preset application program downloaded by the control terminal through a preset download tool, and download the preset application program to the main control module on the main board to be tested;
功能测试模块,用于在所述待测主板上电后,根据所述预设测试程序,对所述待测主板上相应的功能模块进行功能测试。The functional testing module is used to perform a functional test on the corresponding functional modules on the mainboard to be tested according to the preset test program after the mainboard to be tested is powered on.
本发明还提供了一种POS机主板的自动测试系统,包括控制终端,所述自动测试系统还包括上述的自动测试装置。The present invention also provides an automatic test system for the main board of the POS machine, including a control terminal, and the automatic test system also includes the above-mentioned automatic test device.
本发明还提供了一种POS机主板的自动测试装置的自动测试方法,所述自动测试装置上设置有用于装载POS机主板的至少一个测试夹具,所述自动测试方法包括:The present invention also provides an automatic testing method of an automatic testing device for a main board of a POS machine, the automatic testing device is provided with at least one test fixture for loading the main board of a POS machine, and the automatic testing method includes:
若检测到待测主板被正确装载至所述自动测试装置的至少一个测试夹具中,则对所述待测主板上的备用电源进行测试;If it is detected that the mainboard to be tested is correctly loaded into at least one test fixture of the automatic test device, the backup power supply on the mainboard to be tested is tested;
若检测到所述备用电源测试完成,则获取所述控制终端根据所述待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将所述扩展序列号和所述预设测试程序输出至所述待测主板上相应的功能模块;If it is detected that the test of the backup power supply is completed, the extended serial number and the preset test program output by the control terminal according to the order information corresponding to the motherboard to be tested are obtained, and the extended serial number and the preset test program are The program is output to the corresponding functional modules on the mainboard to be tested;
获取所述控制终端通过预设下载工具下载的预设应用程序,并将所述预设应用程序下载至所述待测主板上的主控模块;Obtaining the preset application program downloaded by the control terminal through the preset download tool, and downloading the preset application program to the main control module on the main board to be tested;
在所述待测主板上电后,根据所述预设测试程序,对所述待测主板上相应的功能模块进行功能测试。After the mainboard to be tested is powered on, a functional test is performed on the corresponding functional modules on the mainboard to be tested according to the preset test program.
本发明通过采用包括备用电源测试模块、配置模块、程序下载模块及功能测试模块的自动测试装置,由备用电源测试模块在检测到待测主板被正确装载至自动测试装置的至少一个测试夹具中时,对待测主板上的备用电源进行测试;由配置模块在检测到备用电源测试完成后,获取控制终端根据待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将扩展序列号和预设测试程序输出至待测主板上相应的功能模块;由程序下载模块获取控制终端通过预设下载工具下载的预设应用程序,并将预设应用程序下载至待测主板上的主控模块;由功能测试模块在电路板上电后,根据预设测试程序,对待测主板上相应的功能模块进行功能测试,从而使得测试人员只需将待测电路板放置在自动测试装置的测试夹具中,便可自动完成对待测电路板的程序配置及功能测试,简化了人工操作步骤,且测试人员可同时操作多个自动测试装置以同时对多个待测电路板进行测试,极大地提高了测试效率以及测试的稳定性和准确性。In the present invention, by adopting an automatic test device including a backup power test module, a configuration module, a program download module and a function test module, the backup power test module detects that the main board to be tested is correctly loaded into at least one test fixture of the automatic test device , to test the backup power supply on the motherboard to be tested; after the configuration module detects that the backup power supply test is completed, it obtains the extended serial number and preset test program output by the control terminal according to the order information corresponding to the motherboard to be tested, and sends the extended serial number to and the preset test program are output to the corresponding functional modules on the main board to be tested; the program download module obtains the preset application program downloaded by the control terminal through the preset download tool, and downloads the preset application program to the main control board on the main board to be tested module; after the functional test module is powered on the circuit board, according to the preset test program, the corresponding functional module on the main board to be tested will be functionally tested, so that the tester only needs to place the circuit board to be tested on the test fixture of the automatic test device In the process, the program configuration and functional test of the circuit board to be tested can be automatically completed, which simplifies the manual operation steps, and the tester can operate multiple automatic test devices at the same time to test multiple circuit boards to be tested at the same time, which greatly improves the Test efficiency as well as test stability and accuracy.
附图说明Description of drawings
图1是本发明实施例提供的一种POS机主板的自动测试装置的模块结构示意图;Fig. 1 is the module structure schematic diagram of the automatic test device of a kind of POS machine main board provided by the embodiment of the present invention;
图2是本发明实施例提供的一种POS机主板的自动测试系统的模块结构示意图;Fig. 2 is the module structure schematic diagram of the automatic test system of a kind of POS machine main board provided by the embodiment of the present invention;
图3是本发明实施例提供的一种POS机主板的自动测试装置的自动测试方法的实现流程示意图。Fig. 3 is a schematic flow diagram of an automatic testing method of an automatic testing device for a main board of a POS machine provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图1是本发明实施例提供的一种POS机主板的自动测试装置的模块结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 1 is a schematic diagram of the module structure of an automatic test device for a mainboard of a POS machine provided by an embodiment of the present invention. For ease of description, only the parts relevant to the embodiment of the present invention are shown, and the details are as follows:
一种POS机主板的自动测试装置1,与控制终端连接2,用于在POS机的生产过程中,在POS机主板上的各个功能模块装配好后,对POS机主板上的各个功能模块进行程序配置和功能测试。An automatic test device 1 for a main board of a POS machine, connected to a control terminal 2, used for testing each functional module on the main board of the POS machine after each functional module on the main board of the POS machine is assembled during the production process of the POS machine Program configuration and functional testing.
其中,控制终端2可以为手机、平板电脑、笔记本电脑、台式电脑等智能终端。具体根据实际需求进行设置,此处不做限制。Wherein, the control terminal 2 may be an intelligent terminal such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer. Set it according to actual needs, and there is no limitation here.
POS机主板上的功能模块包括但不限于:主控模块、音频模块、备用电源、打印模块、射频通信模块、IC卡(Integrated Circuit Card,集成电路卡)模块、SIM卡(SubscriberIdentification Module,用户身份识别卡)模块及磁卡模块等。具体根据实际需求进行设置,此处不做限制。The functional modules on the main board of the POS machine include but are not limited to: main control module, audio module, backup power supply, printing module, radio frequency communication module, IC card (Integrated Circuit Card, integrated circuit card) module, SIM card (SubscriberIdentification Module, user identity Identification card) module and magnetic card module, etc. Set it according to actual needs, and there is no limitation here.
自动测试装置1上设置有用于装载POS机主板的至少一个测试夹具X1~Xn。每个测试夹具(例如X1、X2或Xn等)上均设置有多个探针,多个探针的第一端分别与自动测试装置1中的相应测试模块连接,多个探针的第二端分别与POS机主板上的各个功能模块的测试端口相对应。多个探针用于在POS机主板正确安装至测试夹具(例如X1、X2或Xn等)中时,将POS机主板上的各个功能模块的测试端口与自动测试装置1中的相应测试模块和控制终端2进行连接,以实现POS机主板上的各个功能模块与自动测试装置1中的相应测试模块和控制终端2之间的数据传输、电信号导通或电信号切换。The automatic test device 1 is provided with at least one test fixture X1-Xn for loading the main board of the POS machine. Each test fixture (such as X1, X2 or Xn, etc.) is provided with a plurality of probes, the first ends of the plurality of probes are respectively connected to the corresponding test modules in the automatic test device 1, and the second ends of the plurality of probes The terminals correspond to the test ports of each functional module on the main board of the POS machine respectively. A plurality of probes are used to connect the test ports of each functional module on the POS machine main board with the corresponding test modules and The control terminal 2 is connected to realize data transmission, electrical signal conduction or electrical signal switching between each functional module on the main board of the POS machine and the corresponding test module in the automatic test device 1 and the control terminal 2 .
具体的,自动测试装置1包括:Specifically, the automatic test device 1 includes:
备用电源测试模块10,用于若检测到待测主板(即待测POS机主板)被正确装载至自动测试装置1的至少一个测试夹具(例如X1、X2或Xn等)中,则对待测主板上的备用电源进行测试。Standby power supply testing module 10, is used for if detecting that the motherboard to be tested (that is, the POS machine motherboard to be tested) is correctly loaded in at least one test fixture (such as X1, X2 or Xn, etc.) of the automatic test device 1, then the motherboard to be tested Test the standby power on the
配置模块11,用于若检测到待测主板上的备用电源测试完成,则获取控制终端2根据待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将扩展序列号和预设测试程序输出至待测主板上相应的功能模块。The configuration module 11 is used to obtain the extended serial number and the preset test program output by the control terminal 2 according to the corresponding order information of the mainboard to be tested if it is detected that the backup power supply test on the mainboard to be tested is completed, and the extended serial number and the preset test program will be extended. It is assumed that the test program is output to the corresponding functional modules on the main board to be tested.
程序下载模块12,用于获取控制终端2通过预设下载工具下载的预设应用程序,并将预设应用程序下载至待测主板上的主控模块。The program downloading module 12 is used to obtain the preset application program downloaded by the control terminal 2 through the preset download tool, and download the preset application program to the main control module on the main board to be tested.
功能测试模块13,用于在待测主板上电后,根据预设测试程序,对待测主板上相应的功能模块进行功能测试。The function test module 13 is used to perform functional tests on corresponding functional modules on the main board to be tested according to a preset test program after the main board to be tested is powered on.
在本发明实施例中,备用电源测试模块10、配置模块11、程序下载模块12及功能测试模块13构成为自动测试装置1的测试模块。In the embodiment of the present invention, the backup power test module 10 , the configuration module 11 , the program download module 12 and the function test module 13 constitute a test module of the automatic test device 1 .
在实际应用中,在对POS机主板进行测试时,测试人员可同时将多个待测主板分别装载至自动测试装置1的不同测试夹具中,以同时对多个待测主板进行测试,这样可以有效提高测试效率。In practical applications, when testing the main board of the POS machine, the tester can load a plurality of main boards to be tested into different test fixtures of the automatic test device 1 at the same time, so as to test a plurality of main boards to be tested at the same time, which can Effectively improve test efficiency.
在同时对多个待测主板进行测试时,控制终端2为每个待测主板对应的测试模块分配独立的线程,即每个待测主板的硬件资源相互独立。When testing multiple motherboards to be tested at the same time, the control terminal 2 allocates independent threads to the test modules corresponding to each motherboard to be tested, that is, the hardware resources of each motherboard to be tested are independent of each other.
在本发明实施例中,待测主板被正确装载至自动测试装置1的测试夹具中具体指待测主板被装载至自动测试装置1的测试夹具中,使得待测主板上的各个功能模块的测试端口与测试夹具上的相应的探针一一对应,以将主板上的各个功能模块的测试端口与自动测试装置1的相应的测试模块进行连接导通(此时,待测主板并未上电)。In the embodiment of the present invention, the motherboard to be tested is correctly loaded into the test fixture of the automatic test device 1, specifically refers to that the motherboard to be tested is loaded into the test fixture of the automatic test device 1, so that the test of each functional module on the motherboard to be tested Ports correspond to the corresponding probes on the test fixture one by one, so that the test ports of each functional module on the mainboard are connected and conducted with the corresponding test modules of the automatic test device 1 (at this time, the mainboard to be tested is not powered on. ).
在实际应用中,备用电源测试模块10可以通过传感器或光栅来检测待测主板是否被正确装载测试夹具中。具体的,传感器或光栅若检测到待测主板被正确装载至自动测试装置1的测试夹具中,则输出相应的电平信号,备用电源测试模块10若接收到相应的电平信号,则判断待测主板被正确装载测试夹具中。In practical applications, the backup power supply test module 10 can detect whether the mainboard to be tested is correctly loaded into the test fixture through a sensor or a light barrier. Specifically, if the sensor or the grating detects that the main board to be tested is correctly loaded into the test fixture of the automatic test device 1, it outputs a corresponding level signal, and if the backup power supply test module 10 receives the corresponding level signal, it judges that the main board to be tested is The test board is correctly loaded into the test fixture.
备用电源测试模块10在检测到待测主板被正确装载至自动测试装置1的至少一个测试夹具(例如X1、X2或Xn等)后,在待测主板未上电的情况下,对待测主板上的备用电源进行测试。After the standby power supply testing module 10 detects that the mainboard to be tested is correctly loaded to at least one test fixture (such as X1, X2 or Xn, etc.) of the automatic test device 1, when the mainboard to be tested is not powered on, backup power for testing.
需要说明的是,待测主板上的备用电源具体用于在POS机待机或关机状态下,为POS机的一些接口模块、启动模块等提供电能。在实际应用中,备用电源可以为锂电池,优选的,为了节省空间,备用电源可以为纽扣式锂电池。当然,备用电源还可以为其他类型的电池,具体根据实际情况进行设置,此处不做限制。It should be noted that the backup power supply on the mainboard to be tested is specifically used to provide power for some interface modules and start-up modules of the POS machine when the POS machine is in a standby or shutdown state. In practical applications, the backup power supply may be a lithium battery, preferably, in order to save space, the backup power supply may be a button-type lithium battery. Of course, the backup power supply can also be other types of batteries, which are set according to actual conditions, and there is no limitation here.
具体的,备用电源测试模块10可以对待测主板上的备用电源的电流或电压进行采集,并将采集结果发送至控制终端2,以使控制终端2对待测主板上的备用电源进行测试。Specifically, the backup power supply testing module 10 can collect the current or voltage of the backup power supply on the mainboard to be tested, and send the collection result to the control terminal 2, so that the control terminal 2 can test the backup power supply on the mainboard to be tested.
作为本发明一实施例,备用电源测试模块10可以包括:As an embodiment of the present invention, the standby power supply test module 10 may include:
电流采集单元101,用于若检测到待测主板被正确装载至自动测试装置1的至少一个测试夹具中,则对待测主板上的备用电源的电流进行采集。The current acquisition unit 101 is configured to collect the current of the backup power supply on the mainboard to be tested if it is detected that the mainboard to be tested is correctly loaded into at least one test fixture of the automatic test device 1 .
第一返回单元102,用于将采集结果返回至控制终端2,以使控制终端2对备用电源的电流进行测试,并在测试完成后,从生产管理系统中获取所述待测主板对应的订单信息,且根据所述订单信息输出相应的扩展序列号和预设测试程序。The first return unit 102 is used to return the collection result to the control terminal 2, so that the control terminal 2 tests the current of the backup power supply, and after the test is completed, obtains the order corresponding to the motherboard to be tested from the production management system information, and output the corresponding extended serial number and preset test program according to the order information.
在实际应用中,电流采集单元101可以采用由电流采样电阻、放大器等构成的硬件检测电路;第一返回单元102可以采用由模数转换器构成的转换电路。具体的,电流采样电阻将备用电源输出的电流信号转换为相应的电压信号,放大器对电压信号进行放大,模数转换器将放大后的电压信号转换为相应的数字信号,并将该数字信号输出至控制终端2,以使控制终端2对待测主板上的备用电源的电流进行测试。In practical applications, the current acquisition unit 101 may use a hardware detection circuit composed of current sampling resistors, amplifiers, etc.; the first return unit 102 may use a conversion circuit composed of an analog-to-digital converter. Specifically, the current sampling resistor converts the current signal output by the standby power supply into a corresponding voltage signal, the amplifier amplifies the voltage signal, and the analog-to-digital converter converts the amplified voltage signal into a corresponding digital signal, and outputs the digital signal To the control terminal 2, so that the control terminal 2 tests the current of the backup power supply on the mainboard to be tested.
控制终端2对待测主板上的备用电源测试完成后,控制终端2可以调用第三方的动态链接库文件(Dynamic Link Library,DLL)连接预设的生产管理系统,从该预设的生产管理系统中获取与待测主板对应的订单信息。After the backup power supply test on the control terminal 2 to be tested on the motherboard is completed, the control terminal 2 can call a third-party dynamic link library file (Dynamic Link Library, DLL) to connect to the preset production management system, and from the preset production management system Obtain the order information corresponding to the motherboard to be tested.
其中,订单信息可以包括但不限于:生产日期、客户信息、生产数量或POS配置信息等。具体根据实际需求进行设置,此处不做限制。Wherein, the order information may include but not limited to: production date, customer information, production quantity or POS configuration information and the like. Set it according to actual needs, and there is no limitation here.
控制终端2在获取到与待测主板对应的订单信息后,根据相应的订单信息,生成用于标识待测主板的身份的唯一的扩展序列号(EXSN);且控制终端2根据订单信息中的POS配置信息确定预设测试程序,该预设测试程序用于标识需要对待测主板上的哪些功能模块进行测试。After the control terminal 2 obtains the order information corresponding to the motherboard to be tested, according to the corresponding order information, generate a unique extended serial number (EXSN) for identifying the identity of the motherboard to be tested; and the control terminal 2 according to the order information in the order information The POS configuration information determines a preset test program, and the preset test program is used to identify which functional modules on the mainboard to be tested need to be tested.
例如,若POS配置信息中包括打印功能,则预设测试程序中则包括对待测主板上的打印模块进行测试的测试程序。POS配置信息具体根据实际需求进行设置,此处不做限制。For example, if the POS configuration information includes the printing function, the preset test program includes a test program for testing the printing module on the mainboard to be tested. POS configuration information is set according to actual needs, and there is no limitation here.
控制终端2将扩展序列号和预设测试程序输出至自动测试装置1。The control terminal 2 outputs the extended serial number and the preset test program to the automatic test device 1 .
配置模块11获取控制终端2输出的扩展序列号和预设测试程序,并将该扩展序列号和预设测试程序输出至待测主板上相应的功能模块。The configuration module 11 acquires the extended serial number and preset test program output by the control terminal 2, and outputs the extended serial number and preset test program to corresponding functional modules on the mainboard to be tested.
例如,若预设测试程序中包括对待测主板上的音频模块进行测试的测试程序,则配置模块11将与音频模块对应的测试程序输出至音频模块。For example, if the preset test program includes a test program for testing the audio module on the motherboard to be tested, the configuration module 11 outputs the test program corresponding to the audio module to the audio module.
具体的,配置模块11可以包括:Specifically, the configuration module 11 may include:
序列号输出单元111,用于若检测到待测主板上的备用电源测试完成,则获取控制终端2根据待测主板对应的订单信息输出的扩展序列号,并将扩展序列号输出至待测主板上的存储模块。The serial number output unit 111 is used to obtain the extended serial number output by the control terminal 2 according to the corresponding order information of the mainboard to be tested if it is detected that the backup power supply test on the mainboard to be tested is completed, and output the extended serial number to the mainboard to be tested on the storage module.
测试程序输出单元112,用于获取控制终端根据待测主板对应的订单信息输出的预设测试程序,并将预设测试程序输出至待测主板上相应的功能模块。The test program output unit 112 is used to acquire the preset test program output by the control terminal according to the order information corresponding to the motherboard to be tested, and output the preset test program to the corresponding functional modules on the motherboard to be tested.
在本发明实施例中,序列号输出单元111在检测到控制终端2输出的预设测试程序正确后,将扩展序列号直接输出至待测主板上的存储模块,即将扩展序列号固化于待测主板中,以作为待测主板从该测试阶段开始到其生命终止或返厂擦除标记重新进入测试阶段的唯一的身份标识。In the embodiment of the present invention, after the serial number output unit 111 detects that the preset test program output by the control terminal 2 is correct, the extended serial number is directly output to the storage module on the main board to be tested, that is, the extended serial number is solidified in the test program. In the main board, it is used as the unique identification of the main board to be tested from the beginning of the testing phase to the end of its life or returning to the factory to erase the mark and re-enter the testing phase.
测试程序输出单元112在获取到控制终端输出的预设测试程序,将预设测试程序输出至待测主板上相应的功能模块。The test program output unit 112 outputs the preset test program to the corresponding functional modules on the mainboard to be tested after obtaining the preset test program output by the control terminal.
例如,若预设测试程序中包括对待测主板上的打印模块的测试程序,则测试程序输出单元112将与打印模块对应的测试程序输出至打印模块,以便控制终端2后续对打印模块进行测试。For example, if the preset test program includes a test program for the printing module on the mainboard to be tested, the test program output unit 112 outputs the test program corresponding to the printing module to the printing module, so that the control terminal 2 can subsequently test the printing module.
在本发明实施例中,当控制终端2将扩展序列号和预设测试程序传输至待测主板后,控制终端2启动预设下载工具下载预设应用程序至待测主板上的主控模块。In the embodiment of the present invention, after the control terminal 2 transmits the extended serial number and the preset test program to the motherboard to be tested, the control terminal 2 starts the preset download tool to download the preset application program to the main control module on the motherboard to be tested.
其中,预设应用程序具体指POS机正常工作所需的所有必要文件,包括客户身份标识(CID)文件、引导(boot)文件、配置(config)文件及系统(monitor)文件等。其中,CID主要用于和待测主板上的主控模块的CPU进行绑定,且一个POS机只能绑定一个CID。Wherein, the preset application specifically refers to all necessary files required for the normal operation of the POS machine, including customer identification (CID) files, boot files, configuration files, and system monitor files. Among them, the CID is mainly used for binding with the CPU of the main control module on the motherboard to be tested, and one POS machine can only bind one CID.
预设下载工具可以为bpa(Boot Protocol Agent,引导协议代理)下载工具。该下载工具集成了待测主板的主控模块所需下载的文件的所有协议。即预设下载工具用于下载POS机正常工作所需的所有必要文件。The preset download tool may be a bpa (Boot Protocol Agent, boot protocol agent) download tool. The download tool integrates all the protocols of the files to be downloaded by the main control module of the main board to be tested. That is, the preset download tool is used to download all necessary files required for the normal operation of the POS machine.
程序下载模块12获取控制终端2通过预设下载工具下载的预设应用程序,并将该预设应用程序下载至待测主板上的主控模块。The program download module 12 obtains the preset application program downloaded by the control terminal 2 through the preset download tool, and downloads the preset application program to the main control module on the main board to be tested.
具体的,预设下载模块12可以包括:Specifically, the preset download module 12 may include:
第一下载单元121,用于获取控制终端2通过预设下载工具下载的客户身份标识文件和引导文件,并将客户身份标识文件和引导文件下载至待测主板上的主控模块。The first download unit 121 is used to obtain the client identification file and the boot file downloaded by the control terminal 2 through a preset download tool, and download the client ID file and the boot file to the main control module on the main board to be tested.
第二下载单元122,用于若检测到客户身份标识文件和引导文件下载完成,则获取控制终端2通过预设下载工具下载的配置文件和系统文件,并将配置文件和系统文件下载至待测主板上的主控模块。The second download unit 122 is used to obtain the configuration file and the system file downloaded by the control terminal 2 through the preset download tool if it is detected that the client identification file and the boot file have been downloaded, and download the configuration file and the system file to the device to be tested. The main control module on the motherboard.
在本发明实施例中,在通过预设下载工具下载客户身份标识文件和引导文件至待测主板时,控制终端2输出程控电源控制命令至自动测试装置1,以使自动测试装置1对待测主板上电,控制终端2读取预设下载工具返回的下载状态信息,判断下载进度,若检测到客户身份标识文件和引导文件下载完毕,则控制终端2通过预设下载工具下载配置文件和系统文件。In the embodiment of the present invention, when downloading the customer identity identification file and the boot file to the main board to be tested through the preset download tool, the control terminal 2 outputs a program-controlled power supply control command to the automatic test device 1, so that the automatic test device 1 Power on, the control terminal 2 reads the download status information returned by the preset download tool, and judges the download progress. If it detects that the client identification file and the boot file have been downloaded, the control terminal 2 downloads the configuration file and system file through the preset download tool .
第二下载单元122获取控制终端2通过预设下载工具下载的配置文件和系统文件,并将配置文件和系统文件下载至待测主板上的主控模块。The second download unit 122 obtains the configuration file and system file downloaded by the control terminal 2 through a preset download tool, and downloads the configuration file and system file to the main control module on the main board to be tested.
当控制终端2检测到所有应用程序下载完成后,开始对待测主板上的各个功能模块进行功能测试。After the control terminal 2 detects that all application programs have been downloaded, it starts to perform functional tests on each functional module on the mainboard to be tested.
功能测试模块13在待测主板上电的情况下,根据预设测试程序,对待测主板上相应的功能模块进行功能测试。When the mainboard to be tested is powered on, the functional testing module 13 performs a functional test on the corresponding functional modules on the mainboard to be tested according to a preset test program.
例如,若预设测试程序中包括对待测主板上的打印模块进行测试的测试程序,则工具测试模块13对待测主板上的打印模块进行测试;若预设测试程序中包括对待测主板上的音频模块进行测试的测试程序,则工具测试模块13对待测主板上的音频模块进行测试;若预设测试程序中包括对待测主板上的预设功能模块的电平信号进行测试的测试程序,则工具测试模块13对待测主板上的预设功能模块的电平信号进行测试。具体根据实际需求进行设置,此处不做限制。For example, if the preset test program includes a test program for testing the printing module on the mainboard to be tested, the tool testing module 13 tests the printing module on the mainboard to be tested; The test program that module tests, then tool test module 13 tests the audio frequency module on the mainboard to be tested; If include the test program that the level signal of the preset function module on the mainboard to be tested is tested in the preset test program, then tool The testing module 13 tests the level signals of the preset functional modules on the mainboard to be tested. Set it according to actual needs, and there is no limitation here.
具体的,功能测试模块13可以包括:Specifically, the functional testing module 13 may include:
音频测试单元,用于根据预设测试程序对待测主板上的音频模块进行测试。The audio test unit is used for testing the audio module on the mainboard to be tested according to a preset test program.
电平信号测试单元,用于根据预设测试程序对待测主板上的预设功能模块的电平信号进行测试。The level signal testing unit is used for testing the level signal of the preset functional modules on the mainboard to be tested according to the preset test program.
在实际应用中,待测主板上的音频模块可以包括喇叭或蜂鸣器等,具体根据实际情况进行设置,此处不做限制。In practical applications, the audio module on the mainboard to be tested may include a speaker or a buzzer, etc., which are set according to actual conditions, and are not limited here.
在本发明实施例中,音频测试单元具体用于采集待测主板上的音频模块根据控制终端2的控制指令输出的音频信号,并将采集到的音频信号返回至控制终端2,以使控制终端2对音频模块进行测试。In the embodiment of the present invention, the audio test unit is specifically used to collect the audio signal output by the audio module on the motherboard to be tested according to the control instruction of the control terminal 2, and return the collected audio signal to the control terminal 2, so that the control terminal 2 Test the audio module.
在实际应用中,音频测试单元可以采用音频采集电路。具体的,在对待测主板上的音频模块进行测试时,控制终端2输出控制指令至音频模块,以使音频模块发出音频信号。音频测试单元采集音频模块发出的音频信号,并将采集到的音频信号输出至控制终端2,以使控制终端2对音频模块进行测试。具体的,控制终端2可以通过分析音频信号的幅值、频率或者失真度等参数来判断音频模块是否合格,若音频信号的幅值、频率及失真度等均在预设范围内,则判断音频模块合格。In practical application, the audio frequency test unit may adopt an audio frequency acquisition circuit. Specifically, when testing the audio module on the mainboard to be tested, the control terminal 2 outputs a control command to the audio module, so that the audio module sends out an audio signal. The audio test unit collects the audio signal sent by the audio module, and outputs the collected audio signal to the control terminal 2, so that the control terminal 2 can test the audio module. Specifically, the control terminal 2 can judge whether the audio module is qualified by analyzing parameters such as the amplitude, frequency, or distortion of the audio signal. If the amplitude, frequency, and distortion of the audio signal are all within the preset range, then the audio The module is qualified.
在本发明实施例中,电平信号测试单元根据预设测试程序对待测主板上的预设功能模块的电平信号进行测试。In the embodiment of the present invention, the level signal testing unit tests the level signals of the preset functional modules on the mainboard to be tested according to a preset test program.
在实际应用中,预设功能模块可以根据订单信息中的POS配置信息进行确定,此处不做限制。例如,预设功能模块可以包括打印模块、电源模块等。In practical applications, the preset function module may be determined according to the POS configuration information in the order information, which is not limited here. For example, the preset function modules may include a printing module, a power supply module, and the like.
电平信号测试单元可以采用由电压检测单元和模数转换器构成的采集电路,具体的,电压检测单元采集预设功能模块的预设信号的电压值,模数转换器将电压值转换为数字值后输出至控制终端2,以使控制终端2对预设功能模块的预设信号的电平进行判断。The level signal test unit may adopt an acquisition circuit composed of a voltage detection unit and an analog-to-digital converter. Specifically, the voltage detection unit collects the voltage value of the preset signal of the preset function module, and the analog-to-digital converter converts the voltage value into a digital After the value is output to the control terminal 2, the control terminal 2 can judge the level of the preset signal of the preset function module.
例如,电平信号测试单元采集待测主板上的电源模块的输出信号的电压值,并将点电压值转换为数字信号输出至控制终端2,控制终端2判断该数字信号是否为高电平信号,若为高电平信号,则说明电源模块合格。For example, the level signal test unit collects the voltage value of the output signal of the power module on the mainboard to be tested, and converts the point voltage value into a digital signal and outputs it to the control terminal 2, and the control terminal 2 judges whether the digital signal is a high-level signal , if it is a high-level signal, it means that the power module is qualified.
在所有预设功能模块均测试完成后,自动控制装置1对待测主板进行断电。此时,控制终端2显示测试结果,并待测主板上的各个功能模块均合格,则控制终端2将根据订单信息生成的扩展序列号发送至生产管理系统,以使生产管理系统对该扩展序列号进行存储和备案。After all the preset function modules are tested, the automatic control device 1 powers off the mainboard to be tested. At this time, the control terminal 2 displays the test results, and all functional modules on the main board to be tested are qualified, then the control terminal 2 sends the extended serial number generated according to the order information to the production management system, so that the production management system can determine the extended serial number. number for storage and filing.
由此可以看出,本发明实施例通过采用包括备用电源测试模块、配置模块、程序下载模块及功能测试模块的自动测试装置,由备用电源测试模块在检测到待测主板被正确装载至自动测试装置的至少一个测试夹具中时,对待测主板上的备用电源进行测试;由配置模块在检测到备用电源测试完成后,获取控制终端根据待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将扩展序列号和预设测试程序输出至待测主板上相应的功能模块;由程序下载模块获取控制终端通过预设下载工具下载的预设应用程序,并将预设应用程序下载至待测主板上的主控模块;由功能测试模块在电路板上电后,根据预设测试程序,对待测主板上相应的功能模块进行功能测试,从而使得测试人员只需将待测电路板放置在自动测试装置的测试夹具中,便可自动完成对待测电路板的程序配置及功能测试,简化了人工操作步骤,且测试人员可同时操作多个自动测试装置以同时对多个待测电路板进行测试,极大地提高了测试效率以及测试的稳定性和准确性。It can be seen from this that the embodiment of the present invention adopts an automatic test device including a backup power test module, a configuration module, a program download module and a function test module. When the device is in at least one test fixture, the backup power supply on the mainboard to be tested is tested; after the configuration module detects that the backup power supply test is completed, it obtains the extended serial number and preset output of the control terminal according to the order information corresponding to the mainboard to be tested. Test the program, and output the extended serial number and the preset test program to the corresponding functional module on the main board to be tested; the program download module obtains the preset application program downloaded by the control terminal through the preset download tool, and downloads the preset application program to the main control module on the main board to be tested; after the functional test module is powered on the circuit board, according to the preset test program, the corresponding functional modules on the main board to be tested are functionally tested, so that the tester only needs to put the Placed in the test fixture of the automatic test device, the program configuration and functional test of the circuit board to be tested can be automatically completed, which simplifies the manual operation steps, and the tester can operate multiple automatic test devices at the same time to test multiple circuits under test at the same time The board is tested, which greatly improves the test efficiency as well as the stability and accuracy of the test.
本发明实施例还提供了一种POS机主板的自动测试系统,图2是本发明实施例提供的一种POS机主板的自动测试系统的模块结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。The embodiment of the present invention also provides an automatic test system for the main board of the POS machine. Figure 2 is a schematic diagram of the module structure of the automatic test system for the main board of the POS machine provided by the embodiment of the present invention. The part related to the embodiment of the invention.
如图2所示,该POS机主板的自动测试系统包括上述的POS机主板的自动测试装置1和控制终端2。As shown in FIG. 2 , the automatic testing system for the main board of the POS machine includes the above-mentioned automatic testing device 1 for the main board of the POS machine and a control terminal 2 .
本发明实施例还提供了一种POS机主板的自动测试装置的自动测试方法,图3是本发明实施例提供的一种POS机主板的自动测试装置的自动测试方法的实现流程示意图。该自动测试方法的执行主体为POS机主板的自动测试装置。该自动测试方法用于在POS机的生产过程中,在POS机主板上的各个功能模块装配好后,对POS机主板上的各个功能模块进行程序配置和功能测试。The embodiment of the present invention also provides an automatic test method of the automatic test device for the main board of the POS machine. FIG. 3 is a schematic flow diagram of the implementation process of the automatic test method for the automatic test device for the main board of the POS machine provided by the embodiment of the present invention. The subject of execution of the automatic testing method is the automatic testing device of the main board of the POS machine. The automatic testing method is used in the production process of the POS machine, after each functional module on the main board of the POS machine is assembled, to carry out program configuration and function test on each functional module on the main board of the POS machine.
在本发明实施例中,POS机主板的自动测试装置与控制终端连接。In the embodiment of the present invention, the automatic test device of the main board of the POS machine is connected with the control terminal.
其中,控制终端可以为手机、平板电脑、笔记本电脑、台式电脑等智能终端。具体根据实际需求进行设置,此处不做限。Wherein, the control terminal may be an intelligent terminal such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer. Set it according to actual needs, and there is no limit here.
POS机主板上的功能模块包括但不限于:主控模块、音频模块、备用电源、打印模块、射频通信模块、IC卡(Integrated Circuit Card,集成电路卡)模块、SIM卡(SubscriberIdentification Module,用户身份识别卡)模块及磁卡模块等。具体根据实际需求进行设置,此处不做限制。The functional modules on the main board of the POS machine include but are not limited to: main control module, audio module, backup power supply, printing module, radio frequency communication module, IC card (Integrated Circuit Card, integrated circuit card) module, SIM card (SubscriberIdentification Module, user identity Identification card) module and magnetic card module, etc. Set it according to actual needs, and there is no limitation here.
自动测试装置上设置有用于装载POS机主板的至少一个测试夹具。每个测试夹具上均设置有多个探针,多个探针的第一端分别与自动测试装置中的相应测试模块连接,多个探针的第二端分别与POS机主板上的各个功能模块的测试端口相对应。多个探针用于在POS机主板正确安装至测试夹具中时,将POS机主板上的各个功能模块的测试端口与自动测试装置中的相应测试模块和控制终端进行连接,以实现POS机主板上的各个功能模块与自动测试装置中的相应测试模块和控制终端之间的数据传输、电信号导通或电信号切换。The automatic test device is provided with at least one test fixture for loading the main board of the POS machine. Each test fixture is provided with a plurality of probes, the first ends of the plurality of probes are respectively connected with the corresponding test modules in the automatic test device, and the second ends of the plurality of probes are respectively connected with each function on the main board of the POS machine. corresponding to the test port of the module. Multiple probes are used to connect the test ports of each functional module on the POS machine main board with the corresponding test modules and control terminals in the automatic test device when the POS machine main board is correctly installed in the test fixture, so as to realize the POS machine main board Data transmission, electrical signal conduction or electrical signal switching between each functional module on the computer and the corresponding test module and control terminal in the automatic test device.
如图3所示,一种POS机主板的自动测试装置的自动测试方法可以包括以下步骤:As shown in Figure 3, the automatic testing method of the automatic testing device of a kind of POS machine main board can comprise the following steps:
S301:若检测到待测主板被正确装载至所述自动测试装置的至少一个测试夹具中,则对所述待测主板上的备用电源进行测试。S301: If it is detected that the mainboard to be tested is correctly loaded into at least one test fixture of the automatic test device, test the backup power supply on the mainboard to be tested.
在实际应用中,在对POS机主板进行测试时,测试人员可同时将多个待测主板分别装载至自动测试装置的不同测试夹具中,以同时对多个待测主板进行测试,这样可以有效提高测试效率。In practical application, when testing the main board of POS machine, the tester can load multiple main boards to be tested into different test fixtures of the automatic test device at the same time, so as to test multiple main boards to be tested at the same time, which can effectively Improve testing efficiency.
在同时对多个待测主板进行测试时,控制终端为每个待测主板对应的测试模块分配独立的线程,即每个待测主板的硬件资源相互独立。When testing multiple motherboards to be tested at the same time, the control terminal allocates independent threads to the test modules corresponding to each motherboard to be tested, that is, the hardware resources of each motherboard to be tested are independent of each other.
在本发明实施例中,待测主板被正确装载至自动测试装置的测试夹具中具体指待测主板被装载至自动测试装置的测试夹具中,使得待测主板上的各个功能模块的测试端口与测试夹具上的相应的探针一一对应,以将主板上的各个功能模块的测试端口与自动测试装置的相应的测试模块进行连接导通(此时,待测主板并未上电)。In the embodiment of the present invention, the main board to be tested is correctly loaded into the test fixture of the automatic test device, specifically refers to that the main board to be tested is loaded into the test fixture of the automatic test device, so that the test ports of each functional module on the main board to be tested are connected to the The corresponding probes on the test fixture are in one-to-one correspondence to connect the test ports of each functional module on the main board with the corresponding test modules of the automatic test device (at this time, the main board to be tested is not powered on).
在实际应用中,可以通过传感器或光栅来检测待测主板是否被正确装载测试夹具中。具体的,传感器或光栅若检测到待测主板被正确装载至自动测试装置的测试夹具中,则输出相应的电平信号。若接收到传感器或光栅输出的相应的电平信号,则判断待测主板被正确装载测试夹具中。In practical applications, sensors or gratings can be used to detect whether the motherboard to be tested is correctly loaded into the test fixture. Specifically, if the sensor or the grating detects that the motherboard to be tested is correctly loaded into the test fixture of the automatic test device, it outputs a corresponding level signal. If the corresponding level signal output by the sensor or the grating is received, it is judged that the main board to be tested is correctly loaded in the test fixture.
本发明实施例中,在检测到待测主板被正确装载至自动测试装置的至少一个测试夹具后,在待测主板未上电的情况下,对待测主板上的备用电源进行测试。In the embodiment of the present invention, after detecting that the mainboard to be tested is correctly loaded to at least one test fixture of the automatic test device, the backup power supply on the mainboard to be tested is tested when the mainboard is not powered on.
需要说明的是,待测主板上的备用电源具体用于在POS机待机或关机状态下,为POS机的一些接口模块、启动模块等提供电能。在实际应用中,备用电源可以为锂电池,优选的,为了节省空间,备用电源可以为纽扣式锂电池。当然,备用电源还可以为其他类型的电池,具体根据实际情况进行设置,此处不做限制。It should be noted that the backup power supply on the mainboard to be tested is specifically used to provide power for some interface modules and start-up modules of the POS machine when the POS machine is in a standby or shutdown state. In practical applications, the backup power supply may be a lithium battery, preferably, in order to save space, the backup power supply may be a button-type lithium battery. Of course, the backup power supply can also be other types of batteries, which are set according to actual conditions, and there is no limitation here.
进一步的,步骤S301还可以包括以下步骤:Further, step S301 may also include the following steps:
若检测到待测主板被正确装载至所述自动测试装置的至少一个测试夹具中,则对所述待测主板上的备用电源的电流进行采集。If it is detected that the mainboard to be tested is correctly loaded into at least one test fixture of the automatic test device, the current of the backup power supply on the mainboard to be tested is collected.
将采集结果返回至所述控制终端,以使所述控制终端对所述备用电源的电值进行测试,并在测试完成后,从生产管理系统中获取所述待测主板对应的订单信息,且根据所述订单信息输出相应的扩展序列号和预设测试程序。Returning the collection result to the control terminal, so that the control terminal tests the electrical value of the backup power supply, and after the test is completed, obtains the order information corresponding to the motherboard to be tested from the production management system, and Outputting the corresponding extended serial number and preset test program according to the order information.
在实际应用中,可以通过采集备用电源的电压来对对待测主板上的备用电源的电流进行测试。例如,可以通过电流采样电阻将备用电源输出的电流信号转换为相应的电压信号;通过放大器对电压信号进行放大;通过模数转换器将放大后的电压信号转换为相应的数字信号,并将该数字信号输出至控制终端,以使控制终端对待测主板上的备用电源的电流进行测试。In practical applications, the current of the backup power supply on the mainboard to be tested can be tested by collecting the voltage of the backup power supply. For example, the current signal output by the standby power supply can be converted into a corresponding voltage signal through a current sampling resistor; the voltage signal can be amplified through an amplifier; the amplified voltage signal can be converted into a corresponding digital signal through an analog-to-digital converter, and the The digital signal is output to the control terminal, so that the control terminal can test the current of the backup power supply on the mainboard to be tested.
控制终端对待测主板上的备用电源测试完成后,控制终端可以调用第三方的动态链接库文件(Dynamic Link Library,DLL)连接预设的生产管理系统,从该预设的生产管理系统中获取与待测主板对应的订单信息。After the backup power supply test on the mainboard to be tested by the control terminal is completed, the control terminal can call a third-party dynamic link library file (Dynamic Link Library, DLL) to connect to the preset production management system, and obtain information related to the preset production management system from the preset production management system. Order information corresponding to the motherboard to be tested.
其中,订单信息可以包括但不限于:生产日期、客户信息、生产数量或POS配置信息等。具体根据实际需求进行设置,此处不做限制。Wherein, the order information may include but not limited to: production date, customer information, production quantity or POS configuration information and the like. Set it according to actual needs, and there is no limitation here.
控制终端在获取到与待测主板对应的订单信息后,根据相应的订单信息,生成用于标识待测主板的身份的唯一的扩展序列号(EXSN);且控制终端根据订单信息中的POS配置信息确定预设测试程序,该预设测试程序用于标识需要对待测主板上的哪些功能模块进行测试。After obtaining the order information corresponding to the motherboard to be tested, the control terminal generates a unique extended serial number (EXSN) for identifying the identity of the motherboard to be tested according to the corresponding order information; The information determines a preset test program, and the preset test program is used to identify which functional modules on the mainboard to be tested need to be tested.
例如,若POS配置信息中包括打印功能,则预设测试程序中则包括对待测主板上的打印模块进行测试的测试程序。POS配置信息具体根据实际需求进行设置,此处不做限制。For example, if the POS configuration information includes the printing function, the preset test program includes a test program for testing the printing module on the mainboard to be tested. POS configuration information is set according to actual needs, and there is no limitation here.
控制终端将扩展序列号和预设测试程序输出至自动测试装置。The control terminal outputs the extended serial number and the preset test program to the automatic test device.
S302:若检测到所述备用电源测试完成,则获取所述控制终端根据所述待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将所述扩展序列号和所述预设测试程序输出至所述待测主板上相应的功能模块。S302: If it is detected that the backup power supply test is completed, obtain the extended serial number and preset test program output by the control terminal according to the order information corresponding to the motherboard to be tested, and store the extended serial number and the preset test program It is assumed that the test program is output to the corresponding functional modules on the mainboard to be tested.
在本发明实施例中,若检测到所述备用电源测试完成,则获取控制终端输出端输出的扩展序列号和预设测试程序,并将该扩展序列号和预设测试程序输出至待测主板上相应的功能模块。In the embodiment of the present invention, if it is detected that the backup power supply test is completed, the extended serial number and preset test program output from the output terminal of the control terminal are obtained, and the extended serial number and preset test program are output to the main board to be tested corresponding functional modules.
例如,若预设测试程序中包括对待测主板上的音频模块进行测试的测试程序,则将与音频模块对应的测试程序输出至音频模块。For example, if the preset test program includes a test program for testing the audio module on the mainboard to be tested, the test program corresponding to the audio module is output to the audio module.
进一步的,步骤S302可以包括以下步骤:Further, step S302 may include the following steps:
若检测到所述备用电源测试完成,则获取所述控制终端根据所述待测主板对应的订单信息输出的扩展序列号,并将所述扩展序列号输出至所述待测主板上的存储模块。If it is detected that the backup power supply test is completed, then obtain the extended serial number output by the control terminal according to the order information corresponding to the mainboard to be tested, and output the extended serial number to the storage module on the mainboard to be tested .
获取所述控制终端根据所述待测主板对应的订单信息输出的预设测试程序,并将所述预设测试程序输出至所述待测主板上相应的功能模块。Obtaining a preset test program output by the control terminal according to the order information corresponding to the mainboard to be tested, and outputting the preset test program to a corresponding functional module on the mainboard to be tested.
在本发明实施例中,在检测到控制终端输出的预设测试程序正确后,将扩展序列号直接输出至待测主板上的存储模块,即将扩展序列号固化于待测主板中,以作为待测主板从该测试阶段开始到其生命终止或返厂擦除标记重新进入测试阶段的唯一的身份标识。In the embodiment of the present invention, after detecting that the preset test program output by the control terminal is correct, the extended serial number is directly output to the storage module on the mainboard to be tested, that is, the extended serial number is solidified in the mainboard to be tested as a The unique identity of the test motherboard from the beginning of the test stage to its end of life or return to the factory to erase the mark and re-enter the test stage.
在获取到控制终端输出的预设测试程序,将预设测试程序输出至待测主板上相应的功能模块。After obtaining the preset test program output by the control terminal, output the preset test program to the corresponding functional modules on the main board to be tested.
例如,若预设测试程序中包括对待测主板上的打印模块的测试程序,则将与打印模块对应的测试程序输出至打印模块,以便控制终端后续对打印模块进行测试。For example, if the preset test program includes a test program for the printing module on the mainboard to be tested, the test program corresponding to the printing module is output to the printing module, so that the control terminal can subsequently test the printing module.
在本发明实施例中,当控制终端将扩展序列号和预设测试程序传输至待测主板后,控制终端启动预设下载工具下载预设应用程序至待测主板上的主控模块。In the embodiment of the present invention, after the control terminal transmits the extended serial number and the preset test program to the mainboard to be tested, the control terminal starts the preset download tool to download the preset application program to the main control module on the mainboard to be tested.
其中,预设应用程序具体指POS机正常工作所需的所有必要文件,包括客户身份标识(CID)文件、引导(boot)文件、配置(config)文件及系统(monitor)文件等。其中,CID主要用于和待测主板上的主控模块的CPU进行绑定,且一个POS机只能绑定一个CID。Wherein, the preset application specifically refers to all necessary files required for the normal operation of the POS machine, including customer identification (CID) files, boot files, configuration files, and system monitor files. Among them, the CID is mainly used for binding with the CPU of the main control module on the motherboard to be tested, and one POS machine can only bind one CID.
预设下载工具可以为bpa(Boot Protocol Agent,引导协议代理)下载工具。该下载工具集成了待测主板的主控模块所需下载的文件的所有协议。即预设下载工具用于下载POS机正常工作所需的所有必要文件。The preset download tool may be a bpa (Boot Protocol Agent, boot protocol agent) download tool. The download tool integrates all the protocols of the files to be downloaded by the main control module of the main board to be tested. That is, the preset download tool is used to download all necessary files required for the normal operation of the POS machine.
S303:获取所述控制终端通过预设下载工具下载的预设应用程序,并将所述预设应用程序下载至所述待测主板上的主控模块。S303: Obtain a preset application program downloaded by the control terminal through a preset download tool, and download the preset application program to the main control module on the main board to be tested.
进一步的,步骤S303可以包括以下步骤:Further, step S303 may include the following steps:
获取所述控制终端通过预设下载工具下载的客户身份标识文件和引导文件,并将所述客户身份标识文件和所述引导文件下载至所述待测主板上的主控模块。Obtaining the client identification file and the boot file downloaded by the control terminal through a preset download tool, and downloading the client identification file and the boot file to the main control module on the main board to be tested.
若检测到所述客户身份标识文件和所述引导文件下载完成,则获取所述控制终端通过所述预设下载工具下载的配置文件和系统文件,并将所述配置文件和所述系统文件下载至所述待测主板上的主控模块。If it is detected that the download of the client identification file and the boot file is completed, then obtain the configuration file and system file downloaded by the control terminal through the preset download tool, and download the configuration file and the system file to the main control module on the main board to be tested.
在本发明实施例中,在通过预设下载工具下载客户身份标识文件和引导文件至待测主板时,控制终端输出程控电源控制命令至自动测试装置,以使自动测试装置对待测主板上电,控制终端读取预设下载工具返回的下载状态信息,判断下载进度,若检测到客户身份标识文件和引导文件下载完毕,则控制终端通过预设下载工具下载配置文件和系统文件。In the embodiment of the present invention, when downloading the customer identity identification file and the boot file to the main board to be tested through the preset download tool, the control terminal outputs a program-controlled power supply control command to the automatic test device, so that the automatic test device is powered on the main board to be tested, The control terminal reads the download status information returned by the preset download tool, and judges the download progress. If it detects that the client identification file and the boot file have been downloaded, the control terminal downloads the configuration file and the system file through the preset download tool.
获取控制终端通过预设下载工具下载的配置文件和系统文件,并将配置文件和系统文件下载至待测主板上的主控模块。Obtain the configuration file and system file downloaded by the control terminal through the preset download tool, and download the configuration file and system file to the main control module on the main board to be tested.
当控制终端检测到所有应用程序下载完成后,开始对待测主板上的各个功能模块进行功能测试。After the control terminal detects that all application programs have been downloaded, it starts to perform functional tests on each functional module on the mainboard to be tested.
S304:在所述待测主板上电后,根据所述预设测试程序,对所述待测主板上相应的功能模块进行功能测试。S304: After the mainboard to be tested is powered on, perform a functional test on corresponding functional modules on the mainboard to be tested according to the preset test program.
在本发明实施例中,在待测主板上电的情况下,根据预设测试程序,对待测主板上相应的功能模块进行功能测试。In the embodiment of the present invention, when the mainboard to be tested is powered on, a function test is performed on the corresponding functional modules on the mainboard to be tested according to a preset test program.
例如,若预设测试程序中包括对待测主板上的打印模块进行测试的测试程序,则对待测主板上的打印模块进行测试;若预设测试程序中包括对待测主板上的音频模块进行测试的测试程序,则对待测主板上的音频模块进行测试;若预设测试程序中包括对待测主板上的预设功能模块的电平信号进行测试的测试程序,则对待测主板上的预设功能模块的电平信号进行测试。具体根据实际需求进行设置,此处不做限制。For example, if the preset test program includes a test program for testing the print module on the main board to be tested, then the print module on the main board to be tested is tested; if the preset test program includes a test program for testing the audio module on the main board test program, the audio module on the mainboard to be tested is tested; if the preset test program includes a test program for testing the level signal of the preset functional module on the mainboard to be tested, the preset functional module on the mainboard to be tested The level signal is tested. Set it according to actual needs, and there is no limitation here.
具体的,步骤S304可以包括以下步骤:Specifically, step S304 may include the following steps:
根据预设测试程序对待测主板上的音频模块进行测试;Test the audio module on the motherboard to be tested according to the preset test procedure;
根据预设测试程序对待测主板上的预设功能模块的电平信号进行测试。Test the level signal of the preset function module on the main board to be tested according to the preset test program.
在实际应用中,待测主板上的音频模块可以包括喇叭或蜂鸣器等,具体根据实际情况进行设置,此处不做限制。In practical applications, the audio module on the mainboard to be tested may include a speaker or a buzzer, etc., which are set according to actual conditions, and are not limited here.
在本发明实施例中,可以根据预设测试程序,采集待测主板上的音频模块根据控制终端的控制指令输出的音频信号,并将采集到的音频信号返回至控制终端,以使控制终端对音频模块进行测试。In the embodiment of the present invention, according to the preset test program, the audio signal output by the audio module on the main board to be tested according to the control command of the control terminal can be collected, and the collected audio signal can be returned to the control terminal, so that the control terminal can The audio module is tested.
在实际应用中,可以采用音频采集电路对音频模块发出的音频信号进行采集。具体的,在对待测主板上的音频模块进行测试时,控制终端输出控制指令至音频模块,以使音频模块发出音频信号。采集音频模块发出的音频信号,并将采集到的音频信号输出至控制终端,以使控制终端对音频模块进行测试。具体的,控制终端可以通过分析音频信号的幅值、频率或者失真度等参数来判断音频模块是否合格,若音频信号的幅值、频率及失真度等均在预设范围内,则判断音频模块合格。In practical application, the audio signal sent by the audio module can be collected by using the audio collection circuit. Specifically, when testing the audio module on the mainboard to be tested, the control terminal outputs a control command to the audio module, so that the audio module sends out an audio signal. The audio signal sent by the audio module is collected, and the collected audio signal is output to the control terminal, so that the control terminal can test the audio module. Specifically, the control terminal can judge whether the audio module is qualified by analyzing parameters such as the amplitude, frequency, or distortion of the audio signal. If the amplitude, frequency, and distortion of the audio signal are all within the preset range, the audio module can be judged qualified.
在本发明实施例中,电平信号测试单元根据预设测试程序对待测主板上的预设功能模块的电平信号进行测试。In the embodiment of the present invention, the level signal testing unit tests the level signals of the preset functional modules on the mainboard to be tested according to a preset test program.
在实际应用中,预设功能模块可以根据订单信息中的POS配置信息进行确定,此处不做限制。例如,预设功能模块可以包括打印模块、电源模块等。In practical applications, the preset function module may be determined according to the POS configuration information in the order information, which is not limited here. For example, the preset function modules may include a printing module, a power supply module, and the like.
在本发明实施例中,可以采用由电压检测单元和模数转换器构成的采集电路对预设模块的电平信号进行采集。具体的,通过电压检测单元采集预设功能模块的预设信号的电压值,通过模数转换器将电压值转换为数字值后输出至控制终端,以使控制终端对预设功能模块的预设信号的电平进行判断。In the embodiment of the present invention, a collection circuit composed of a voltage detection unit and an analog-to-digital converter may be used to collect the level signal of the preset module. Specifically, the voltage value of the preset signal of the preset function module is collected by the voltage detection unit, and the voltage value is converted into a digital value by an analog-to-digital converter and then output to the control terminal, so that the control terminal can preset the preset function module The level of the signal is judged.
例如,采集待测主板上的电源模块的输出信号的电压值,并将点电压值转换为数字信号输出至控制终端,控制终端判断该数字信号是否为高电平信号,若为高电平信号,则说明电源模块合格。For example, collect the voltage value of the output signal of the power module on the motherboard to be tested, and convert the point voltage value into a digital signal and output it to the control terminal. The control terminal judges whether the digital signal is a high-level signal, and if it is a high-level signal , it means that the power module is qualified.
在所有预设功能模块均测试完成后,自动控制装置对待测主板进行断电。此时,控制终端显示测试结果,并待测主板上的各个功能模块均合格,则控制终端将根据订单信息生成的扩展序列号发送至生产管理系统,以使生产管理系统对该扩展序列号进行存储和备案。After all the preset function modules are tested, the automatic control device powers off the main board to be tested. At this time, the control terminal displays the test results, and all functional modules on the main board to be tested are qualified, then the control terminal sends the extended serial number generated according to the order information to the production management system, so that the production management system can check the extended serial number. storage and filing.
由此可以看出,本发明实施例提供的一种POS机主板的自动测试装置的自动测试方法,若检测到待测主板被正确装载至所述自动测试装置的至少一个测试夹具中,则对所述待测主板上的备用电源进行测试;若检测到所述备用电源测试完成,则获取所述控制终端根据所述待测主板对应的订单信息输出的扩展序列号和预设测试程序,并将所述扩展序列号和所述预设测试程序输出至所述待测主板上相应的功能模块;获取所述控制终端通过预设下载工具下载的预设应用程序,并将所述预设应用程序下载至所述待测主板上的主控模块;在所述待测主板上电后,根据所述预设测试程序,对所述待测主板上相应的功能模块进行功能测试。从而使得测试人员只需将待测电路板放置在自动测试装置的测试夹具中,便可自动完成对待测电路板的程序配置及功能测试,简化了人工操作步骤,且测试人员可同时操作多个自动测试装置以同时对多个待测电路板进行测试,极大地提高了测试效率以及测试的稳定性和准确性。It can be seen that, in the automatic testing method of the automatic testing device of a kind of POS machine main board provided by the embodiment of the present invention, if it is detected that the main board to be tested is correctly loaded in at least one test fixture of the automatic testing device, then the The backup power supply on the mainboard to be tested is tested; if it is detected that the backup power supply test is completed, the extended serial number and the preset test program output by the control terminal according to the order information corresponding to the mainboard to be tested are obtained, and Output the extended serial number and the preset test program to the corresponding functional modules on the mainboard to be tested; obtain the preset application program downloaded by the control terminal through the preset download tool, and apply the preset The program is downloaded to the main control module on the main board to be tested; after the main board to be tested is powered on, a functional test is performed on the corresponding functional modules on the main board to be tested according to the preset test program. Therefore, the tester only needs to place the circuit board to be tested in the test fixture of the automatic test device, and then the program configuration and functional test of the circuit board to be tested can be automatically completed, which simplifies the manual operation steps, and the tester can simultaneously operate multiple The automatic test device can test multiple circuit boards to be tested at the same time, which greatly improves the test efficiency, stability and accuracy of the test.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611243960.6ACN106771972B (en) | 2016-12-29 | 2016-12-29 | A kind of automatic testing device, system and method of POS machine main board |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611243960.6ACN106771972B (en) | 2016-12-29 | 2016-12-29 | A kind of automatic testing device, system and method of POS machine main board |
| Publication Number | Publication Date |
|---|---|
| CN106771972Atrue CN106771972A (en) | 2017-05-31 |
| CN106771972B CN106771972B (en) | 2020-01-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611243960.6AActiveCN106771972B (en) | 2016-12-29 | 2016-12-29 | A kind of automatic testing device, system and method of POS machine main board |
| Country | Link |
|---|---|
| CN (1) | CN106771972B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107329873A (en)* | 2017-08-17 | 2017-11-07 | 伟创力电子技术(苏州)有限公司 | A kind of ICT test control systems |
| CN107357619A (en)* | 2017-07-07 | 2017-11-17 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for generating card configuration file |
| CN110320428A (en)* | 2019-07-01 | 2019-10-11 | 江西洪都航空工业集团有限责任公司 | A kind of Kind of Missile Control Computer interface automatization test system |
| CN111505473A (en)* | 2019-01-31 | 2020-08-07 | 佛山市顺德区顺达电脑厂有限公司 | Power supply mosfet detection device |
| CN112649717A (en)* | 2020-09-15 | 2021-04-13 | 广州市几米物联科技有限公司 | Test method, test device, terminal equipment and storage medium |
| CN112764983A (en)* | 2021-02-03 | 2021-05-07 | 深圳宝新创科技股份有限公司 | Automatic test method and device and electronic equipment |
| CN113626268A (en)* | 2021-08-12 | 2021-11-09 | 深圳市美恩微电子有限公司 | Automatic test system and method for mainboard |
| CN113777464A (en)* | 2020-06-10 | 2021-12-10 | 深南电路股份有限公司 | Circuit board function testing device, system and method |
| WO2021253811A1 (en)* | 2020-06-16 | 2021-12-23 | 普源精电科技股份有限公司 | Test function module, and multi-functional testing system and method |
| CN114697244A (en)* | 2022-03-24 | 2022-07-01 | 电信科学技术第五研究所有限公司 | Test system suitable for storage area network intermediate node equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070005150A1 (en)* | 2005-06-16 | 2007-01-04 | Via Technologies, Inc. | Remote testing system and method |
| CN101118513A (en)* | 2006-08-03 | 2008-02-06 | 鸿富锦精密工业(深圳)有限公司 | Board testing system and method |
| CN101739770A (en)* | 2009-11-21 | 2010-06-16 | 百富计算机技术(深圳)有限公司 | Automatic test control system and method in production of POS machine |
| CN102147446A (en)* | 2010-02-09 | 2011-08-10 | 佛山市顺德区顺达电脑厂有限公司 | Automatic testing method and system applying same |
| CN204066270U (en)* | 2014-08-27 | 2014-12-31 | 百富计算机技术(深圳)有限公司 | POS proving installation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070005150A1 (en)* | 2005-06-16 | 2007-01-04 | Via Technologies, Inc. | Remote testing system and method |
| CN101118513A (en)* | 2006-08-03 | 2008-02-06 | 鸿富锦精密工业(深圳)有限公司 | Board testing system and method |
| CN101739770A (en)* | 2009-11-21 | 2010-06-16 | 百富计算机技术(深圳)有限公司 | Automatic test control system and method in production of POS machine |
| CN102147446A (en)* | 2010-02-09 | 2011-08-10 | 佛山市顺德区顺达电脑厂有限公司 | Automatic testing method and system applying same |
| CN204066270U (en)* | 2014-08-27 | 2014-12-31 | 百富计算机技术(深圳)有限公司 | POS proving installation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107357619A (en)* | 2017-07-07 | 2017-11-17 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for generating card configuration file |
| CN107357619B (en)* | 2017-07-07 | 2020-06-26 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for generating card configuration file |
| CN107329873A (en)* | 2017-08-17 | 2017-11-07 | 伟创力电子技术(苏州)有限公司 | A kind of ICT test control systems |
| CN111505473A (en)* | 2019-01-31 | 2020-08-07 | 佛山市顺德区顺达电脑厂有限公司 | Power supply mosfet detection device |
| CN110320428A (en)* | 2019-07-01 | 2019-10-11 | 江西洪都航空工业集团有限责任公司 | A kind of Kind of Missile Control Computer interface automatization test system |
| CN113777464A (en)* | 2020-06-10 | 2021-12-10 | 深南电路股份有限公司 | Circuit board function testing device, system and method |
| WO2021253811A1 (en)* | 2020-06-16 | 2021-12-23 | 普源精电科技股份有限公司 | Test function module, and multi-functional testing system and method |
| CN112649717A (en)* | 2020-09-15 | 2021-04-13 | 广州市几米物联科技有限公司 | Test method, test device, terminal equipment and storage medium |
| CN112764983A (en)* | 2021-02-03 | 2021-05-07 | 深圳宝新创科技股份有限公司 | Automatic test method and device and electronic equipment |
| CN113626268A (en)* | 2021-08-12 | 2021-11-09 | 深圳市美恩微电子有限公司 | Automatic test system and method for mainboard |
| CN114697244A (en)* | 2022-03-24 | 2022-07-01 | 电信科学技术第五研究所有限公司 | Test system suitable for storage area network intermediate node equipment |
| CN114697244B (en)* | 2022-03-24 | 2023-08-11 | 电信科学技术第五研究所有限公司 | Test system suitable for storage area network intermediate node equipment |
| Publication number | Publication date |
|---|---|
| CN106771972B (en) | 2020-01-17 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106771972B (en) | A kind of automatic testing device, system and method of POS machine main board | |
| CN110658400B (en) | Embedded test method, microcontroller and system | |
| CN112014788B (en) | Load identification module detection method based on wave recording file playback | |
| CN103728547A (en) | Test system and leakage current test method for testing circuit board | |
| CN102955732A (en) | CPU (Central Processing Unit) testing system and testing jig thereof | |
| US11293969B2 (en) | System and method for automatic test-setup hardware detection and extension | |
| CN114266153A (en) | A CMU testing method, device and system | |
| CN107063501A (en) | The detection process method and system of a kind of electronic equipment internal temperature | |
| CN111351994B (en) | System for realizing automatic test for wireless charging device and corresponding method | |
| CN110764044A (en) | Voltage ripple detection device, system and detection method thereof | |
| CN114280410B (en) | Automatic testing machine with signal processing function and information processing method thereof | |
| CN114121137A (en) | A kind of Nand Flash particle power consumption testing system and method | |
| CN210665952U (en) | Integrated circuit chip test system | |
| CN117311312A (en) | Control signal detection method and device, storage medium and electronic equipment | |
| CN117761502A (en) | Method and device for verifying quality of board card, electronic equipment and storage medium | |
| CN117390862A (en) | Performance evaluation methods, devices and equipment for AC/DC conversion equipment | |
| CN117074828A (en) | Detection device for main board electric power parameters | |
| CN106338745B (en) | Based on GNSS receiver hardware module automated detection method | |
| CN210181590U (en) | MCU parameter testing system | |
| CN107621988A (en) | A method and system for locating downtime faults in DC testing | |
| CN106788790B (en) | Test system of bluetooth smart card | |
| CN110967588A (en) | Card testing system and method | |
| CN113518295A (en) | Hearing aid chip test system and test method thereof | |
| CN207008007U (en) | A kind of device tested automatically PCBA | |
| CN117849597B (en) | Circuit board testing device |
| 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 |