Background
The face recognition is a biological recognition technology for identity recognition based on face feature information of people, and the face recognition equipment is mainly applied to personnel identity verification occasions, such as access controllers, gate machines, verification terminals and the like. As shown in fig. 1, the face recognition device includes a host 100 and a tail interface 200, the tail interface 200 is connected to the host 100 through an extension cable 300, and as a typical application, the tail interface includes a power interface 201, a wiegand interface 202, a network cable interface 203, a relay output and RS485 interface 204, and a USB interface 205. When the face recognition equipment is subjected to factory test, each tail line interface needs to be tested, so that all the tail line interfaces can be connected with a host and data transmission can be completed.
The prior art is used for testing the tail line interface of the face recognition equipment, and the method is used for connecting each interface one by one for data transmission, so that the defects of complicated test procedure and low test efficiency exist.
Therefore, when the factory test is performed on the face recognition device, how to improve and simplify the test on the tail line interface and improve the test efficiency becomes a technical problem to be solved urgently.
SUMMERY OF THE UTILITY MODEL
In order to solve the above problems, the present invention provides a device for testing a tail interface of a face recognition device.
The embodiment of the utility model discloses a device for testing a tail line interface of face recognition equipment, which comprises: the power supply end of the first socket is connected with the power supply end of the RS485 nixie tube, the grounding end of the first socket is connected with the grounding end of the RS485 nixie tube, the Wiegand data end of the first socket is connected with the relay output end of the second socket, and the RS485 data end of the second socket is connected with the RS485 data end of the RS485 nixie tube.
Optionally, a DATA0 pin of the wiegand DATA end is connected to a positive terminal pin of the relay output interface, and a DATA1 pin of the wiegand DATA end is connected to a negative terminal pin of the relay output interface.
Optionally, a DATA0 pin of the wiegand DATA end is connected to a negative terminal pin of the relay output interface, and a DATA1 pin of the wiegand DATA end is connected to a positive terminal pin of the relay output interface.
Optionally, the device for testing the tail-line interface of the face recognition device further includes a host power socket, a power end of the host power socket is connected to a power end of the first socket, and a ground end of the host power socket is connected to a ground end of the first socket.
Optionally, the tail line interface testing device for the face recognition device further includes an external power socket, a power end of the external power socket is connected to a power end of the first socket, and a ground end of the external power socket is connected to a ground end of the first socket.
The utility model has the beneficial effects that:
the embodiment of the utility model simplifies the testing process of the tail interface of the face recognition equipment, only needs to plug the tail interface testing device of the face recognition equipment provided by the embodiment of the utility model into the tail interface of the face recognition equipment, and sets the relevant port on the host of the face recognition equipment to receive and send data so as to test whether the physical connection of the tail interface is normal or not, thereby improving the testing efficiency.
Detailed Description
In order to more clearly and completely explain the technical scheme of the utility model, the utility model is further explained with reference to the attached drawings.
Example one
Referring to fig. 2, a first embodiment of a device 400 for testing a tail interface of a face recognition device according to the present invention includes: the intelligent socket comprises a first socket 401, a second socket 402 and an RS485 nixie tube 403, wherein a power supply end VCC of the first socket 401 is connected with a power supply end VCC of the RS485 nixie tube 403, a ground end GND of the first socket 401 is connected with the ground end 403 of the RS485 nixie tube 403, Wiegand DATA ends (DATA0 and DATA1) of the first socket 401 are connected with a relay output end (OUT +, OUT-) of the second socket, and RS485 DATA ends (RS485A and RS485B) of the second socket 402 are connected with RS485 DATA ends (RS485A and RS485B) of the RS485 nixie tube.
Referring to fig. 3, in the embodiment of the present invention, the first socket 401 is used to connect the wiegand interface 202 of the face recognition device tail interface 200, and the second socket 402 is used to connect the relay output of the face recognition device tail interface 200 and the RS485 interface 204. In the host 100 of the face recognition device, an I/O terminal P1 of the control unit is connected with a control terminal of the relay unit, two output terminals of the relay unit are respectively connected with a positive terminal OUT + and a negative terminal OUT of the relay output interface, and an I/O terminal P2 and an I/O terminal P3 of the control unit are respectively connected with a DATA terminal DATA0 and a DATA terminal DATA1 of the wiegand interface 202; the power supply unit is connected with a power supply terminal VCC and a ground terminal GND of the wiegand interface; and a data transmitting end TX and a data receiving end RX of the control unit are connected to the RS485 interface through the RS485 unit.
When the first socket 401 is plugged into the wiegand interface 202 and the second socket is plugged into the relay output and RS485 interface 204, the following tests can be performed:
(1) the relay unit is turned on by outputting a control signal through the I/O terminal P1 of the control unit in the face recognition device host 100, at this time, the I/O terminal P2 and the I/O terminal P3 of the control unit of the face recognition device host 100 are communicated through the relay unit, the relay output interface, the second socket 402, the first socket 401 and the wiegand interface 202, and under this condition, it can be determined whether the physical connections among the I/O port of the control unit, the relay output interface and the wiegand interface 202 are unblocked only by testing whether signals or data can be correctly transmitted and received between the I/O terminal P2 and the I/O terminal P3;
(2) the first data signal is sent by a data sending end TX of a control unit in the face recognition device host 100, at this time, the first data signal is sent to an RS485 nixie tube 403 through an RS485 unit, an RS485 interface and a second socket 402, an RS485 data code 403 displays according to received data according to a built-in communication protocol thereof and returns a second data signal, and the second data signal is sent to a data receiving end RX of the control unit through the second socket 402, the RS485 interface and the RS485 unit, under this condition, if the control unit receives a correct second data signal, it indicates that a power supply end VCC, a ground end GND and the RS485 interface of the wiegar interface 202 are normal.
The embodiment of the utility model simplifies the testing process of the tail interface of the face recognition equipment, only needs to plug the tail interface testing device of the face recognition equipment provided by the embodiment of the utility model into the tail interface of the face recognition equipment, and sets the relevant port on the host of the face recognition equipment to receive and send data so as to test whether the physical connection of the tail interface is normal or not, thereby improving the testing efficiency.
In an alternative embodiment, the DATA0 pin of the Wiegand DATA terminal is connected to the positive terminal pin OUT + of the relay output interface, and the DATA1 pin of the Wiegand DATA terminal is connected to the negative terminal pin OUT-of the relay output interface.
In this embodiment, when the wiegand interface and the relay output interface in the tail line interface are tested, the control unit I/O terminal P1 may output a control signal to turn on the relay unit, and the control unit I/O terminal P3 sends a first test signal to the DATA0 pin of the wiegand interface 202, the control unit I/O terminal P2 receives a second test signal returned from the DATA1 pin of the wiegand interface 202, and if the second test signal is the same as the first test signal, it indicates that the physical connections between the I/O port of the control unit, the relay unit, and the relay output interface and the wiegand interface 202 are normal.
In an alternative embodiment, the DATA0 pin of the Wiegand DATA terminal is connected to the negative terminal pin OUT + of the relay output interface, and the DATA1 pin of the Wiegand DATA terminal is connected to the positive terminal pin OUT + of the relay output interface.
In this embodiment, when the wiegand interface and the relay output interface in the tail line interface are tested, the control unit I/O terminal P1 may output a control signal to turn on the relay unit, and the control unit I/O terminal P2 sends a third test signal to the DATA1 pin of the wiegand interface 202, the control unit I/O terminal P3 receives a fourth test signal returned from the DATA0 pin of the wiegand interface 202, and if the third test signal is the same as the fourth test signal, it indicates that the physical connections between the I/O port of the control unit, the relay unit, and the relay output interface and the wiegand interface 202 are normal.
Example two
On the basis of the first embodiment, referring to fig. 4, the second embodiment of the testing apparatus 400 for a tail-line interface of a face recognition device further includes a host power socket 404, a power terminal of the host power socket 404 is connected to a power terminal of the first socket 401, and a ground terminal of the host power socket 404 is connected to a ground terminal of the first socket 401.
In this embodiment, the host power socket 404 is used to connect to a power interface of the face recognition device tail interface, and can obtain power from the power interface of the face recognition device tail interface to supply power to the RS485 nixie tube 403.
EXAMPLE III
On the basis of the second embodiment, referring to fig. 5, the third embodiment of the device 400 for testing a tail-line interface of a face recognition apparatus further includes an external power socket 405, a power terminal of the external power socket 405 is connected to a power terminal of the first socket 401, and a ground terminal of the external power socket 405 is connected to a ground terminal of the first socket 405.
In this embodiment, the external power socket 405 is used to obtain an external power source, and supply power to the face recognition device through the host power socket 404.
Of course, the present invention may have other embodiments, and based on the embodiments, those skilled in the art can obtain other embodiments without any creative effort, and all of them are within the protection scope of the present invention.