A three-axis automated testing method and system
By designing three-axis automated testing methods and their systems, the problem that the existing technology cannot effectively improve the testing efficiency and analysis capabilities of barcode reading equipment is solved, real-time monitoring and visual data analysis are realized, ensuring the integrity of the test data and the comprehensiveness of the analysis.
Patent Information
- Application Number
- CN202210950347.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-09
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-08-09
AI Technical Summary
The existing technology cannot effectively improve the testing efficiency and analysis capabilities of barcode reading equipment, and the automatic testing system lacks visual analysis functions, which cannot meet the strict requirements for bit error rate and missed bit rate in medical IVD, rapid logistics sorting and other fields.
Design a three-axis automated testing method and its system, and select test modes and test ranges by setting the parameters of the motion controller and test equipment, monitoring the test process in real time, and generating visual data diagrams, statistics and analysis of test data.
The goal of improving the testing efficiency and analysis capabilities of barcode reading equipment has been achieved. Through real-time monitoring and visualization of data diagrams, it is convenient to intuitively observe the test process and results, ensuring the integrity of the test data and the comprehensiveness of data analysis.
Smart Images

Figure CN115420531B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of barcode reading equipment testing, and in particular to a three-axis automatic testing method and a system thereof. Background Art
[0002] Barcode reading equipment refers to equipment used to read barcode information. It uses an optical device to convert the barcode information into electronic information, which is then translated into corresponding data information by a dedicated decoder. Due to its fast input speed, high reliability, large amount of information collection, and flexibility and practicality, barcode reading equipment has been widely used in many fields such as commodity circulation, library management, postal and telecommunications management, and banking systems.
[0003] Medical IVD, logistics rapid sorting and other fields have stricter standards for barcode reading equipment, and have higher requirements for accuracy and speed. Therefore, the error rate and missed rate of barcode reading equipment need to reach one millionth according to the new test standards. If conventional manual testing is used, the efficiency, intensity and accuracy of the test cannot meet the requirements. The automatic testing system of the existing technology can only perform automatic testing, but cannot analyze the test data and lacks visualization. Summary of the invention
[0004] To this end, the technical problem to be solved by the present invention is to design a three-axis automated testing method and system thereof in view of the deficiencies of the above-mentioned prior art, so as to ensure product testing pressure and improve product testing efficiency and analysis capability.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] Technical Solution 1
[0007] A three-axis automated testing method comprises the following steps:
[0008] S1: Set the motion controller and test equipment parameters;
[0009] S2: Set the test boundary mode;
[0010] S3: Start the test;
[0011] S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position in the real-time monitoring window interface;
[0012] S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point;
[0013] S6: Screening the bit error and leakage rates of each point obtained in step S5, and generating a visual data graph according to the screening results.
[0014] In step S1, the motion controller parameters include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating motion range, X axis moving speed, and X axis motion times; the test device parameters include serial port number and baud rate, and the number of test devices is greater than or equal to 1.
[0015] In step S2, the test boundary mode includes a full traversal mode and a custom mode. The full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode screens the required test points and test ranges through a visual table.
[0016] In step S4, the real-time monitoring window interface displays the real-time motion position and real-time test results, where the horizontal direction is the depth of field distance and the vertical direction is the height from the center of the barcode.
[0017] The specific steps of S5 are as follows:
[0018] S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code;
[0019] S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
[0020] The specific steps of S5 are as follows:
[0021] S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded;
[0022] S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained;
[0023] S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
[0024] The specific steps of S6 are:
[0025] S61: Obtain the bit error rate of all test points according to step S5, and extract the maximum and minimum values of the bit error rate that meets the standard at each depth of field;
[0026] S62: adding half of the barcode length to the maximum value and subtracting half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field;
[0027] S63: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the visual data graph finally generated.
[0028] Technical Solution 2
[0029] A three-axis automated testing system comprises a three-axis testing platform and a device to be tested, wherein the three-axis testing platform performs the following steps:
[0030] S1: Set the motion controller and test equipment parameters, the motion controller parameters include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating range, X axis moving speed, X axis movement times; the test equipment parameters include serial port number and baud rate, the number of test equipment is greater than or equal to 1;
[0031] S2: Setting the test boundary mode, wherein the test boundary mode includes a full traversal mode and a custom mode, wherein the full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode selects the required test points and test ranges through a visual table;
[0032] S3: Start the test;
[0033] S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position of the real-time monitoring window interface, wherein the horizontal direction of the real-time monitoring window interface is the depth of field distance, and the vertical direction is the height from the center of the barcode;
[0034] S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point;
[0035] S6: Obtain the bit error rate of all test points according to step S5, and extract the maximum and minimum values of the bit error rate that meet the standard at each depth of field;
[0036] S7: Add half of the barcode length to the maximum value and subtract half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field;
[0037] S8: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the final generated visual data graph.
[0038] The specific steps of S5 are as follows:
[0039] S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code;
[0040] S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
[0041] The specific steps of S5 are as follows:
[0042] S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded;
[0043] S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained;
[0044] S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
[0045] The present invention has the following beneficial effects:
[0046] 1. The three-axis automatic testing method and system described in the present invention can select the test mode and test range according to the needs, thus shortening the small-scale testing time.
[0047] 2. The three-axis automated testing method and system described in the present invention facilitate intuitive observation of the test process and results by displaying the real-time test position and generating a visual data graph.
[0048] 3. The three-axis automated testing method and system described in the present invention ensures the integrity of the test data and the comprehensiveness of the data analysis by setting multiple statistical schemes such as test point position statistics and standard barcode information statistics. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a structural schematic diagram of a three-axis automatic testing device of the present invention;
[0050] Figure 2 A flow chart of a three-axis automated testing method of the present invention;
[0051] Figure 3 A schematic diagram of a parameter setting interface of a three-axis automated testing method of the present invention;
[0052] Figure 4 A schematic diagram of a real-time monitoring window of a three-axis automated testing method of the present invention;
[0053] Figure 5 A schematic diagram showing the real-time test position of a three-axis automated test method of the present invention;
[0054] Figure 6 A schematic diagram of statistical results of an embodiment of a three-axis automated testing method of the present invention;
[0055] Figure 7 A schematic diagram of statistical results of another embodiment of a three-axis automated testing method of the present invention;
[0056] Figure 8 A schematic diagram of a data analysis interface of a three-axis automated testing method of the present invention;
[0057] Fig. 9 This is a visualized data diagram of an embodiment of a three-axis automated testing method of the present invention. DETAILED DESCRIPTION
[0058] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0059] Example 1
[0060] like Figure 2 As shown, a three-axis automated testing method comprises the following steps:
[0061] S1: Set the motion controller and test equipment parameters.
[0062] like Figure 3 As shown, in step S1, the motion controller parameters include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating range, X axis moving speed, and X axis movement times; the test device parameters include serial port number and baud rate, and the number of test devices is greater than or equal to 1. In this embodiment, there are 4 test devices for simultaneous testing.
[0063] S2: Set the test boundary mode.
[0064] In step S2, the test boundary mode includes a full traversal mode and a custom mode. The full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode screens the required test points and test ranges through a visual table.
[0065] S3: Start the test;
[0066] like Figure 4 ,5, S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position in the real-time monitoring window interface.
[0067] When the device is testing, according to the storage location of the standard code, if the code is read correctly, a green light will be displayed at the corresponding position, which is convenient for real-time understanding of the test status of each barcode. You can also know the decoding status of the device at the current location in real time.
[0068] In step S4, the real-time monitoring window interface displays the real-time motion position and real-time test results, where the horizontal direction is the depth of field distance and the vertical direction is the height from the center of the barcode.
[0069] S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point.
[0070] There are two statistical schemes adopted in step S5, and the corresponding statistical scheme can be selected according to needs.
[0071] like Figure 6 As shown, in this embodiment, a solution of calculating the bit error and leakage rate according to the test point position is adopted, and step S5 is specifically as follows:
[0072] S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code;
[0073] S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
[0074] like Figure 7 As shown, when the scheme of counting the number of erroneous and missing codes of each barcode at each test point according to the standard barcode information is selected, step S5 is specifically as follows:
[0075] S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded;
[0076] S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained;
[0077] S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
[0078] Since the test equipment also has the risk of missing or erroneous codes when reading the position code information, the missing or erroneous code rate method based on the standard barcode information cannot separately count the missing or erroneous code rates and needs to be combined for statistics.
[0079] S6: Screening the bit error and leakage rates of each point obtained in step S5, and generating a visual data graph according to the screening results.
[0080] like Figure 8 As shown, through the "Open Data Analysis Tool" in the main interface, import the statistical file generated by the test in step 5, as shown in Fig. 9 The visual data graph shown.
[0081] The specific steps of S6 are:
[0082] S61: Obtain the bit error rate of all test points according to step S5, and extract the maximum and minimum values of the bit error rate that meets the standard at each depth of field;
[0083] S62: adding half of the barcode length to the maximum value and subtracting half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field;
[0084] S63: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the visual data graph finally generated.
[0085] The three-axis automated testing method and system described in the present invention can select the test mode and test range according to the needs, thus shortening the test time in a small range. By displaying the real-time test position and generating a visual data graph, it is convenient to observe the test process and results intuitively. By setting various statistical schemes such as test point position statistics and standard barcode information statistics, the integrity of the test data and the comprehensiveness of the data analysis are ensured.
[0086] Example 2
[0087] A three-axis automated testing system comprises a three-axis testing platform and a device to be tested, wherein the three-axis testing platform performs the following steps:
[0088] S1: Set the motion controller and test equipment parameters, the motion controller parameters include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating range, X axis moving speed, X axis movement times; the test equipment parameters include serial port number and baud rate, the number of test equipment is greater than or equal to 1;
[0089] S2: Setting the test boundary mode, wherein the test boundary mode includes a full traversal mode and a custom mode, wherein the full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode selects the required test points and test ranges through a visual table;
[0090] S3: Start the test;
[0091] S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position of the real-time monitoring window interface, wherein the horizontal direction of the real-time monitoring window interface is the depth of field distance, and the vertical direction is the height from the center of the barcode;
[0092] S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point;
[0093] S6: Obtain the bit error rate of all test points according to step S5, and extract the maximum and minimum values of the bit error rate that meet the standard at each depth of field;
[0094] S7: Add half of the barcode length to the maximum value and subtract half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field;
[0095] S8: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the final generated visual data graph.
[0096] The specific steps of S5 are as follows:
[0097] S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code;
[0098] S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
[0099] The specific steps of S5 are as follows:
[0100] S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded;
[0101] S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained;
[0102] S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
[0103] The three-axis automated testing method and system described in the present invention can select the test mode and test range according to the needs, thus shortening the test time in a small range. By displaying the real-time test position and generating a visual data graph, it is convenient to observe the test process and results intuitively. By setting various statistical schemes such as test point position statistics and standard barcode information statistics, the integrity of the test data and the comprehensiveness of the data analysis are ensured.
[0104] The above embodiments are only for illustration rather than limitation of the present invention, so all equivalent changes or modifications made according to the method described in the scope of the present patent application are included in the scope of the present patent application.
Claims
1. A three-axis automated testing method, characterized in that: The following steps are involved: S1: Set the parameters of motion controller and test equipment; S2: Set the test boundary mode; S3: Start the test; S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position in the real-time monitoring window interface; S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point; S6: screening the bit error and leakage rates of each point obtained in step S5, and generating a visual data graph according to the screening results; Among them, step S6 is specifically as follows: S61: extracting the maximum and minimum values of the bit error rate that meets the standard bit error rate at each depth of field according to the bit error rate of each point obtained in step S5; S62: adding half of the barcode length to the maximum value and subtracting half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field; S63: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the visual data graph finally generated.
2. A three-axis automated testing method according to claim 1, characterized in that: In step S1, the parameters of the motion controller include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating motion range, X axis moving speed, and X axis motion times; the parameters of the test device include serial port number and baud rate, and the number of test devices is greater than or equal to 1.
3. A three-axis automated testing method according to claim 2, characterized in that: In step S2, the test boundary mode includes a full traversal mode and a custom mode. The full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode screens the required test points and test ranges through a visual table.
4. A three-axis automated testing method according to claim 1, characterized in that: In step S4, the real-time monitoring window interface displays the real-time motion position and real-time test results, where the horizontal direction is the depth of field distance and the vertical direction is the height from the center of the barcode.
5. A three-axis automated testing method according to claim 1, characterized in that: The specific steps of S5 are as follows: S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code; S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
6. A three-axis automated testing method according to claim 1, characterized in that: The specific steps of S5 are as follows: S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded; S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained; S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
7. A three-axis automated testing system, comprising a three-axis testing platform and a device to be tested, characterized in that: The triaxial test platform performs the following steps: S1: Set the motion controller and test equipment parameters, the motion controller parameters include YZ axis step value, YZ axis moving speed, depth of field range, vertical height range, X axis reciprocating range, X axis moving speed, X axis movement times; the test equipment parameters include serial port number and baud rate, the number of test equipment is greater than or equal to 1; S2: Setting the test boundary mode, wherein the test boundary mode includes a full traversal mode and a custom mode, wherein the full traversal mode performs a full traversal test within the range of motion controller parameters set in step S1; the custom mode selects the required test points and test ranges through a visual table; S3: Start the test; S4: Compare the current point test data with the standard code, and mark the comparison result at the corresponding position of the real-time monitoring window interface, wherein the horizontal direction of the real-time monitoring window interface is the depth of field distance, and the vertical direction is the height from the center of the barcode; S5: According to the comparison result of step S4, the bit error rate of each point on the YZ plane is counted according to the position of the test point; S6: Obtain the bit error rate of all test points according to step S5, and extract the maximum and minimum values of the bit error rate that meet the standard at each depth of field; S7: Add half of the barcode length to the maximum value and subtract half of the barcode length from the minimum value to obtain the maximum window value and the minimum window value of the current depth of field; S8: Record the points between the maximum window value and the minimum window value that do not meet the standard error rate, and mark them in the final generated visual data graph.
8. A three-axis automated testing system according to claim 7, characterized in that: The specific steps of S5 are as follows: S51: Compare the barcode obtained by the test device with the standard barcode, if they are equal, record it as a correct code; if they are not equal, record it as an error code; when the test device completes the movement, if the code reading information is missing compared with the standard barcode, record it as a missing code; S52: According to the result of S51, the accuracy, bit error rate and bit leakage rate of all test points on the YZ plane are calculated respectively.
9. A three-axis automated testing system according to claim 7, characterized in that: The specific steps of S5 are as follows: S51: when the X-axis moves leftward / rightward, the index set corresponding to the code word read by the test device is recorded; S52: when the X-axis moves leftward / rightward, a set of unmatched standard codeword indexes is obtained; S53: At each test point, the barcodes corresponding to the set of unmatched standard codeword indexes are counted respectively. When the test of the point is completed, the number of error and omission codes and the error and omission code rate of each barcode at the position can be obtained.
Citation Information
Patent Citations
Method and system for controlling the test of bar-code recognizing device
CN101162497A
Electronic ink screen bar code testing device and method
CN104537403A