Test method and device of access control equipment, storage medium, control equipment and system

By using robotic arms and status control instructions to simulate the residence time of user equipment in the access control equipment testing, the problem of inefficiency of existing testing methods is solved and more accurate and efficient test results are achieved.

CN119721072APending Publication Date: 2025-03-28SHANGHAI FUWEI FAST DIGITAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311260249.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing access control equipment testing methods are inefficient and cannot accurately and comprehensively test equipment performance.

Method used

By sending test commands, including movement control commands and status control commands, the robotic arm controls the user equipment to move, and controls the user equipment to turn on or off the access control recognition status, simulating the length of time the user equipment stays in the identification area in a real scene.

Benefits of technology

Improve the accuracy and efficiency of testing, and enable more accurate assessment of the reliability and stability of access control equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119721072A_ABST
    Figure CN119721072A_ABST
Patent Text Reader

Abstract

A test method and device for access control equipment, a storage medium, control equipment and a system, the method comprises the following steps: sending a test command, the test command comprising a mobile control instruction and a state control instruction, the mobile control instruction being used for controlling a mechanical arm to drive user equipment to move, and the state control instruction being used for controlling the mechanical arm to drive the user equipment to move; the state control instruction is used for controlling the user equipment to open an access control recognition state and controlling the user equipment to close the access control recognition state when a closing condition is met, the closing condition is that the duration of the user equipment in the access control recognition state in the recognition area of the access control equipment reaches a first duration; and receiving an identification result of the access control equipment. The invention provides a more optimized test method of the access control equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment testing, and in particular to a testing method and device, a storage medium, a control device, and a system for access control equipment. Background Art

[0002] Access control devices are required in many scenarios of production and life, such as public transportation, intercity railways, etc. Access control devices refer to devices that can control access based on the user's identification results. Access control devices usually include an identification module, which is used to identify or verify the user. If the identification result indicates that the user is a legitimate user, the access control device allows the user to pass through. If the identification result indicates that the user is an illegal user, the access control device does not allow the user to pass through.

[0003] Before the access control equipment leaves the factory, the performance of the access control equipment needs to be tested to ensure the stable operation of the access control equipment during use. In the traditional testing method, it is usually tested by specialized testers. This manual testing solution is inefficient and cannot accurately and comprehensively test the performance of the access control equipment. Summary of the invention

[0004] One of the technical objectives of the present invention is to provide a more optimized testing method for access control equipment.

[0005] In view of this, an embodiment of the present invention provides a testing method for a door access control device, the method comprising: sending a test command, the test command comprising a movement control instruction and a state control instruction, the movement control instruction being used to control a robotic arm to drive a user device to move, the state control instruction being used to control the user device to turn on a door access control identification state, and controlling the user device to turn off the door access control identification state when a closing condition is met, wherein the closing condition is that the time duration that the user device is in the door access identification state within an identification area of ​​the door access control device reaches a first time duration; and receiving an identification result of the door access control device.

[0006] Optionally, the movement control instruction is used to control the robotic arm to move the user device out of the identification area when a removal condition is met, wherein the removal condition is that the user device stays in the identification area for a second time period, and the second time period is greater than the first time period.

[0007] Optionally, the test command includes one or more groups of movement control instructions and status control instructions, each group of movement control instructions and status control instructions includes: a first movement control instruction, used to control the robotic arm to move the user device to the graphic code recognition area of ​​the access control device; a first state control instruction, used to control the user device to display the graphic code and stop displaying the graphic code.

[0008] Optionally, each group of movement control instructions and state control instructions also includes: a second movement control instruction, used to control the robotic arm to move the user device to the NFC identification area of ​​the access control device; a second state control instruction, used to control the user device to turn on and off the NFC module.

[0009] Optionally, the method also includes: determining the success rate, continuous success rate and continuous failure rate of N tests based on the recognition result of the access control device, where N is a positive integer greater than 1; if the success rate, continuous success rate and continuous failure rate of the N tests are within their respective corresponding value ranges, then determining that the test result of the access control device is a qualified test.

[0010] Optionally, receiving the recognition result of the access control device includes: receiving the recognition result of the access control device from a third device, wherein the third device is used to collect recognition data and determine the recognition result based on the recognition data, wherein the recognition data is a recognition result display interface of the user device or a recognition result playback audio of the access control device.

[0011] An embodiment of the present invention also provides a testing device for access control equipment, the device comprising: a sending module, used to send a test command, the test command comprising a movement control instruction and a state control instruction, the movement control instruction is used to control the mechanical arm to drive the user device to move, the state control instruction is used to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when a closing condition is met, wherein the closing condition is that the time length that the user device is in the access control identification state in the identification area of ​​the access control device reaches a first time length; a receiving module, used to receive the identification result of the access control device.

[0012] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for testing access control equipment are executed.

[0013] An embodiment of the present invention further provides a control device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the steps of the above-mentioned test method for access control equipment when running the computer program.

[0014] An embodiment of the present invention further provides a testing system for access control equipment, the system comprising: the above-mentioned control device, a mechanical arm and a user device.

[0015] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:

[0016] In the scheme of the embodiment of the present invention, on the one hand, the movement control instruction is used to control the mechanical arm to drive the user device to move, and on the other hand, the state control instruction is used to control the user device to turn on and off the access control identification state. Among them, the state control instruction is used to control the user device to turn off the access control identification state when the closing condition is met, and the closing condition is that the time the user device is in the access control identification state in the identification area of ​​the access control device reaches a first time. In the above scheme, the length of time the user device stays in the identification area in the real scene is simulated by controlling the length of time the user device is in the access control identification state in the identification area. Compared with the scheme simulated by controlling the movement of the mechanical arm in and out, since the response speed of the user device to the instruction is usually much higher than the response speed of the mechanical arm to the instruction, the length of time the user device can be identified during the test is as close as possible to the expected simulated stay time, which is conducive to improving the accuracy of the test.

[0017] Furthermore, in the scheme of the embodiment of the present invention, the state control instruction is used to control the size, display brightness and color of the graphic code. By setting different parameters such as size, display brightness and color, the situation in which the user device displays different forms of graphic codes for recognition in the real scene is simulated, which is conducive to improving the accuracy of the test.

[0018] Furthermore, in the scheme of the embodiment of the present invention, the test results of the access control device are determined based on the success rate, continuous success rate and continuous failure rate of N tests, which can more accurately test the reliability and stability of the access control device, thereby improving the accuracy of the test results.

[0019] Furthermore, in the solution of the embodiment of the present invention, the third device can be connected to the control device for communication, and the third device can be used to determine the recognition result and upload the recognition result to the control device. In this case, the access control device does not need to be connected to the control device for communication. With this solution, the compatibility of the test system is better, and it can be used to test various different access control devices without considering whether the access control device can support communication with the control device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a scenario schematic diagram of a method for testing a door access control device in an embodiment of the present invention;

[0021] Figure 2 It is a flow chart of a method for testing a door access control device in an embodiment of the present invention;

[0022] Figure 3 is a flow chart of another method for testing access control equipment according to an embodiment of the present invention;

[0023] Figure 4 It is a structural schematic diagram of a testing device for access control equipment in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] As described in the background art, existing testing methods for access control equipment need to be optimized.

[0025] In order to realize the automated testing of access control equipment, it is necessary to set up a robotic arm to simulate different situations in real scenes. In the test, the simulation of real scenes involves one or more of the following aspects: simulating the user device approaching the access control device from different directions, simulating the user device staying in the recognition area for different lengths of time, simulating the user device staying in the recognition area in different postures, etc.

[0026] When a robotic arm is used to perform actions in current industrial scenarios, a delay instruction is usually required to ensure the accuracy and precision of the action. The delay instruction is used to control the robotic arm to execute adjacent action instructions at a predetermined time interval. For example, in the test scenario of the access control device, the action instructions of the robotic arm include at least: a move-in instruction and a move-out instruction. The move-in instruction controls the robotic arm to move the user device into the identification area of ​​the access control device, and the move-out instruction is used to control the robotic arm to move the user device out of the identification area. These two instructions are two adjacent action instructions in terms of timing. For this reason, a delay instruction is set between these two action instructions. For some robotic arms with lower versions or limited performance, the time interval of the delay instruction is usually longer.

[0027] In real scenarios, the length of time that a user device stays in the identification area is usually short. If the user device's stay in the identification area is simulated by controlling a robotic arm, if the time interval corresponding to the delay instruction is longer than the simulated stay time, the test result will be inaccurate. Especially in the scenario of testing the reliability of access control equipment, some extreme cases (that is, very short stay times) need to be tested. For example, if the expected simulated stay time is 0.5 seconds, and the time interval of the delay instruction is 1.5 seconds, then the actual stay time of the user device in the identification area during the test is 1.5 seconds. In this case, the result of the test operation performed cannot truly and accurately reflect the performance of the access control device when the stay time is 0.5 seconds.

[0028] In view of this, an embodiment of the present invention provides a method for testing access control equipment. In the scheme of the embodiment of the present invention, on the one hand, the robot arm is controlled by the mobile control instruction to drive the user device to move, and on the other hand, the state control instruction is used to control the user device to turn on or off the access control identification state. Among them, the state control instruction is used to control the user device to turn off the access control identification state when the closing condition is met, and the closing condition is that the time the user device is in the access control identification state in the identification area of ​​the access control device reaches a first time. In the above scheme, the length of time the user device stays in the identification area in the real scene is simulated by controlling the length of time the user device is in the access control identification state in the identification area. Since the response speed of the user device to the instruction is usually much higher than the response speed of the robot arm to the instruction, the length of time the user device can be identified in the process test is as close as possible to the expected simulated stay length, which is conducive to improving the accuracy of the test.

[0029] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0030] First, some terms in the embodiments of the present invention are explained so that those skilled in the art can understand the solutions of the embodiments of the present invention.

[0031] 1. Access control equipment

[0032] Access control devices are devices that can control access based on user legitimacy identification. If the identification result shows that the user is a legitimate user, the access control device allows the user to pass through. If the identification result shows that the user is an illegal user, the access control device does not allow the user to pass through.

[0033] The embodiment of the present invention does not impose any restrictions on the type of access control device. For example, the access control device may be an access control device used in a public transportation scenario, and a legitimate user can take public transportation. For another example, the access control device may also be an access control device used in a building access control scenario, and a legitimate user can enter the building.

[0034] 2. Near Field Communication (NFC) Identification

[0035] NFC identification refers to the identification between the identification device and the identified device through NFC technology. In the solution of the embodiment of the present invention, the identification device is an access control device, and the identified device is a user device. Specifically, the access control device may include an NFC identification module, and the user device may include an NFC module, and the NFC identification module may identify the NFC module through NFC technology. In other words, the access control device may have an NFC identification function, and the access control device may identify the user device based on NFC technology.

[0036] 3. Graphic code recognition

[0037] The graphic code usually stores user information, time, key and other information. Graphic code recognition refers to the recognition device scanning the graphic code on the recognized device to obtain user information for recognition. Exemplarily, the graphic code can be a two-dimensional code (such as a Quick Response (QR) code) or a one-dimensional code, but is not limited to this. In the scheme of the embodiment of the present invention, the recognition device is a door access control device, and the recognized device is a user device. Specifically, the door access control device may include a graphic code recognition module, the user device may generate and display the graphic code, and the graphic code recognition module may scan and recognize the graphic code.

[0038] 4. Access control recognition status

[0039] The access control recognition status refers to the status that can be recognized by the access control device.

[0040] Specifically, in the case of graphic code recognition, the access control recognition state refers to the display state of the graphic code. When the graphic code is in the display state, the access control device can recognize it by scanning the graphic code. Correspondingly, turning on the access control recognition state can mean starting to display the graphic code, and turning off the access control recognition state can mean stopping to display the graphic code.

[0041] In addition, in the case of NFC identification, the access control identification state refers to the on state of the NFC module. When the NFC module is in the on state, the access control device can be identified through NFC technology. The on state of the NFC module can refer to the on state of the NFC function of the user device. Correspondingly, turning on the access control identification state can refer to turning on the NFC function, and turning off the access control identification state can refer to turning off the NFC function.

[0042] The test method provided in the embodiment of the present invention is used to test the performance of the access control device. That is, the access control device is the device to be tested. Among them, the access control device may include the above-mentioned graphic code recognition module, and may also include the above-mentioned NFC recognition module. The test method provided in the embodiment of the present invention can be used to test the graphic code recognition performance of the access control device, and can also be used to test the NFC recognition performance of the access control device.

[0043] Reference Figure 1 , Figure 1 Schematic diagram of an application scenario of a test method for access control equipment in an embodiment of the present invention. The following non-limiting description of the test method provided by the embodiment of the present invention is given in conjunction with the scenario.

[0044] In the solution of the embodiment of the present invention, the control device 10 is communicatively connected with the robot arm 11 .

[0045] Specifically, the control device 10 may send a movement control instruction to the mechanical arm 11, and the movement control instruction is used to control the movement of the mechanical arm 11. During the test, the mechanical arm 11 may be used to grab the user device 12, and the mechanical arm 11 drives the user device 12 to move according to the movement control instruction. The user device may include a graphic code display module and / or an NFC module. For example, the user device may be a mobile phone, a smart watch, a tablet computer, a card with an NFC function, etc., but is not limited thereto.

[0046] Specifically, the robot arm 11 can move the user device 12 to the identification area 13 of the access control device according to the movement control instruction. The identification area 13 of the access control device can represent the graphic code identification area of ​​the access control device or the NFC identification area of ​​the access control device. In the case of testing the graphic code identification performance, the robot arm 11 can move the user device 12 to the graphic code identification area of ​​the access control device. In the case of testing the NFC identification performance, the robot arm 11 moves the user device 12 to the NFC identification area of ​​the access control device.

[0047] In the solution of the embodiment of the present invention, by setting the parameters in the movement control instruction, the robot arm 11 can simulate the real action of the user in the use scenario of the access control device. Specifically, the movement control instruction can be used to control the robot arm to drive the user device to move from the path starting point to the path end point, and drive the user device to move out of the recognition area 13 from the path end point. The path starting point is outside the recognition area, and the path end point is inside the recognition area.

[0048] Specifically, the movement control instruction may include: path generation parameters. The path generation parameters may be used to determine the path of the user equipment entering the identification area 13. In different tests, different path generation parameters may be set to simulate the user equipment entering the identification area 13 along different paths.

[0049] Exemplarily, the path generation parameters may include parameters for determining the end point of the path. For example, the path generation parameters may include the distance between the user device 12 and the access control device in the identification area 13. Different distances result in different positions of the end point of the path. It should be noted that the starting point of the path may be a pre-set position.

[0050] In addition, the path generation parameters may also include parameters for determining the path between the starting point and the end point. Exemplarily, the path generation parameters may include a first angle, wherein the first angle may refer to the angle formed between the user device and the access control device when the user device enters the identification area 13. The value range of the first angle may be [0, 180°]. The direction in which the first angle is 0° may be predefined and calibrated. For example, if the first angle is 90°, it means that the user device enters from the front of the identification area 13.

[0051] Furthermore, the movement control instruction may also include: a movement speed, which may refer to the speed at which the user equipment 12 moves along the path. In different tests, different movement speeds may be set to simulate the user equipment entering the identification area 13 at different speeds.

[0052] Furthermore, the movement control instruction may also include: a posture parameter, which may be used to determine the posture of the user device 12 at the end of the path. That is, the posture parameter may be used to determine or characterize the posture of the user device 12 when it stays in the identification area 13. Exemplarily, the posture parameter may include a second angle, wherein the second angle refers to the angle formed between the user device and the access control device when the user device 12 stays in the identification area 13. For example, the second angle is 0°, and the user device 12 is parallel to the plane of the access control device in the identification area 13.

[0053] It should be noted that the embodiment of the present invention does not limit the path that the robot arm 11 takes to move the user device 12 out of the identification area 13 .

[0054] In addition, the control device 10 is in communication connection with the user device 12, and the control device 10 can send a state control instruction to the user device 12. The state control instruction can be used to control the user device to turn on or off the access control identification state.

[0055] In one embodiment of the present application, the access control recognition state refers to the display state of the graphic code. In this case, the state control instruction can also be used to control the size, display brightness, color, etc. of the graphic code. Specifically, the state control instruction may include parameters such as the size of the graphic code, the display brightness of the graphic code, the color of the graphic code, and the type of the graphic code. The user device can generate and display different graphic codes according to the state control instruction. Therefore, in different tests, different graphic code parameters such as type, size, display brightness, and color can be set to control the user device to display different forms of graphic codes, so as to simulate the situation in which different users in real scenes use different graphic codes for recognition.

[0056] For more information about movement control instructions and state control instructions, please refer to the relevant description below.

[0057] In addition, the control device 10 may also be communicatively connected with the access control device, and the access control device may upload the recognition result to the control device 10, so that the control device determines the performance of the access control device based on the recognition result in the test.

[0058] Reference Figure 2 , Figure 2 It is a flow chart of a method for testing a door access control device in an embodiment of the present invention. Figure 2 The method shown can be Figure 1 The control device may be any suitable device with data transmission and data processing capabilities, which is not limited in this embodiment. Figure 2 The method shown may include step S21 and step S22. The specific process of a single test is described below mainly in combination with step S21 and step S22.

[0059] Step S21: Sending a test command, wherein the test command includes a movement control instruction and a state control instruction, wherein the movement control instruction is used to control the mechanical arm to drive the user device to move, and the state control instruction is used to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when a closing condition is met, wherein the closing condition is that the time duration of the user device in the access control identification state in the identification area of ​​the access control device reaches a first time duration;

[0060] Step S22: receiving the recognition result of the access control device.

[0061] In a single test, the test command may include a set of control instructions, and the set of control instructions may include movement control instructions and state control instructions.

[0062] In step S21, the terminal may send a movement control instruction to the robotic arm, and send a state control instruction to the user equipment.

[0063] Specifically, as described above, the movement control instruction can be used to move the user device into the identification area. In addition, the movement control instruction can also be used to move the user device out of the identification area when the removal condition is met, wherein the removal condition is that the user device stays in the identification area for a second time period, and the second time period is greater than the first time period. More specifically, the stay time period can be counted when the user device arrives at the identification area, and when the counted time period reaches the second time period, the robotic arm executes the movement control instruction to move the user device out of the identification area.

[0064] As described above, the state control instruction can be used to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when the closing condition is met. The state control condition may include a first duration, and whether the closing condition is met can be determined by the user device.

[0065] As a possible implementation method, the user device can turn on the access control identification state when it reaches the identification area or after reaching the identification area. The timing starts when the user device turns on the access control state. If the timing duration reaches a first duration, it is determined that the closing condition is met, and the user device turns off the access control identification state.

[0066] Exemplarily, after the control device detects that the user device has arrived at the identification area, it sends a state control instruction to the user device, and in response to the state control instruction, the user device turns on the access control identification state. After the robotic arm moves the user device to the identification area of ​​the access control device, the robotic arm may send an arrival response message to the control device. Based on the arrival response message, the control device may determine that the user device has arrived at the identification area.

[0067] As another possible implementation, the user device may turn on the access control recognition state before reaching the recognition area. The user device may start timing when reaching the recognition area. If the timing duration reaches a first duration, it is determined that the closing condition is met, and the user device turns off the access control recognition state.

[0068] Exemplarily, the control device may send a state control instruction to the user device before the user device arrives at the identification area. For example, the control device may estimate the arrival time based on the path length and the speed of movement along the path. The arrival time refers to the time when the robot arm moves the user device to the identification area. The control device may indicate the arrival time in the state control instruction so that the user device knows the starting point of the timing.

[0069] It should be noted that, in a specific implementation, the duration that the user equipment is in the access control identification state in the identification area of ​​the access control equipment may also be timed based on other methods, and this embodiment does not limit this.

[0070] Furthermore, when the user device is in the identification area and in the access control identification state, the access control device can perform identification and obtain the identification result. If the user device displays a graphic code, the access control device performs graphic code identification, and if the user device turns on the NFC function, the access control device performs NFC identification.

[0071] Specifically, the recognition result may be recognition success or recognition failure. Wherein, recognition success may refer to recognition as a legitimate user, and recognition failure may refer to recognition as an illegal user. Alternatively, recognition success may refer to successful deduction, and recognition failure may refer to failed deduction.

[0072] Furthermore, after the removal condition is met, the robotic arm may move the user device out of the identification area.

[0073] In the specific implementation of step S22, the user equipment may receive the recognition result of the access control equipment.

[0074] In one embodiment of the present application, after obtaining the recognition result, the access control device may send the recognition result to the control device.

[0075] In another embodiment of the present application, the test system may further include a third device, which may be communicatively connected to the control device, and the third device may be used to determine the recognition result and upload the recognition result to the control device. In this case, the access control device may not need to be communicatively connected to the control device. With this solution, the test system has better compatibility and can be used to test various access control devices without considering whether the access control device can support communication with the control device.

[0076] As a possible implementation, the third device may be a device that integrates image acquisition and image recognition functions. Specifically, the third device includes a camera and a processor, and the camera may be directed toward the user device and take a picture of the display interface of the user device. After the access control device identifies the user device, the user device may display a recognition result display interface, and the processor may perform feature matching between the recognition result display interface and a preset recognition success interface through an image recognition algorithm. If the match is successful, the recognition result may be determined to be a recognition success, and if the match fails, the recognition result may be determined to be a recognition failure.

[0077] As another possible implementation, the third device may be a device that integrates audio acquisition and audio recognition functions. Specifically, the third device includes a microphone and a processor, the access control device can play the recognition result, the microphone can collect the sound of the access control device during the test, and the processor can perform feature matching between the collected recognition result playback audio and the preset recognition success audio through the audio recognition algorithm. If the match is successful, the recognition result can be determined to be a recognition success, and if the match fails, the recognition result can be determined to be a recognition failure.

[0078] It should be noted that the embodiment of the present invention does not limit the location of the third device, as long as the third device can collect identification data, where the identification data includes but is not limited to: the identification result display interface displayed by the user device or the identification result playback audio played by the access control device.

[0079] From the above, the control device can obtain the recognition result of the access control device in a single test. Through multiple tests, the control device can determine the test result of the access control device according to the recognition results in multiple tests.

[0080] Assuming that the number of tests is N, where N is a positive integer greater than 1, the control device can determine the number of successful identifications in the N tests, the maximum number of consecutive successful identifications, and the maximum number of consecutive failures.

[0081] Furthermore, the success rate, continuous success rate and continuous failure rate can be further determined. Specifically, the success rate, continuous success rate and continuous failure rate can be determined using the following formula:

[0082] SR=TP / N; CSR = T scmax / N; CFR = T fcmax / N;

[0083] Where N is the total number of tests, SR is the success rate, CSR is the continuous success rate, CFR is the continuous failure rate, T P is the number of successful identifications, T scmax is the maximum number of consecutive successful identifications, T fcmax The maximum number of consecutive failures.

[0084] If the success rate, continuous success rate and continuous failure rate of the N tests are within their respective corresponding value ranges, it can be determined that the test result of the access control device is a qualified test; otherwise, the test result is a failed test.

[0085] Specifically, if the success rate is greater than or equal to the first threshold value, and the continuous success rate is greater than or equal to the second threshold value, and the continuous failure rate is less than or equal to the third threshold value, then the test can be determined to be qualified. If the success rate is less than the first threshold value, or the continuous success rate is less than the second threshold value, or the continuous failure rate is greater than the third threshold value, then the test can be determined to be unqualified.

[0086] In one embodiment of the present application, the graphic code recognition performance of the access control device can be determined through the above-mentioned N tests. That is, the state control instruction can be a first state control instruction, the access control recognition state is the display state of the graphic code, and the first state control instruction can be used to control the user device to display the graphic code, and control the user device to stop displaying the graphic code when the shutdown condition is met. In this case, each group of control instructions can include a first movement control instruction and a first state control instruction.

[0087] In another embodiment of the present application, the NFC recognition performance of the access control device can be determined through the above-mentioned N tests. That is, the state control instruction can be a second state control instruction, the access control recognition state is the on state of the NFC function, and the second state control instruction can be used to control the user device to turn on the NFC function, and control the user device to turn off the NFC function when the off condition is met. In this case, each group of control instructions can include a second movement control instruction and a second state control instruction.

[0088] In another embodiment of the present application, the NFC recognition test and the graphic code recognition test may be performed alternately. A single test may include a single NFC recognition test and a single graphic code recognition test. Specifically, the test command may include N groups of control instructions, each group of control instructions including a first movement control instruction, a first state control instruction, a second movement control instruction, and a second state control instruction.

[0089] Thus, the NFC recognition test and the graphic code recognition test can be performed separately in a single test, and thus the NFC recognition test and the graphic code recognition test can be performed alternately in two adjacent tests.

[0090] In this case, in a single test, if the recognition result in the NFC recognition test is a recognition success and the recognition result in the graphic code recognition test is a recognition success, then it is determined that the recognition result in this test is a recognition success.

[0091] By adopting such a solution, it is possible to simulate a real scenario in which both user devices using NFC identification and user devices using graphic code identification appear in a short period of time, and obtain the overall performance of the access control device in such a scenario.

[0092] As a variation, M NFC recognition tests and L graphic code recognition tests may be performed, and the recognition results of a single NFC recognition test and a single graphic code recognition test may be recorded respectively. Then, the test results of the NFC recognition module are determined according to the recognition results of the M NFC recognition tests, and the test results of the graphic code recognition module are determined according to the recognition results of the L graphic code recognition tests. Wherein, M and L are both positive integers greater than 1.

[0093] In a specific example, M=L.

[0094] In another specific example, M and L can be determined based on a preconfigured first weight value. For example, the first weight value corresponding to the NFC recognition test is determined based on the proportion of users who use NFC recognition in the actual application scenarios of the access control device, and the first weight value corresponding to the graphic code recognition test is determined based on the proportion of users who use graphic code recognition in the actual application scenarios of the access control device. Then, M and L are determined respectively based on the two first weight values ​​and the total number of tests.

[0095] In a specific implementation, the NFC recognition test and the graphic code recognition test may be performed alternately. That is, after performing an NFC recognition test, a graphic code recognition test is performed, and then another NFC recognition test is performed, and so on. Alternatively, the NFC recognition test and the graphic code recognition test may be performed randomly, that is, it is randomly determined whether the next test is the NFC recognition test or the graphic code recognition test. Alternatively, the second weight value corresponding to the NFC recognition test and the second weight value corresponding to the graphic code recognition test may be pre-configured, and then the second weight value corresponding to the NFC recognition test may be used to determine the number of NFC recognition tests in each K tests, and the second weight value corresponding to the graphic code recognition test may be used to determine the number of graphic code recognition tests in each K tests.

[0096] Reference Figure 3 , Figure 3It is a flowchart of another method for testing access control equipment in an embodiment of the present invention. Figure 3 The scheme shown can be executed by the above-mentioned control device. Figure 3 The embodiments of the present invention are described in a non-limiting manner. Figure 3 The illustrated scheme may include steps S31 to S37.

[0097] Step 31, generating a test command for the nth test, wherein the initial value of n is 0.

[0098] In step S31, the control device may determine a plurality of test parameter values ​​used for the nth test from the value ranges corresponding to the plurality of test parameters.

[0099] Exemplarily, a stratified sampling method may be used to determine the test parameter value from the value range. Using the stratified sampling method to select values ​​for each parameter can ensure that the parameter values ​​used in multiple tests cover the value range as comprehensively as possible to achieve stability and reliability testing.

[0100] The multiple test parameters may include the size of the graphic code, the display brightness of the graphic code, the color of the graphic code, the path generation parameters, the moving speed, and the posture parameters mentioned above.

[0101] For more information about the test command, please refer to the above description and will not be repeated here.

[0102] Step S32: sending a movement control instruction of the nth test to the robot arm, and sending a state control instruction of the nth test to the user equipment.

[0103] Among them, after receiving the movement control instruction, the robotic arm can move the user device to the identification area and stay there for a second time period. During the second time period when the user device stays in the identification area, the time period when the user device turns on the access control identification state is the first time period.

[0104] Step S33, receiving the recognition result of the nth test.

[0105] Step S34, updating the counter.

[0106] In a specific implementation, the counter may be updated according to the recognition result of the nth test. Specifically, the counter may include: a first counter for recording the number of successful tests, a second counter for recording the number of consecutive successes, and a third counter for recording the number of consecutive failures.

[0107] It can be understood that the initial values ​​of the first counter, the second counter and the third counter are all 0. If the recognition result in the nth test is a successful recognition, the value of the first counter is increased by 1, and after completing N tests, the first counter is reset to zero. If the recognition result in the nth test is a successful recognition, the value of the second counter is increased by 1, and the value of the third counter is reset to zero. If the recognition result in the nth test is a failed recognition, the value of the second counter is reset to zero, and the value of the third counter is increased by 1.

[0108] Step S35, determine whether n is N.

[0109] If n≠N, then step S36 is executed, and after step S36 is completed, the process returns to step S31. If n=N, then step S37 is continued.

[0110] In other words, in step S35, it is determined whether the stop condition is met, if the stop condition is met, then step S37 is continued, otherwise the next test is performed. The stop condition may be that the number of tests reaches a preset number (ie, N).

[0111] Step S36, n=n+1.

[0112] Step S37, determining the test result.

[0113] about Figure 3 For more information on the test method shown, please refer to the above Figure 1 and Figure 2 The relevant description will not be repeated here.

[0114] It should be noted that the coordinate system may be calibrated before the test, and specifically, the position of the robot arm and the user equipment may be calibrated.

[0115] From the above, in the testing method provided in the embodiment of the present invention, multi-scenario, high-intensity testing of the access control device is performed based on the control of the robot arm and the user device, which can ensure the accuracy of the test results.

[0116] It can be understood that, in a specific implementation, the above method can be implemented in the form of a software program, which runs in a processor integrated inside a chip or a chip module; or, the method can be implemented in hardware or a combination of hardware and software, such as using a dedicated chip or chip module, or using a dedicated chip or chip module in combination with a software program.

[0117] Reference Figure 4 , Figure 4 is a schematic diagram of the structure of a testing device for access control equipment in an embodiment of the present invention. Figure 4 The apparatus shown may include:

[0118] A sending module 41 is used to send a test command, wherein the test command includes a movement control instruction and a state control instruction, wherein the movement control instruction is used to control the mechanical arm to drive the user device to move, and the state control instruction is used to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when a closing condition is met, wherein the closing condition is that the time duration of the user device in the access control identification state in the identification area of ​​the access control device reaches a first time duration;

[0119] The receiving module 42 is used to receive the recognition result of the access control device.

[0120] For more information about the working principle, working method, beneficial effects, etc. of the testing device for access control equipment in the embodiment of the present invention, please refer to the above description of the testing method for access control equipment, which will not be repeated here.

[0121] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned access control device testing method are executed. The storage medium may include ROM, RAM, a magnetic disk or an optical disk, etc. The storage medium may also include a non-volatile memory or a non-transitory memory, etc.

[0122] The embodiment of the present invention further provides a control device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the steps of the above-mentioned test method for access control equipment when running the computer program. The control device includes but is not limited to terminal devices such as mobile phones, computers, and tablet computers.

[0123] The embodiment of the present invention also provides a test system for access control equipment, such as Figure 1 As shown, the test system may include a control device 10, a mechanical arm 11 and a user device 12. For more information about the test system, please refer to the above detailed description of the test method, which will not be repeated here.

[0124] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0125] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0126] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer program may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means.

[0127] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least part of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least part of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0129] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.

[0130] The "multiple" appearing in the embodiments of the present application refers to two or more. The first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects. There is no order, nor does it represent a special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application. Although the present invention is disclosed as above, the present invention is not limited to this. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the claims.

[0131] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.

Claims

1. A method for testing access control equipment, characterized in that: The method comprises: Sending a test command, wherein the test command includes a movement control instruction and a state control instruction, wherein the movement control instruction is used to control the mechanical arm to drive the user device to move, and the state control instruction is used to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when a closing condition is met, wherein the closing condition is that the time duration of the user device in the access control identification state in the identification area of ​​the access control device reaches a first time duration; Receive the recognition result of the access control device.

2. The testing method according to claim 1, characterized in that: The movement control instruction is used to control the robot arm to move the user device out of the identification area when a removal condition is met, wherein the removal condition is that the user device stays in the identification area for a second time period, and the second time period is greater than the first time period.

3. The testing method according to claim 1, characterized in that: The test command includes one or more groups of movement control instructions and state control instructions, each group of movement control instructions and state control instructions includes: A first movement control instruction is used to control the mechanical arm to move the user device to the graphic code recognition area of ​​the access control device; The first state control instruction is used to control the user equipment to display the graphic code and stop displaying the graphic code.

4. The testing method according to claim 3, characterized in that: Each group of movement control instructions and state control instructions also includes: A second movement control instruction is used to control the mechanical arm to move the user device to the NFC recognition area of ​​the access control device; The second state control instruction is used to control the user equipment to turn on or off the NFC function.

5. The testing method according to claim 3, characterized in that: The first state control instruction includes: the size of the graphic code, the display brightness of the graphic code and the color of the graphic code.

6. The testing method according to claim 1, characterized in that: The method further comprises: Determine the success rate, continuous success rate and continuous failure rate of N tests according to the recognition result of the access control device, where N is a positive integer greater than 1; If the success rate, continuous success rate and continuous failure rate of the N tests are within their respective corresponding value ranges, it is determined that the test result of the access control device is qualified.

7. The testing method according to claim 1, characterized in that: Receiving the recognition result of the access control device includes: The recognition result of the access control device is received from a third device, wherein the third device is used to collect recognition data and determine the recognition result based on the recognition data, wherein the recognition data is a recognition result display interface of the user device or a recognition result playback audio of the access control device.

8. A testing device for access control equipment, characterized in that: The device comprises: a sending module, configured to send a test command, wherein the test command includes a movement control instruction and a state control instruction, wherein the movement control instruction is configured to control the mechanical arm to drive the user device to move, and the state control instruction is configured to control the user device to turn on the access control identification state, and control the user device to turn off the access control identification state when a closing condition is met, wherein the closing condition is that the time duration for which the user device is in the access control identification state within the identification area of ​​the access control device reaches a first time duration; A receiving module is used to receive the recognition result of the access control device.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for testing the access control device according to any one of claims 1 to 7 are executed.

10. A control device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the steps of the method for testing the access control device according to any one of claims 1 to 7 are executed.

11. A testing system for access control equipment, characterized in that: The system comprises: The control device as claimed in claim 10; The mechanical arm; The user equipment.