A fingerprint identification interface test device, a control method and device thereof, and a medium

By using an automated fingerprint recognition interface testing device, which automatically detects and verifies data through the controller and data transmission link, the problem of low human-computer interaction efficiency in existing technologies is solved, and efficient fingerprint recognition interface communication function testing is achieved.

CN116860539BActive Publication Date: 2026-07-03INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-07-21
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In the current fingerprint recognition interface testing process, it is necessary to pre-encode the operator's fingerprint and conduct human-computer interaction, which leads to low testing efficiency and is prone to recognition errors due to factors such as sweaty or peeling fingers.

Method used

A fingerprint recognition interface testing device is provided. Through a controller and a data transmission link, it automatically sends and receives verification data, compares the first verification data and the second verification data to see if they meet preset conditions, and determines whether the transmission function of the fingerprint recognition interface is normal, thereby reducing human-computer interaction testing time.

Benefits of technology

This improved the testing efficiency of the fingerprint recognition interface communication function, reduced testing time, and avoided errors and waste caused by manual fingerprint entry and pressing the module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860539B_ABST
    Figure CN116860539B_ABST
Patent Text Reader

Abstract

This invention relates to the field of hardware testing and discloses a fingerprint recognition interface testing device and its control method, apparatus, and medium, comprising: a controller and a data transmission link; the input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test; the controller is used to send first verification data to the fingerprint recognition interface under test through the data transmission link and receive second verification data returned by the fingerprint recognition interface under test, comparing whether the first verification data and the second verification data meet preset conditions; if they do, it is determined that the transmission function of the fingerprint recognition interface under test is normal. This invention determines whether there are errors in the data received by the fingerprint recognition interface under test by detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, thereby reducing testing time and improving the testing efficiency of the fingerprint recognition interface communication function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of functional testing, and in particular to a fingerprint recognition interface testing device and its control method, apparatus, and medium. Background Technology

[0002] With the development of biometric technology, fingerprint recognition, with its advantages of security, reliability, and ease of operation, is increasingly being used in various electronic devices (such as mobile phones and wearable devices) to provide fingerprint services to users. Currently, most computers provide fingerprint recognition interfaces, which connect to external fingerprint recognition modules, allowing users to perform human-computer interaction via fingerprints for operations such as powering on / off, unlocking devices, and authentication. To ensure normal fingerprint recognition service for users, it is essential to ensure proper communication between the computer's fingerprint recognition interface and the external fingerprint recognition module. Therefore, functional testing of the fingerprint recognition interface provided by the motherboard is particularly important during the computer motherboard manufacturing process.

[0003] Figure 1 This is a schematic diagram of a fingerprint recognition interface, as shown below. Figure 1 As shown, the fingerprint recognition interface includes Universal Serial Bus (USB) pins, Universal Asynchronous Receiver / Transmitter (UART) pins, power supply pins, etc. Currently, the communication function of the fingerprint recognition interface is mostly tested manually by operators. During the test, the operator first registers their fingerprint in the computer, then presses the fingerprint recognition module to input commands such as power on / off and login authorization. By checking whether these commands are executed correctly, the operator determines whether the fingerprint recognition interface can transmit data normally. However, registering the operator's fingerprint in the system is time-consuming; pressing the fingerprint recognition module may cause recognition errors due to sweaty or peeling fingers, requiring repeated pressing; and the final test result requires subjective judgment and manual input by the operator. These factors result in low testing efficiency for existing fingerprint recognition interfaces.

[0004] Therefore, how to provide a more efficient testing solution to improve the testing efficiency of fingerprint recognition interface communication functions is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to solve the problem of low testing efficiency in existing fingerprint recognition interface testing work due to the need to pre-encode the operator's fingerprint and perform human-computer interaction. Therefore, this invention provides a fingerprint recognition interface testing device and its control method, apparatus, and medium to reduce the testing time of fingerprint recognition interface communication functions and improve the testing efficiency of fingerprint recognition interface communication functions.

[0006] To address the aforementioned technical problems, the present invention also provides a fingerprint recognition interface testing device, comprising:

[0007] Controller and data transmission link;

[0008] The input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test.

[0009] The controller is used to send first verification data to the fingerprint recognition interface under test through the data transmission link, and receive second verification data returned by the fingerprint recognition interface under test. It compares whether the first verification data and the second verification data meet preset conditions. If they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

[0010] The second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data.

[0011] In some embodiments, the data transmission link includes: a communication link and a configuration detection link;

[0012] The first end of the communication link is connected to the controller, and the second end of the communication link is connected to the communication link under test of the fingerprint recognition interface under test.

[0013] The first input terminal of the configuration detection link is connected to the first configuration pin of the fingerprint recognition interface under test, and the second input terminal of the configuration detection link is connected to the second configuration pin of the fingerprint recognition interface under test, so as to obtain the voltage values ​​of the first configuration pin and the second configuration pin;

[0014] The controller is connected to the output of the configuration detection link to determine whether the first configuration pin and the second configuration pin are normal based on the voltage values ​​of the first configuration pin and the second configuration pin.

[0015] If normal, then determine whether the first verification data and the second verification data are consistent.

[0016] In some embodiments, the controller includes a first controller and a second controller;

[0017] The first controller is connected to both the first end of the communication link and the output end of the configuration detection link;

[0018] The first end of the second controller is connected to the host computer to obtain test instructions and generate control signals according to the test instructions; the second end of the second controller is connected to the first controller to control the first controller through the control signals.

[0019] The second controller is also used to acquire the test results generated by the first controller and generate a log file based on the test results, so that the operator can determine whether the fingerprint recognition interface under test is faulty based on the log file.

[0020] In some embodiments, a power supply circuit is also included, the power supply circuit including at least a relay;

[0021] The input terminal of the relay is connected to the power pin of the fingerprint recognition interface under test, and the output terminal of the relay is connected to the first controller.

[0022] The control terminal of the relay is connected to the second controller to conduct under the control of the control signal sent by the second controller.

[0023] In some embodiments, a power off button test circuit is also included;

[0024] The first terminal of the power off button test circuit is connected to the power off pin of the fingerprint recognition interface under test;

[0025] The first controller is connected to the second end of the power off button test circuit to determine whether a power off command is detected after the power off button is triggered. If the power off command is detected, it is determined that the key button is working normally.

[0026] In some embodiments, the communication link includes a universal serial bus link and an asynchronous transceiver link.

[0027] To address the aforementioned technical problems, the present invention also provides a control method for a fingerprint recognition interface testing device, applied to a fingerprint recognition interface testing device including a controller and a data transmission link, wherein the input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test; the control method for the fingerprint recognition interface testing device includes:

[0028] The first verification data is sent to the fingerprint recognition interface under test through the data transmission link, and the second verification data returned by the fingerprint recognition interface under test is received; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data;

[0029] Compare whether the first verification data and the second verification data meet the preset conditions;

[0030] If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal.

[0031] If the conditions are not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

[0032] In some embodiments, before the step of sending first verification data to the fingerprint recognition interface under test via the data transmission link and receiving second verification data returned by the fingerprint recognition interface under test, the method further includes:

[0033] Determine whether a power-off command sent by the power-off pin of the fingerprint recognition interface under test has been detected;

[0034] If the shutdown command is detected, the capture process in the waiting queue is invoked to capture the shutdown event in the system;

[0035] A successful capture message is sent to the controller, and the shutdown event and the capture process are destroyed.

[0036] In some embodiments, comparing whether the first verification data and the second verification data meet preset conditions includes:

[0037] Obtain the first verification code corresponding to the first verification data and the second verification code corresponding to the second verification data;

[0038] Determine whether the first check code and the second check code are consistent;

[0039] If they match, then determine whether configuration normal information has been received; wherein, the configuration normal information is information generated by the controller when it determines that the voltage of the first configuration pin and the second configuration pin of the fingerprint recognition interface under test is normal through the configuration detection link;

[0040] If the configuration is normal, it is determined that the first verification data and the second verification data meet the preset conditions.

[0041] Accordingly, after the step of determining that the transmission function of the fingerprint recognition interface under test is normal, the method further includes:

[0042] Determine whether the capture success message has been received;

[0043] If the capture success message is received, it is determined that the fingerprint recognition interface under test is normal.

[0044] To address the aforementioned technical problems, the present invention also provides a fingerprint recognition interface testing device control device, applied to a fingerprint recognition interface testing device including a controller and a data transmission link, wherein the input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test; the fingerprint recognition interface testing device control device includes:

[0045] The sending module is used to send first verification data to the fingerprint recognition interface under test through the data transmission link, and to receive second verification data returned by the fingerprint recognition interface under test; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data;

[0046] The comparison module is used to compare whether the first verification data and the second verification data meet preset conditions;

[0047] If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal.

[0048] If the conditions are not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

[0049] To address the aforementioned technical problems, the present invention also provides a control device for a fingerprint recognition interface testing device, including a memory for storing computer programs;

[0050] A processor is used to implement the steps of the fingerprint recognition interface testing device control method when executing the computer program.

[0051] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the fingerprint recognition interface testing device control method.

[0052] This invention provides a fingerprint recognition interface testing device, comprising: a controller and a data transmission link; the input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test; the controller is used to send first verification data to the fingerprint recognition interface under test through the data transmission link, and receive second verification data returned by the fingerprint recognition interface under test, comparing whether the first verification data and the second verification data meet preset conditions. If they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data. Therefore, the technical solution provided by this invention, by detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, determines whether there is an error in the data received by the fingerprint recognition interface under test, thereby achieving the testing of the communication function. Compared with the prior art, it eliminates the need to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and thus improving the testing efficiency of the fingerprint recognition interface communication function.

[0053] In addition, the present invention also provides a control method, device, and medium for a fingerprint recognition interface testing device, which are applied to the above-mentioned fingerprint recognition interface testing device and have the same effect. Attached Figure Description

[0054] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0055] Figure 1 This is a schematic diagram of a fingerprint recognition interface;

[0056] Figure 2 This is a structural diagram of a fingerprint recognition interface testing device provided in an embodiment of the present invention;

[0057] Figure 3 A flowchart of a fingerprint recognition interface testing device control method provided in an embodiment of the present invention;

[0058] Figure 4 This is a structural diagram of a control device for a fingerprint recognition interface testing apparatus provided in an embodiment of the present invention;

[0059] Figure 5 This is a structural diagram of another fingerprint recognition interface testing device control device provided in an embodiment of the present invention;

[0060] The attached diagram is labeled as follows: 1 is the controller, 2 is the data transmission link, 3 is the communication link, 4 is the configuration detection link, 5 is the power supply circuit, and 6 is the power off button test circuit. Detailed Implementation

[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0062] The core of this invention is to provide a fingerprint recognition interface testing device and its control method, apparatus, and medium, so as to reduce the testing time of fingerprint recognition interface communication functions and improve the testing efficiency of fingerprint recognition interface communication functions.

[0063] The technical solution provided by this invention is applied to Figure 1 The fingerprint recognition interface test scenario shown is used to test the communication function of the fingerprint recognition interface built into the computer. In current applications, the computer connects to an external fingerprint recognition module via the fingerprint recognition interface on the motherboard to provide fingerprint services to users. This allows users to perform operations such as powering on / off and authentication login using the fingerprint recognition module. Therefore, to ensure that the computer can provide fingerprint services normally, it is necessary to test the fingerprint recognition interface built into the computer motherboard to ensure that the fingerprint recognition interface can communicate normally.

[0064] In practice, testing fingerprint recognition interfaces typically requires operators to first register their fingerprints in the computer, then press the fingerprint recognition module to input commands such as power on / off and login authorization. By checking if these commands are executed correctly, the system can be judged whether the fingerprint recognition interface can transmit data properly. However, registering the operator's fingerprints in the system is time-consuming; pressing the fingerprint recognition module may cause recognition errors due to sweaty or peeling fingers, requiring repeated pressing; and the final test results require subjective judgment and manual input by the operator. These factors result in low testing efficiency for existing fingerprint recognition interfaces. To improve testing efficiency, this invention provides a fingerprint recognition interface testing device, which includes a controller and a data transmission link. The input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test. The controller is used to send first verification data to the fingerprint recognition interface under test through the data transmission link and receive second verification data returned by the fingerprint recognition interface under test. It compares whether the first and second verification data meet preset conditions. If they do, the transmission function of the fingerprint recognition interface under test is determined to be normal; otherwise, the transmission function is determined to be abnormal. The second verification data returned by the fingerprint recognition interface under test is generated by the motherboard under test based on the first verification data after receiving it. Therefore, the technical solution provided by this invention detects whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, thereby determining whether there are errors in the data received by the fingerprint recognition interface under test, thus achieving the testing of the communication function. Compared with existing technologies, it eliminates the need to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and improving the testing efficiency of the fingerprint recognition interface's communication function.

[0065] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0066] Figure 2 This is a structural diagram of a fingerprint recognition interface testing device provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the device includes: a controller 1 and a data transmission link 2;

[0067] The input side of data transmission link 2 is connected to controller 1, and the output side of data transmission link 2 is connected to the fingerprint recognition interface under test.

[0068] The controller 1 is used to send first verification data to the fingerprint recognition interface under test through the data transmission link 2, and receive second verification data returned by the fingerprint recognition interface under test. It compares whether the first verification data and the second verification data meet the preset conditions. If they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

[0069] The second verification data returned by the fingerprint recognition interface under test is the data generated by the motherboard under test based on the first verification data after receiving the first verification data.

[0070] In practical implementation, to ensure the fingerprint recognition interface provided by the computer functions properly, it is necessary for operators to test it by using the fingerprint recognition module to perform operations such as powering on / off and authentication login, in order to determine whether the fingerprint recognition interface is working properly. However, this testing process requires pre-registering the operator's fingerprint information and repeatedly pressing the fingerprint recognition module, which is relatively complex and results in low testing efficiency and wasted manpower. Therefore, to improve testing efficiency, the technical solution provided by this invention allows testing of the fingerprint recognition interface without using a fingerprint recognition module. When the communication link 3 of the fingerprint recognition interface is normal, the fingerprint recognition interface can transmit data normally, and it can be considered that the fingerprint recognition interface is communicating normally.

[0071] It should be noted that the first verification data in this invention is the data sent by the controller 1 of the test device. The first verification data is sent to the motherboard under test where the fingerprint recognition interface is located through the fingerprint recognition interface. After receiving the first verification data, the motherboard under test sends the second verification data to the fingerprint recognition interface test device through the fingerprint recognition interface according to the preset program, so that the test device can determine whether the communication function of the fingerprint recognition interface under test is normal based on whether the first verification data and the second verification data meet the preset conditions. The second verification data can be exactly the same as the test data received by the motherboard under test. In this case, when the testing device detects that the first verification data and the second verification data are completely consistent, it indicates that the communication function of the fingerprint recognition interface under test is normal. The second verification data can also be other data. For example, the motherboard under test equipped with the fingerprint recognition interface under test is pre-matched with the testing device, and the test information is pre-stored in the motherboard under test. The testing device sends the first verification data containing the test information to the motherboard under test through the fingerprint recognition interface under test. The motherboard under test compares the received first verification data with the pre-stored test information to determine whether the first verification data matches the test information. If they match, the motherboard sends the corresponding feedback information to the testing device as the second verification data. When the testing device detects that the second verification data meets the preset conditions, it determines that the fingerprint recognition interface under test meets the preset conditions.

[0072] It is understood that in the technical solution provided by this invention, when the second verification data can be exactly the same as the test data received by the motherboard under test, each bit of the data can be directly compared to determine whether the first verification data and the second verification data are consistent; alternatively, a verification code can be generated based on the first and second verification data, and the consistency of the verification codes can be compared to determine whether the fingerprint recognition interface is communicating normally. In a specific implementation, after receiving the first verification data, the fingerprint recognition interface sends the first verification data to the fingerprint recognition interface processor connected to the fingerprint recognition interface. The fingerprint recognition interface processor, according to a pre-set program, sends the acquired first verification data to the test device under the name of the second verification data through the fingerprint recognition interface under test. The test device generates a second verification code based on the received second verification data. Since the data sent by the fingerprint recognition interface is the same as the data it receives, if the second verification code and the first verification code are consistent, it indicates that the data acquired by the fingerprint recognition interface is consistent with the data sent by the test device.

[0073] This embodiment provides a fingerprint recognition interface testing device, including: a controller and a data transmission link; the input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test; the controller is used to send first verification data to the fingerprint recognition interface under test through the data transmission link, and receive second verification data returned by the fingerprint recognition interface under test, comparing whether the first verification data and the second verification data meet preset conditions. If they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data. Therefore, the technical solution provided by this invention, by detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, determines whether there is an error in the data received by the fingerprint recognition interface under test, thereby achieving the testing of the communication function. Compared with the prior art, it eliminates the need to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and thus improving the testing efficiency of the fingerprint recognition interface communication function.

[0074] In specific implementation, data transmission link 2 includes communication link 3 for transmitting fingerprint information or instruction information and configuration detection link 4 for configuring the working status of the fingerprint recognition interface.

[0075] like Figure 2As shown, the first serial port (ttyUSB0) of communication link 3 is connected to controller 1, and the second serial port (ttyUSB1) of communication link 3 is connected to the communication link under test of the fingerprint recognition interface. Communication link 3 includes a universal serial bus link and an asynchronous transceiver link. It can be understood that communication link 3 includes a USB communication link 3 and a UART communication link 3, both of which can have their communication functions assessed using the solution provided by this invention. Specifically, first verification data can be sent to the motherboard under test via the USB link and the UART link, respectively, and second verification data returned by the two communication links 3 can be received. The consistency between the first verification data and the corresponding second verification data is then determined; if they are consistent, it indicates that the corresponding communication link 3 is working normally. Furthermore, to further improve testing efficiency, the first verification data can be sent only via the USB link (or UART link), and the second verification data can be received via the UART link (or USB link), thereby simultaneously testing both communication links 3.

[0076] The first input terminal IO1 of the configuration detection link 4 is connected to the first configuration pin FPVCC1 of the fingerprint recognition interface under test, and the second input terminal IO2 of the configuration detection link 4 is connected to the second configuration pin FPVCC2 of the fingerprint recognition interface under test to obtain the voltage values ​​of the first configuration pin and the second configuration pin; the controller 1 is connected to the output terminal of the configuration detection link 4 to determine whether the first configuration pin and the second configuration pin are normal based on the voltage values ​​of the first configuration pin and the second configuration pin; if normal, it determines whether the first verification data and the second verification data are consistent.

[0077] In specific implementation, controller 1 detects whether the first input terminal IO1 and the second input terminal IO2 are at a high level. If they are not at a high level, it indicates that there is an abnormality in the fingerprint recognition interface under test, and the abnormality information is recorded. Controller 1 pulls the first input terminal IO1 low and detects whether the second input terminal IO2 is at a low level. If it is not at a low level, it indicates that there is an abnormality in the fingerprint recognition interface under test, and the abnormality information is recorded.

[0078] In the existing fingerprint recognition interface testing process, the detection results need to be judged and recorded manually, which wastes a lot of time and labor costs. In order to solve this problem, the technical solution provided by the present invention obtains the test results through controller 1 and generates test logs based on the test results, so as to further improve the testing efficiency.

[0079] Furthermore, since controller 1 performs testing and generates test logs simultaneously, a failure in the testing process may corrupt the previously generated test logs, leading to reduced system reliability. To improve the reliability of the fingerprint recognition interface testing device provided by this invention, two controllers 1 can be configured in the system, one to perform the testing task and the other to generate the test file. In a preferred embodiment, controller 1 includes a first controller and a second controller; the first controller is connected to the first end of the communication link 3 and the output end of the configuration detection link 4; the first end of the second controller is connected to a host computer to obtain test instructions and generate control signals based on the test instructions; the second end of the second controller is connected to the first controller to control the first controller via the control signals; the second controller is also used to obtain the test results generated by the first controller and generate log files based on the test results, so that operators can determine whether the fingerprint recognition interface under test is faulty based on the log files.

[0080] It is understood that the second controller mentioned in this invention can be the controller 1 of a host computer device such as a computer, through which the operator directly obtains test results and sends test commands to control the test process; it can also be an additional microprocessor, which is not limited here. The second solution has a lower cost, but compared with the second solution, although the first solution has a higher cost, it can provide more computing resources and further improve the reliability of the test system.

[0081] In a preferred embodiment, the power supply circuit 5 of the fingerprint recognition interface testing device provided by the present invention is powered by the power pin of the fingerprint recognition interface under test, thereby determining whether the power pin of the fingerprint recognition interface under test is powered normally. In specific implementation, in order to facilitate the use of the second controller to control the working state of the first controller, the power supply circuit 5 includes at least a relay; the input terminal of the relay is connected to the power pin of the fingerprint recognition interface under test, and the output terminal of the relay is connected to the first controller; the control terminal of the relay is connected to the second controller, so as to conduct under the control signal sent by the second controller. It can be understood that the first controller is powered by the power pin of the fingerprint recognition interface under test to detect whether the power pin is working normally. The second controller is powered by an external power supply to ensure that an abnormal test report can be generated when the power pin of the fingerprint recognition interface under test is abnormal, further improving the stability and reliability of the testing device.

[0082] In practice, when the second controller sends a control signal to the relay according to the test command, the relay is activated, and the first controller should theoretically be in the startup state. If the second controller does not receive a successful startup message from the first controller, it indicates that the power pin of the fingerprint recognition interface under test cannot supply power to the test device normally.

[0083] As a preferred embodiment, the technical solution provided by the present invention can also be used to test the power off button of the fingerprint recognition interface to determine whether the power off button can correctly control the fingerprint recognition interface to close. Based on the above embodiment, the first end of the power off button test circuit 6 is connected to the power off pin of the fingerprint recognition interface under test; the first controller is connected to the second end of the power off button test circuit 6 to determine whether a power off command is detected after the power off button is triggered. If a power off command is detected, it is determined that the key button is working normally.

[0084] Figure 3 The flowchart illustrates a control method for a fingerprint recognition interface testing device provided in this embodiment of the invention. This method is applied to a fingerprint recognition interface testing device including a controller and a data transmission link. The input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test. The control method for the fingerprint recognition interface testing device includes:

[0085] S10: Send first verification data to the fingerprint recognition interface under test through the data transmission link, and receive second verification data returned by the fingerprint recognition interface under test; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data;

[0086] S11: Compare whether the first and second verification data meet the preset conditions;

[0087] S111: If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal.

[0088] S112: If not satisfied, the transmission function of the fingerprint recognition interface under test is determined to be abnormal.

[0089] This embodiment provides a control method for a fingerprint recognition interface testing device, comprising: sending first verification data to the fingerprint recognition interface under test via a data transmission link, and receiving second verification data returned by the fingerprint recognition interface under test; comparing whether the first verification data and the second verification data meet preset conditions; if they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data. Therefore, the technical solution provided by this invention, by detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, determines whether there is an error in the data received by the fingerprint recognition interface under test, thereby achieving the testing of the communication function. Compared with the prior art, it eliminates the need to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and thus improving the testing efficiency of the fingerprint recognition interface communication function.

[0090] In practice, to test whether the power button on the fingerprint recognition interface is working properly, it is necessary to press the power button to determine if it can be powered off normally. However, this causes the fingerprint recognition interface to restart, which takes a long time and affects testing efficiency.

[0091] To address this technical problem, based on the above embodiments, before the steps of sending first verification data to the fingerprint recognition interface under test via a data transmission link and receiving second verification data returned by the fingerprint recognition interface under test, the method further includes: determining whether a shutdown command sent by the shutdown pin of the fingerprint recognition interface under test is detected; if a shutdown command is detected, invoking the capture process in the waiting queue to capture the shutdown event in the system; sending a successful capture message to the controller, and destroying the shutdown event and the capture process.

[0092] In practice, a waiting queue is pre-created in the system, and the queue and its capture process are initialized. When a shutdown signal from PWRBTN is detected, it is intercepted, and the capture process captures the QUERYENDSESSION and ENDSESSION messages. If a shutdown event is captured, a capture success message is sent to the controller to confirm that the shutdown button is working properly. Simultaneously, to reduce computational resource consumption, a capture success message is sent to the controller, and the shutdown event and capture process are destroyed. It is important to note that capturing the shutdown event within a preset time after the shutdown button is pressed indicates that the shutdown button is working properly; if no shutdown event is captured within the preset time, it indicates that the shutdown button is malfunctioning, the exception is logged to the log file, and the detection process is terminated.

[0093] In this embodiment, the QUERYENDSESSION and ENDSESSION messages are intercepted by the capture process to determine whether the power button is working properly and to prevent the fingerprint recognition interface under test from restarting frequently, thereby improving work efficiency.

[0094] In practice, to determine whether the data is consistent, each bit of the data can be compared. If each bit is consistent, the data is consistent. However, when the amount of data is too large, this operation will waste a lot of time and computing resources.

[0095] To address this technical problem, based on the above embodiments, this invention determines data consistency by comparing checksums of different data. If the checksums match, it indicates that the corresponding data is consistent. Common checksum calculation methods include hash check and Cyclic Redundancy Check (CRC). This invention uses the CRC-8 algorithm to compare whether the first and second checksums meet preset conditions, specifically including:

[0096] The first and second verification data are processed using the CRC-8 algorithm to obtain the first verification code corresponding to the first verification data and the second verification code corresponding to the second verification data; it is then determined whether the first and second verification codes are consistent; if they are consistent, it is then determined whether a normal configuration information has been received; wherein, the normal configuration information is generated by the controller when it determines that the voltage of the first and second configuration pins of the fingerprint recognition interface under test is normal through the configuration detection link; if the normal configuration information is received, it is then determined that the first and second verification data meet the preset conditions.

[0097] It is understandable that when the first verification data and the second verification data meet the preset conditions, it can only indicate that the communication function of the fingerprint recognition interface under test is normal. In order to further test the fingerprint recognition interface under test, the technical solution provided in this embodiment, after determining that the transmission function of the fingerprint recognition interface under test is normal, also includes: determining whether a capture success message is received; if a capture success message is received, it is determined that the fingerprint recognition interface under test is normal.

[0098] In the above embodiments, the control method for the fingerprint recognition interface testing device has been described in detail. This invention also provides embodiments corresponding to the control device for the fingerprint recognition interface testing device. It should be noted that this invention describes the embodiments of the device from two perspectives: one based on functional modules, and the other based on hardware.

[0099] Figure 4This is a structural diagram of a fingerprint recognition interface testing device control device provided in an embodiment of the present invention. The device is applied to a fingerprint recognition interface testing device including a controller and a data transmission link. The input side of the data transmission link is connected to the controller, and the output side of the data transmission link is connected to the fingerprint recognition interface under test. Figure 4 As shown, the control device for the fingerprint recognition interface testing device includes:

[0100] The sending module 10 is used to send first verification data to the fingerprint recognition interface under test through a data transmission link, and to receive second verification data returned by the fingerprint recognition interface under test; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data;

[0101] Comparison module 11 is used to compare whether the first verification data and the second verification data meet preset conditions;

[0102] If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal.

[0103] If the conditions are not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

[0104] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.

[0105] In addition, the technical solution provided by the present invention also includes a power off button test module, which is used to determine whether a power off command sent by the power off pin of the fingerprint recognition interface under test is detected; if a power off command is detected, the capture process in the waiting queue is called to capture the power off event in the system; a capture success message is sent to the controller, and the power off event and the capture process are destroyed.

[0106] This embodiment provides a control device for a fingerprint recognition interface testing apparatus, comprising: sending first verification data to a fingerprint recognition interface under test via a data transmission link, and receiving second verification data returned by the fingerprint recognition interface under test; comparing whether the first verification data and the second verification data meet preset conditions; if they meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is normal; if they do not meet the conditions, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data. Therefore, the technical solution provided by this invention, by detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, determines whether there is an error in the data received by the fingerprint recognition interface under test, thereby achieving the testing of the communication function. Compared with the prior art, it eliminates the need to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and thus improving the testing efficiency of the fingerprint recognition interface communication function.

[0107] Figure 5 This is a structural diagram of another fingerprint recognition interface testing device control device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the fingerprint recognition interface testing device control device includes: a memory 20 for storing computer programs;

[0108] The processor 21 is used to execute computer programs to implement the steps of the fingerprint recognition interface testing device control method as described in the above embodiments.

[0109] The controller of the fingerprint recognition interface testing device control device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0110] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0111] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the fingerprint recognition interface testing device control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary storage or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, first verification data and second verification data.

[0112] In some embodiments, the fingerprint recognition interface testing device control device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0113] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the control device of the fingerprint recognition interface test device, and may include more or fewer components than shown.

[0114] The fingerprint recognition interface testing device control device provided in this embodiment of the invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method:

[0115] The first verification data is sent to the fingerprint recognition interface under test through the data transmission link, and the second verification data returned by the fingerprint recognition interface under test is received; wherein, the second verification data returned by the fingerprint recognition interface under test is the data generated by the motherboard under test based on the first verification data after receiving the first verification data;

[0116] Compare the first and second verification data to see if they meet the preset conditions. If they meet the preset conditions, the transmission function of the fingerprint recognition interface under test is determined to be normal. If they do not meet the preset conditions, the transmission function of the fingerprint recognition interface under test is determined to be abnormal.

[0117] This embodiment provides a fingerprint recognition interface testing device control device. By detecting whether the first verification data sent to the fingerprint recognition interface under test and the second verification data returned by the fingerprint recognition interface under test meet preset conditions, it can determine whether there are errors in the data received by the fingerprint recognition interface under test, thereby realizing the testing of communication functions. Compared with the prior art, it is not necessary to pre-encode the operator's fingerprint and perform human-computer interaction testing, reducing testing time and improving the testing efficiency of fingerprint recognition interface communication functions.

[0118] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps described in the above method embodiments.

[0119] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0120] The fingerprint recognition interface testing device and its control method, apparatus, and medium provided by the present invention have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to the present invention without departing from the principles of the invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

[0121] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A fingerprint recognition interface testing device, characterized in that, include: Controller (1) and data transmission link (2); The input side of the data transmission link (2) is connected to the controller (1), and the output side of the data transmission link (2) is connected to the fingerprint recognition interface under test. The controller (1) is used to send first verification data to the fingerprint recognition interface under test through the data transmission link (2), and receive second verification data returned by the fingerprint recognition interface under test. It compares whether the first verification data and the second verification data meet the preset conditions. If they meet the conditions, it determines that the transmission function of the fingerprint recognition interface under test is normal. If the condition is not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal. The second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data. The data transmission link (2) includes: a communication link (3) and a configuration detection link (4); The first end of the communication link (3) is connected to the controller (1), and the second end of the communication link (3) is connected to the communication link under test of the fingerprint recognition interface under test; The first input terminal of the configuration detection link (4) is connected to the first configuration pin of the fingerprint recognition interface under test, and the second input terminal of the configuration detection link (4) is connected to the second configuration pin of the fingerprint recognition interface under test, so as to obtain the voltage values ​​of the first configuration pin and the second configuration pin; The controller (1) is connected to the output of the configuration detection link (4) to determine whether the first configuration pin and the second configuration pin are normal based on the voltage values ​​of the first configuration pin and the second configuration pin. If normal, then determine whether the first verification data and the second verification data are consistent.

2. The fingerprint recognition interface testing device according to claim 1, characterized in that, The controller (1) includes a first controller and a second controller; The first controller is connected to both the first end of the communication link (3) and the output end of the configuration detection link (4); The first end of the second controller is connected to the host computer to obtain test instructions and generate control signals according to the test instructions; the second end of the second controller is connected to the first controller to control the first controller through the control signals. The second controller is also used to acquire the test results generated by the first controller and generate a log file based on the test results, so that the operator can determine whether the fingerprint recognition interface under test is faulty based on the log file.

3. The fingerprint recognition interface testing device according to claim 2, characterized in that, It also includes a power supply circuit (5), which includes at least a relay; The input terminal of the relay is connected to the power pin of the fingerprint recognition interface under test, and the output terminal of the relay is connected to the first controller. The control terminal of the relay is connected to the second controller to conduct under the control of the control signal sent by the second controller.

4. The fingerprint recognition interface testing device according to claim 2, characterized in that, It also includes a power off button test circuit (6); The first end of the power off button test circuit (6) is connected to the power off pin of the fingerprint recognition interface under test; The first controller is connected to the second end of the power off button test circuit (6) to determine whether a power off command is detected after the power off button is triggered. If the power off command is detected, the power off button is determined to be working normally.

5. The fingerprint recognition interface testing device according to any one of claims 1-4, characterized in that, The communication link (3) includes: a universal serial bus link and an asynchronous transceiver transmission link.

6. A control method for a fingerprint recognition interface testing device, characterized in that, A fingerprint recognition interface testing device is applied to a fingerprint recognition interface including a controller and a data transmission link, wherein the input side of the data transmission link is connected to the controller and the output side of the data transmission link is connected to the fingerprint recognition interface under test. The control method for the fingerprint recognition interface testing device includes: The first verification data is sent to the fingerprint recognition interface under test through the data transmission link, and the second verification data returned by the fingerprint recognition interface under test is received; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data; Compare whether the first verification data and the second verification data meet the preset conditions; If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal. If the condition is not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal. The step of comparing whether the first verification data and the second verification data meet the preset conditions includes: Obtain the first verification code corresponding to the first verification data and the second verification code corresponding to the second verification data; Determine whether the first check code and the second check code are consistent; If they match, then determine whether configuration normal information has been received; wherein, the configuration normal information is information generated by the controller when it determines that the voltage of the first configuration pin and the second configuration pin of the fingerprint recognition interface under test is normal through the configuration detection link; If the configuration is normal, it is determined that the first verification data and the second verification data meet the preset conditions. Accordingly, after the step of determining that the transmission function of the fingerprint recognition interface under test is normal, the method further includes: Determine whether a capture success message has been received; If the capture success message is received, it is determined that the fingerprint recognition interface under test is normal.

7. The control method for the fingerprint recognition interface testing device according to claim 6, characterized in that, Before the step of sending first verification data to the fingerprint recognition interface under test through the data transmission link and receiving second verification data returned by the fingerprint recognition interface under test, the method further includes: Determine whether a power-off command sent by the power-off pin of the fingerprint recognition interface under test has been detected; If the shutdown command is detected, the capture process in the waiting queue is invoked to capture the shutdown event in the system; A successful capture message is sent to the controller, and the shutdown event and the capture process are destroyed.

8. A control device for a fingerprint recognition interface testing apparatus, characterized in that, A fingerprint recognition interface testing device is applied to a fingerprint recognition interface including a controller and a data transmission link, wherein the input side of the data transmission link is connected to the controller and the output side of the data transmission link is connected to the fingerprint recognition interface under test. The control device for the fingerprint recognition interface testing device includes: The sending module is used to send first verification data to the fingerprint recognition interface under test through the data transmission link, and to receive second verification data returned by the fingerprint recognition interface under test; wherein, the second verification data returned by the fingerprint recognition interface under test is data generated by the motherboard under test based on the first verification data after receiving the first verification data; A comparison module is used to compare whether the first verification data and the second verification data meet preset conditions. The comparison includes: acquiring a first verification code corresponding to the first verification data and a second verification code corresponding to the second verification data; determining whether the first verification code and the second verification code are consistent; if consistent, determining whether normal configuration information has been received; wherein the normal configuration information is information generated by the controller when it determines that the voltages of the first and second configuration pins of the fingerprint recognition interface under test are normal through a configuration detection link; if the normal configuration information is received, determining that the first verification data and the second verification data meet the preset conditions. If the preset conditions are met, it is determined that the transmission function of the fingerprint recognition interface under test is normal; it is determined whether a capture success message has been received; if the capture success message has been received, it is determined that the fingerprint recognition interface under test is normal. If the conditions are not met, it is determined that the transmission function of the fingerprint recognition interface under test is abnormal.

9. A control device for a fingerprint recognition interface testing apparatus, characterized in that, Includes memory used to store computer programs; A processor is configured to implement the steps of the fingerprint recognition interface testing device control method as described in claim 6 or 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the fingerprint recognition interface testing device control method as described in claim 6 or 7.