WO2023116752A1 - Test method and test apparatus for code scanner head - Google Patents

Test method and test apparatus for code scanner head Download PDF

Info

Publication number
WO2023116752A1
WO2023116752A1 PCT/CN2022/140645 CN2022140645W WO2023116752A1 WO 2023116752 A1 WO2023116752 A1 WO 2023116752A1 CN 2022140645 W CN2022140645 W CN 2022140645W WO 2023116752 A1 WO2023116752 A1 WO 2023116752A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
scanning
tested
dock
pcba
Prior art date
Application number
PCT/CN2022/140645
Other languages
French (fr)
Chinese (zh)
Inventor
林喆
刘力豪
方梦宇
蔡晓桓
刘敏
Original Assignee
上海商米科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202123255218.6U external-priority patent/CN216526114U/en
Priority claimed from CN202111579446.0A external-priority patent/CN114253857A/en
Application filed by 上海商米科技集团股份有限公司 filed Critical 上海商米科技集团股份有限公司
Publication of WO2023116752A1 publication Critical patent/WO2023116752A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/54Testing for continuity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation

Definitions

  • the present application mainly relates to an automatic detection method and device, in particular to a detection method and a detection device for scanning docks.
  • the existing equipment test items are single, there is a lot of repetitive labor in the test process, the degree of automation is low, and the test efficiency is low. The error is large.
  • the above-mentioned problems lead to low detection efficiency and lax quality control of the wharf to be scanned.
  • the application proposes a detection method for scanning docks to solve the above-mentioned technical problems, including: judging whether to perform PCBA test and/or module test according to the complete test status flag of the sweep dock to be tested, the complete test status flag is used
  • the test status includes a PCBA test status and a module test status
  • the PCBA test includes the following steps: Step S11: Obtain the serial number and the serial number of the dock to be tested Firmware version number; Step S12: If the serial number is obtained successfully, and the firmware version number is correct, then judge whether to open the PCBA automatic test; Step S13: If the PCBA automatic test is opened, then automatically execute the PCBA test The PCBA test item; Step S14: record PCBA test result;
  • the module test includes the following steps: Step S21: Obtain the serial number, firmware version number and the PCBA test result of the scanning dock to be tested; Step S22: If Successfully obtain the serial number, the firmware version number is correct, and the PCBA test result is passed,
  • the step of judging whether to carry out the PCBA test and/or module test according to the complete test status flag bit of the scanning dock to be tested it also includes: from the micro control unit of the scanning dock to be tested Obtain the complete test status flag bit in .
  • the complete test status flag includes multi-bit binary characters, including a first group of binary characters and a second group of binary characters, and the first group of binary characters is used to indicate that the PCBA test state, the second group of binary characters is used to represent the test state of the module.
  • step S11 and before the step S21 it also includes: writing the serial number and firmware version number of the scanning dock to be tested into the micro control unit; the steps Both S11 and the step S21 include: reading the serial number and the firmware version number from the micro control unit.
  • the step S21 further includes: reading the PCBA test result from the microcontroller unit.
  • the PCBA test item and/or the module test item at least includes a current test.
  • the PCBA test item also includes one or a combination of supplementary light grid lamp test and code scanning test.
  • the module test item further includes one or any combination of supplementary light grid light test, code scanning test, close-range test and distant view test.
  • the module test result is passed.
  • a module verification is also included, and the module verification is used to judge the grating lamp to be tested. Whether the boundary aperture is within the FOV of the camera of the dock to be tested, and if so, the dock to be tested passes the module verification.
  • the step of module verification includes: enabling the scanning terminal to be tested to perform a code scanning operation; when performing the code scanning operation, obtaining the grating light of the scanning terminal to be tested Calculate the offset of the quasi-center, and judge whether the boundary aperture of the grating light of the wharf to be tested is located within the FOV of the camera of the wharf to be tested according to the offset.
  • the dock to be tested includes one or any combination of a camera, a laser light and a supplementary light.
  • the present application also provides a detection device for scanning docks, including: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the detection method for scanning docks as described above.
  • the present application also provides a computer-readable medium storing computer program codes, the computer program codes implement the above-mentioned scanning code detection method when executed by a processor.
  • the detection method of sweeping the dock of the present application knows the test state of the sweeping dock in advance before the test, avoids interface switching, and simplifies the operation process; at the same time, by setting two test modes of automatic test and manual test, automatic judgment and manual judgment by software
  • the combined method reduces manual intervention in the testing process, improves testing efficiency, and is conducive to improving the production efficiency and testing quality of dock sweeping.
  • the present application provides a detection device for scanning docks, including: a test terminal for carrying the scanning dock to be tested; a display terminal for generating and displaying barcodes; a driving mechanism for placing the display terminal or The mold of the test terminal; and a controller for controlling the test terminal, the display terminal and the driving mechanism, wherein the controller controls the test parameters of the scan terminal to be tested through the test terminal , the controller controls the movement of the driving mechanism and the barcode to be generated and displayed by the display terminal according to the test content.
  • the display terminal includes a display screen.
  • the driving mechanism includes a mechanical arm.
  • one or any of the controller, the testing terminal, the display terminal and the driving mechanism are connected to the same wireless network.
  • the controller is further configured to send a first instruction to the driving mechanism, where the first instruction includes an instruction to control the moving track and/or moving speed of the driving mechanism.
  • the controller is further configured to send a second instruction to the display terminal, the second instruction includes one or any of the size, type, color and grayscale of the barcode combination.
  • the controller is further configured to record the state of the barcode, and the state includes one or any combination of barcode generation success, barcode generation failure, and barcode generation timeout.
  • the controller is further configured to send a third instruction to the test terminal, the third instruction includes the parameters of the dock scan test and the test result parameters, wherein the scan dock test
  • the parameters include the switch command and code scanning frequency of the scanning dock to be tested, and the test result parameters include a timeout period.
  • the controller is further configured to judge the test result of the current scan code test according to the test result parameter, and the test result includes one or any of test success, test failure and timeout failure combination.
  • the test content includes one or any combination of depth of field test, grayscale test, motion tolerance, fixed speed, color barcode, and stained barcode.
  • the testing device for scanning docks of the present application can automatically complete the testing of code scanners or scanning docks by combining the controller, testing terminal, display terminal and driving mechanism into a unified automatic testing device, thereby improving the testing efficiency.
  • Fig. 1 is the structural block diagram of the dock to be tested in the detection method of scanning dock according to an embodiment of the present application
  • FIG. 2 is an exemplary flow chart of a detection method for scanning docks according to an embodiment of the present application
  • Fig. 3 is an exemplary flow chart of PCBA testing in the detection method of scanning dock according to an embodiment of the present application
  • Fig. 4 is an exemplary flow chart of PCBA testing in the detection method of scanning dock according to an embodiment of the present application
  • Fig. 5 is an exemplary flow chart of module testing in the detection method of dock scanning according to an embodiment of the present application
  • FIG. 6A and FIG. 6B are exemplary flowcharts of module testing in the detection method of dock scanning according to an embodiment of the present application
  • FIGS. 7A and 7B are schematic diagrams of the principle of module verification in the detection method of dock scanning according to an embodiment of the present application.
  • Fig. 8 is a schematic diagram of the connection relationship of the detection device for scanning the dock according to an embodiment of the present application.
  • FIG. 9 is a schematic structural frame diagram of a detection device for scanning docks according to an embodiment of the present application.
  • Fig. 10 is an exemplary timing diagram of the detection device for scanning the dock of the embodiment shown in Fig. 9 when testing;
  • Fig. 11 is a schematic structural frame diagram of a detection device for scanning docks according to another embodiment of the present application.
  • FIG. 12 is a system block diagram of a detection device for scanning docks according to an embodiment of the present application.
  • the flow chart is used in this application to illustrate the operations performed by the system according to the embodiment of this application. It should be understood that the preceding or following operations are not necessarily performed in an exact order. Instead, various steps may be processed in reverse order or concurrently. At the same time, other operations are either added to these procedures, or a certain step or steps are removed from these procedures.
  • the dock to be tested includes one or any combination of a camera, a grating light and a supplementary light.
  • FIG. 1 is a structural block diagram of a dock to be tested in a dock scanning detection method according to an embodiment of the present application.
  • the dock scanner to be tested mainly includes a grating light 12 , a camera 13 , a supplementary light 14 , and a dock scanner motherboard 11 for placing these hardware.
  • the dock mainboard 11 includes an MCU chip. It can be understood that what is shown in FIG. 1 is only an example, and is not intended to limit the specific hardware included in the dock scanning to be tested.
  • PCBA Print Circuit Board Assembly
  • module test the test of scanning dock can be divided into two stages: PCBA (Printed Circuit Board Assembly) test and module test.
  • PCBA refers to the whole process of PCB empty board passing through SMT upper part or DIP plug-in.
  • the main hardware to be tested for scanning the dock includes the grating light 12 shown in FIG. 1 , the camera 13 and the supplementary light 14 .
  • hardware such as camera 13, grating light 12 and fill light 14 can be fastened to the scanner main board 11, as shown in FIG. 1 .
  • the module test is usually after the PCBA test is completed, the dock scanning main board 11, the grating light 12, the camera 13 and the fill light 14 shown in Figure 1 are packaged as a whole into a complete dock scanning hardware 10, and the complete dock scanning The overall test of the hardware 10 is performed to investigate the complete performance of the scanning dock to be tested in use.
  • the detection method of the sweeping dock of the present application includes: judging whether to carry out PCBA test and/or module test according to the complete test state flag of the sweeping dock to be tested, the complete test state flag is used to represent the test state of the sweeping dock to be tested, and the test Status includes PCBA testing status and module testing status.
  • the complete test status flag of the dock to be tested there is no limitation on how to obtain the complete test status flag of the dock to be tested. You can check whether the test item has passed the test by entering the test item of the dock scan to be tested.
  • a micro control unit can be included in the main board 11 of the scanning dock as shown in FIG. 1 .
  • FIG. 2 is an exemplary flow chart of a detection method for scanning docks according to an embodiment of the present application. As shown in Figure 2, the detection method of this embodiment comprises the following steps:
  • Step S01 Insert the scanning dock to be tested.
  • a dock-sweeping test fixture is used in the dock-sweeping test process, and the fixture includes a tester and various test environments.
  • the accompanying test machine is externally connected to the FPC cable, and the terminal to be tested is connected to the accompanying test machine through the FPC line. Inserting the scanning dock to be tested in this step refers to buckling the scanning dock to be tested to the FPC and connecting it with the accompanying test machine.
  • Step S02 Obtain the complete test status flag. That is, the test results of the PCBA test and the module test are obtained. This application does not limit how to obtain the complete test status flag.
  • Step S03 Determine whether the dock scanning to be tested has been tested. If yes, go to step S05; if not, go to step S04.
  • the complete test status flag when the dock to be tested is connected to the tester, can be obtained from the micro control unit (MCU) through program settings, and the complete test status flag includes multiple Bit binary characters, which include the first group of binary characters used to represent the PCBA test status and the second group of binary characters used to represent the module test status.
  • MCU micro control unit
  • the complete test state flag can be the following 16 binary characters: 1111000011110000; wherein the first eight characters are the first group of binary characters, representing the PCBA Test result, the last eight characters are the second group of binary characters, indicating the result of the module test.
  • the binary character "1" can indicate that the test result of a specific item is successful, and "0" indicates failure or not tested.
  • the test status of PCBA test and module test can be checked through the flag bit, so as to determine the next step according to the test result. Exemplarily, it is assumed that the PCBA test includes a current test, a code scanning test and a supplementary light test.
  • the first digit from the left represents the current test result
  • the second digit represents the code scanning
  • the third digit indicates the supplementary light test. If the current test of the scanning terminal to be tested is successful, the code scanning test fails, and the supplementary light test is successful, the first group of binary characters is: 10100000. According to the agreement, the status of each test item in the scanning dock to be tested can be known by reading the complete test status flag.
  • Step S03 can know the status of all PCBA tests and module tests of the scanning terminal to be tested according to the complete test status flag.
  • a specific flag bit may be set in the complete test status flag bit to indicate whether a certain test item has been tested. It can also be judged whether one of the multiple test items has been tested. Continuing the above example, for example, judge whether there is "1" in the first group of binary characters tested by PCBA, and whether there is "1" in the second group of binary characters tested by the module. Tested if there is at least one "1".
  • Step S04 Display a green background. If it is determined in step S03 that the dock to be tested has not been tested, a green background is displayed, indicating that the dock to be tested needs to be tested.
  • Step S05 Determine whether the test is successful. If it is judged in step S03 that the dock to be tested has been tested, then further judge the result of the test. If yes, go to step S07; if not, go to step S06. Step S05 can be used to determine whether all test items are successfully tested, or determine whether a specific test item is successfully tested.
  • Step S06 Display a red background. If it is determined in step S05 that the terminal to be tested has not passed the test, a red background is displayed. Indicates that the dock to be tested needs to be tested.
  • Step S07 Display a turquoise background. If it is determined in step S05 that the dock to be tested has passed the test, a turquoise background will be displayed. Indicates that the terminal of the meter to be tested has passed the test, and no follow-up test is required.
  • steps S03 and S05 can be combined into one step, and according to these embodiments, three different background colors can be given based on the result of one judgment.
  • FIG. 3 is an exemplary flow chart of PCBA testing in the detection method for scanning docks according to an embodiment of the present application. As shown in Figure 3, the PCBA test in this embodiment comprises the following steps:
  • Step S11 Obtain the serial number (SN number) and firmware version number of the dock to be tested.
  • the SN number is the unique identification of each scanner, which is written into the MCU according to the established rules before the test.
  • the firmware version number is the firmware version information imported by the current batch production, and the firmware version is written into the MCU before testing.
  • Step S12 If the serial number is obtained successfully and the firmware version number is correct, then determine whether to enable the PCBA automatic test.
  • the SN number and firmware version number can be read from the MCU.
  • the successful acquisition of the serial number in step S12 means that the SN number has been read, and the SN number is legal. If the SN number cannot be read from the MCU, or the SN number is illegal, the serial number has not been obtained successfully.
  • the SN to be read is written according to a specific rule. If the SN cannot be read out according to the specific rule, it means that the SN is not written in the MCU or the SN is wrong. If no SN is written, the read SN will be empty or a default specific character.
  • step S12 if the serial number is not obtained successfully, or the firmware version number is incorrect, a prompt box will pop up in the software interface for testing, and the testing is not allowed.
  • Step S13 If the PCBA automatic test is enabled, the PCBA test items in the PCBA test are automatically executed.
  • the automatic test is started through the software interface, and then each test item is tested according to the set order, and the test results of each test item are judged. If a certain test is passed, the next test will be automatically executed. item, if a test is not passed, the test is stopped and the test item is recorded. Correspondingly, if the automatic test is not enabled, manual testing is used to manually control the test items to be performed by clicking the corresponding test items on the software interface.
  • Step S14 Record the PCBA test results.
  • the PCBA test result is recorded in a flag bit corresponding to the PCBA test among the complete test status flag bits.
  • the PCBA test item and/or the module test item at least includes a current test.
  • the PCBA test item also includes one or a combination of supplementary light grid light test and code scanning test.
  • Fig. 4 is the exemplary flow chart of PCBA test in the detection method of sweeping dock of an embodiment of the present application, and this embodiment comprises the following steps:
  • Step S110 Obtain SN number and firmware version number. According to the obtained SN number and the firmware version number, the next step to be executed is judged. If the obtained SN number and the firmware version number are correct, step S112 is executed, otherwise, step S111 is executed, and the test is ended.
  • Step S112 Determine whether to test automatically.
  • automatic PCBA testing or manual PCBA testing can be selected through the software interface. If the automatic test is enabled, go to step S113; otherwise, go to step S120.
  • Step S113 Perform a current test.
  • the PCBA test items in the PCBA test are automatically executed.
  • the order of the test items can be set.
  • the test items include: current test, supplementary light grid lamp test and code scanning test.
  • the order of the test items can be adjusted according to requirements.
  • the test order is: current test, supplementary light grid light test, and code scanning test. In this way, if the current test fails, it means that the hardware itself is not connected, and there is no need to carry out the next test; after the current test is passed, it is necessary to judge whether there is any solder joint between the hardware through the supplementary light grid lamp test.
  • the code scanning test is performed only after the test is passed.
  • Step S114 Determine whether the current test is successful. If the current test fails, go to step S128: stop the test, then go to step S129: record the test failure; if the test is successful, go to step S115.
  • Step S115 Carry out a grid light test for supplementary light.
  • Step S116 Judging whether the test of the supplementary light grid light is successful. If the supplementary light grid light test fails, proceed to step S128: stop the test, and then proceed to step S129: record the test failure; if the test succeeds, proceed to step S117.
  • Step S117 Perform code scanning test.
  • Step S118 Determine whether the code scanning test is successful. If the code scanning test fails, proceed to step S128: stop the test, and then perform step S129: record the test failure. If the code scanning test is successful, step S119 is executed.
  • Step S119 record that the test is successful. If the scanning dock to be tested passes the current test, fill light grid light test and code scanning test, the record test is successful, that is, the scanning dock to be tested has passed all PCBA tests.
  • Step 120 Manual testing. If it is judged in step S112 that the automatic test is not enabled, a manual test is performed by default. Specifically, in step S120, the test item can be selected manually by manually clicking on the software interface.
  • the test items listed in the embodiment shown in FIG. 4 include: current test, supplementary light grid light test and code scanning test. If the current test is selected, step S121 is performed; if the supplementary light grid light test is selected, step S122 is performed; if the code scanning test is selected, step S123 is performed.
  • Step S121 Conduct a current test.
  • Step S122 Carry out a grid light test for supplementary light.
  • Step S123 Perform code scanning test.
  • Step S124 After the current test is performed, it is judged in this step whether it is successful or not, and the test result is recorded.
  • Step S125 After the supplementary light grid lamp test, judge whether it is successful or not in this step, and record the test result.
  • Step S126 After the code scanning test is performed, it is judged in this step whether it is successful or not, and the test result is recorded.
  • Step S127 Judging whether all test items of the manual test are all successful. If all test items are successful, it is determined that the test is passed, and step 119 is performed to record that the test is successful; otherwise, it is determined that the test is not passed, and step S129 is performed.
  • step S127 the judgment results of steps S124, S125 and S126 are directly sent to step S127, as long as one of the results is failure, the judgment result of step S127 is no.
  • step S127 it is judged in step S127 whether all PCBA test items have been executed according to the number of judgment results received. For example, if the number of PCBA test items is set to 3, then in step S127, if 3 test results are received, it means that all test items have been manually clicked, and it can be determined whether all test items are successful.
  • Step S128 Stop testing.
  • Step S129 Record test failure.
  • both the record test success in step S119 and the test failure record in step S129 are recorded in the flag bits corresponding to the PCBA test item in the complete test status flag bits of the scanning terminal to be tested.
  • the PCBA test is considered to be a failure.
  • the PCBA test result is passed.
  • FIG. 5 is an exemplary flow chart of module testing in the detection method of dock scanning according to an embodiment of the present application. As shown in Figure 5, the module test in this embodiment comprises the following steps:
  • Step S21 Obtain the serial number and firmware version number of the dock to be tested and obtain the PCBA test result.
  • the specific content of obtaining the serial number and the firmware version number of the dock to be scanned is the same as step S11, and will not be repeated here.
  • Step S22 If the serial number is obtained successfully, the firmware version number is correct, and the PCBA test result is passed, it is judged whether to enable the module automatic test.
  • the difference between step S22 and step S12 is that this step requires that the scanning terminal to be tested has passed the PCBA test, and if it fails, the module test will not be performed; what is more, the judgment of this step is: enable the automatic module test. The same part as step S12 will not be repeated here.
  • Step S23 If the automatic module test is enabled, the module test item in the module test is automatically executed.
  • the module test items include at least a current test.
  • the module test item also includes one or any combination of supplementary light grid light test, code scanning test, close-range test and distant view test.
  • step S23 can be controlled through the same software interface as in step S13.
  • Step S24 Record the module test result.
  • FIG. 6A and FIG. 6B are exemplary flowcharts of module testing in the detection method for scanning docks according to an embodiment of the present application. It should be noted that in the process of module testing, in addition to obtaining the SN number and firmware version before step S210 shown in Figure 6A, it is also necessary to determine whether the scanning terminal to be tested has passed the PCBA test, and if it has not passed the PCBA test, then no Mod testing process, but end testing.
  • FIG. 6A and FIG. 6B are used together to illustrate the overall process of the module test in this embodiment, wherein the test items of the module test include current test, supplementary light grid lamp test, code scanning test, close-up test and long-term test.
  • the module test of this embodiment includes the following steps:
  • Step S210 Obtain the SN number, firmware version number and PCBA test flag, when the SN number and the firmware version number are correct, and judge the scanning dock to be tested according to the PCBA test flag in the complete test status flag of the scanning dock to be tested If the PCBA test has been passed, turn to step S212; otherwise, turn to step S211.
  • step S210 is no.
  • Step S211 End the module test.
  • Step S212 Determine whether to enable automatic testing. This step is similar to step S112, except that the test to be performed is a module test instead of a PCBA test. The specific steps will not be described further. If yes, execute step S214; if no, execute step S213.
  • Step S213 When the automatic test is not enabled, perform a manual test on the software interface, and manually click each test item in the module test.
  • the specific flow of manual testing is illustrated in Figure 6B.
  • Step S214 Conduct a current test.
  • Step S215 Determine whether the current test is successful. If yes, execute step S216; if not, execute step S230.
  • Step S216 Carry out a grid light test for supplementary light.
  • Step S217 Judging whether the supplementary light grid light test is successful. If yes, execute step S218; if not, execute step S230.
  • Step S218 Perform code scanning test.
  • Step S219 Determine whether the code scanning test is successful. If yes, execute step S220; if not, execute step S230.
  • Step S220 Perform a close-range test.
  • Step S221 Determine whether the close-range test is successful. If yes, execute step S222; if not, execute step S230.
  • Step S222 Perform a prospect test.
  • Step S223 Determine whether the prospect test is successful. If yes, execute step S224; if not, execute step S230.
  • Step S224 Perform module verification.
  • Step S225 Automatically determine whether the module verification is successful. If yes, execute step S226; if no, execute step S230.
  • Step S226 Manually judge whether the module verification is successful. If yes, execute step S227; if no, execute step S230.
  • Step S230 Stop testing.
  • Step S231 Record test failure.
  • sequence of test items defined in the automatic test process shown in FIG. 6A is: current test, supplementary light grid light test, code scanning test, close-up test, long-range test and module verification.
  • step S213 in FIG. 6A the following steps are also included:
  • Step S240 Conduct a current test.
  • Step S241 Perform a prospect test.
  • step S240 other tests included in the module test of this embodiment are omitted between the modules of step S240 and step S241, which are the supplementary light grid light test, the code scanning test, and the close-up test.
  • Step S242 Determine whether the current test is successful.
  • Step S243 Determine whether the prospect test is successful.
  • step S242 the judging box for judging whether the supplementary light grid light test, code scanning test, and close-up test is successful is omitted.
  • Step S244 Determine whether all processes are successful. When all the module test items are successful, turn to step S227.
  • This step S227 is the same step as that in FIG. 6A , so the same reference numerals are used.
  • step S244 If one of the module test items fails or fails, the result of step S244 is no, and the process turns to step S230.
  • Step S230 and step S231 in FIG. 6B are the same step as step S230 and step S231 in FIG. 6A respectively, so the same reference numerals are used.
  • Step S251 Perform module verification.
  • Module verification can be performed by selecting this option.
  • the module verification is the same as the module verification in step S224 in FIG. 6A , and will be described in a unified manner later.
  • Step S252 Automatically judge whether the module verification is successful. If yes, execute step S253; if not, execute step S230.
  • Step S253 Manually judge whether the module verification is successful. If yes, execute step S227; if not, execute step S230.
  • Figure 6A and Figure 6B together show an embodiment of a complete detection method.
  • the steps related to module verification namely steps S224, 225, 226, 251, 252, and 253, may not be included.
  • the step S226 and step S253 of manually judging whether it is successful may not be included in the step of module verification.
  • the scanning dock to be tested has passed the complete test of PCBA test and module test, and the test result obtained can be used as the test result of the scanning dock to be tested, and recorded in the scanning dock to be tested. Complete test status flags.
  • module verification is also included.
  • the module verification is used to judge whether the boundary aperture of the grating light of the wharf to be tested is within the FOV of the camera of the wharf to be tested, and if so, the wharf to be tested has passed the module verification.
  • the module verification includes the following steps: first, make the scanning dock to be tested perform a code scanning operation; specifically, make the scanning dock to be tested face the white background to perform the code scanning operation, and there is a gap between the scanning dock to be tested and the white background.
  • a certain preset distance when performing the code scanning operation, obtain the boundary aperture and crosshair of the grating light of the dock to be tested, calculate the offset of the crosshair, and judge the grating of the dock to be tested according to the offset Whether the boundary aperture of the light is within the FOV of the camera of the dock to be tested.
  • FIG. 7A and 7B are schematic diagrams of the principle of module verification in the detection method according to an embodiment of the present application.
  • the scanning terminal to be tested is located about 15 cm away from the scanning plane 70 .
  • the scan plane 70 may be a white background. Perform scan operations even with cameras and light barriers working simultaneously.
  • the camera forms a FOV (Field of View) field of view 71 as shown in the outer frame on the scanning plane 70, and the grating light forms a boundary aperture 72 and a quasicenter 73 as shown in the inner frame on the scanning plane 70 .
  • the crosshair 73 is a crosshair.
  • the collimator 73 may have other shapes.
  • the FOV angle of view 71 of the camera is fixed, and the boundary aperture 72 of the grating light is fixed.
  • the FOV angle of view 71 can be directly used as the size of the imaged picture, and calculated according to the algorithm Based on the position of the collimator 73 in the imaging picture, it can be calculated whether the boundary aperture 72 of the grating lamp is located outside the imaging picture. For example, parameters such as the top margin, bottom margin, left margin, and right margin from the boundary aperture 72 to the FOV viewing angle 71 can be calculated.
  • the camera to be tested to scan the dock is a camera module.
  • the boundary aperture 72 is located in the FOV field of view angle 71; when the installation of the camera module and the grating light of the wharf to be tested is unqualified, the boundary aperture 72 may be Located outside the 71° angle of view of the FOV.
  • steps S226 and S253 of manual judgment in Fig. 6A and Fig. 6B include: after the automatic judgment is completed, the FOV map and the photo of the grating light are displayed together for the tester to re-judgment.
  • the present application also provides a detection device for scanning docks, including a test terminal, a display terminal, a driving mechanism and a controller.
  • the detection device can be used to implement the detection method described above.
  • the detection device can be used in the PCBA test stage and the module test stage in the above detection method.
  • the detection device is used for scanning code testing in the PCBA testing phase, scanning code testing in module testing, close-range testing and long-term testing, etc.
  • FIG. 8 is a schematic diagram of a connection relationship of a detection device for scanning docks according to an embodiment of the present application.
  • the detection device 800 of this embodiment includes a testing terminal 810 , a display terminal 820 , a driving mechanism 830 and a controller 840 .
  • the test terminal 810 is used to carry the scanning terminal to be tested; the display terminal 820 is used to generate and display barcodes; the drive mechanism 830 has a mold (not shown) for placing the display terminal 820 or the test terminal 810; the controller 840 is used for Control the test terminal 810, the display terminal 820 and the drive mechanism 830, wherein the controller 840 controls the test parameters of the terminal to be tested through the test terminal 810, and the controller 840 controls the movement of the drive mechanism 830 and the display terminal 820 according to the test content.
  • the barcode to be generated and displayed.
  • the controller 840 is also used to perform the following steps in the detection method: obtain the complete test status flag bit from the micro control unit of the dock to be tested; judge whether to Conduct PCBA testing and/or module testing.
  • the drive mechanism 830 can drive the display terminal 820 to move under the control of the controller 840. At this time, the position of the test terminal 810 Fixed; if the test end 810 is placed on the mold of the drive mechanism 830, the drive mechanism 830 can drive the test end 810 to move under the control of the controller 840. At this time, the position of the display end 820 is fixed.
  • the connecting lines are used in the figure to indicate the connection relationship of the various components, but the connecting lines are not used to limit the connection between the various components in a wired manner.
  • the controller 840 is respectively connected with the display terminal 820 , the testing terminal 810 and the driving mechanism 830 .
  • one or any of the controller 840, the testing terminal 810, the display terminal 820 and the driving mechanism 830 are connected to the same wireless network.
  • the controller 840, the test terminal 810, the display terminal 820 and the driving mechanism 830 are all connected to the same router 850, that is, the controller 840, the test terminal 810, the display terminal 820 and the The drive mechanism 830 is in the same wireless network.
  • the driving mechanism 830 can receive instructions from the controller 840 through the wireless network, so as to control the movement of the mold according to the instructions, and then drive the movement of the display terminal 820 or the testing terminal 810 .
  • the test content includes any one of PCBA test items and module test items.
  • the controller 840 controls the movement of the driving mechanism 830 and the barcode to be generated and displayed by the display terminal 820 according to the test content. It can be understood that the cooperation of the driving mechanism 830 and the display terminal 820 may not be required for the test of some test items, such as the current test, the controller 840 directly controls the scanning terminal to perform the current test.
  • the test content includes one or any combination of depth of field test, grayscale test, motion tolerance, fixed speed, color barcode, and stained barcode, and the required tests can be customized according to actual needs.
  • These test contents all involve the control of the drive mechanism 830 and the display terminal 820 by the controller 840 .
  • the barcodes to be generated by the display terminal 820 are different, for example, the content of the barcodes and the size of the barcodes (such as: 15mil QR codes) can be different.
  • the controller 840 controls the display terminal 820 to generate a color barcode.
  • This application does not limit the method of how the display terminal 820 generates the color barcode.
  • a plurality of color barcodes used for the color barcode test may be stored in the controller 840 in advance.
  • the display terminal 820 When the test content is a defaced barcode, the display terminal 820 generates a defaced barcode. Due to the actual situation, there can be many kinds of defaced barcodes, such as the location, size, and shape of the defaced part, etc. Displays the desired defaced barcode.
  • the moving modes of the driving mechanism 830 are also different.
  • the controller 840 controls the driving mechanism 830 to move according to the requirements of the depth of field test.
  • the controller 840 controls the scanning dock to be tested on the testing terminal 810 to perform a code scanning and record the scanning result.
  • the distance when the code scanning of the terminal under test is successful for the first time is the short-range distance.
  • the content of the depth of field test is only an example, and is not intended to limit the specific content of the actual depth of field test.
  • the controller 840 is further configured to send a first instruction to the driving mechanism 830 , where the first instruction includes an instruction to control the moving track and/or moving speed of the driving mechanism 830 . It can be understood that the first instruction is related to the test content.
  • the movement trajectory is an arbitrary route in three-dimensional space.
  • the controller 840 is further configured to send a second instruction to the display terminal 820 .
  • the second instruction includes displaying one or any combination of the size, type, color and grayscale of the barcode. It can be understood that the second instruction is related to the test content.
  • the controller 840 when the wharf to be tested is tested, sends the first instruction to the driving mechanism 830 so that the driving mechanism 830 moves according to the test content, so that the test process is well controllable;
  • the terminal 820 sends a second instruction containing different content to change the content of the barcode displayed on the display terminal 820, so that manual replacement of the barcode is not required, and the efficiency of the test is improved.
  • the controller 840 is also used to record the state of the barcode generated and displayed by the display terminal 820, the state including one or any combination of successful barcode generation, barcode generation failure, and barcode generation timeout.
  • the display terminal 820 needs to generate and display a specific barcode according to the test content.
  • the barcode finally generated and displayed by the display terminal 820 may be different from the predetermined barcode to be displayed.
  • these embodiments provide a verification function for displayed barcodes. According to the status of the recorded barcode, it can be clearly defined whether the barcode was generated successfully, failed or timed out. In this way, when the barcode fails to be generated, the fault can be eliminated in time to avoid the long-term suspension of the barcode scan test due to the failure to generate the barcode.
  • the display terminal 820 returns the result of generating the barcode according to the first instruction to the controller 840, so that the controller 840 obtains the result of generating the barcode, and calculates the state of the barcode.
  • the application does not limit the types of barcodes displayed on the display terminal 820, and the barcodes may include one-dimensional barcodes, two-dimensional barcodes, and multi-dimensional barcodes.
  • the barcodes may include one-dimensional barcodes, two-dimensional barcodes, and multi-dimensional barcodes.
  • the barcodes may include one-dimensional barcodes, two-dimensional barcodes, and multi-dimensional barcodes.
  • the following types of barcodes CODE25_INTERLEAVED, CODE39, CODE25_INDUSTRY, CODE39_EXTENDED, CODE93, CODE_128, EAN, UPC_A, UPC_E, QR, PDF417, DATAMATRIX, AZTEC, CHANNEL_CODE, CODABAR, CODE25_INDUSTRY, CODE25_INTER LEAVED, CODE_11, CODE25_MATRIX, CODE25_IATA, CODE25_DATALOGIC , ITF14, CODE39
  • the controller 840 includes terminals such as a computer (PC), a tablet computer, and the like.
  • the controller 840 is further configured to send a third instruction to the testing terminal 810, where the third instruction includes a terminal scanning test parameter and a test result parameter.
  • the test parameters of the scanning terminal include the switch command and the scanning frequency of the scanning terminal to be tested, and the test result parameters include the timeout time.
  • the opening and closing of the scanning dock can be controlled by sending the third instruction through the controller 840 without manual participation.
  • the code scanning frequency and timeout time can also be changed through the controller 840 .
  • the code scanning frequency can be set to 20 milliseconds through the controller 840, that is, the code is scanned every 20 ms; Code timed out.
  • the controller 840 is further configured to judge the test result of the current code scanning test according to the test result parameter, and the test result includes one or any combination of test success, test failure and timeout failure. For example, if the timeout period is set to 2 seconds by the controller 840, when the code scanning result of the test terminal 810 exceeds 2 seconds, the code scanning result cannot be obtained, and the controller 840 judges the code scanning test result as a code scanning timeout; If the code scanning result is correct, the controller 840 determines the test result of the code scanning test as successful code scanning, and then moves the driving mechanism 830 to perform the next test. If the scan code fails, re-scan the code until the number of failures reaches the predetermined number or the scan code times out.
  • the controller 840 can store them in digital format, such as xls, txt format, so as to facilitate the sharing, backup and delivery of subsequent test results.
  • the step of manually recording the test results is also omitted, which improves the test efficiency.
  • FIG. 9 is a schematic diagram of a structural frame of a detection device according to an embodiment of the present application. 8 and FIG. 9, in the embodiment shown in FIG. 9, the test terminal 810 of the detection device 800 is embodied as a code scanning test terminal 910, the display terminal 810 is embodied as a barcode display terminal 920, and the driving mechanism 830 is embodied as The robotic arm 930 and the controller 840 correspond to the controller 940 in FIG. 9 . Since FIG. 9 is a specific implementation of the embodiment shown in FIG. 8, the same components may use different labels, such as controller 840 and controller 940, which respectively refer to the controller 840 in the framework detection device 800 , the specific implementation of the controller 940 in the detection device 900, both of which belong to different representations of the same element.
  • controller 840 and controller 940 which respectively refer to the controller 840 in the framework detection device 800
  • the specific implementation of the controller 940 in the detection device 900 both of which belong to different representations of the same element.
  • a code scanning terminal 910 is equipped with a code scanning terminal to be tested.
  • the code scanning test terminal 910 can be equipped with various types of scanning docks, and has wide versatility.
  • a barcode is generated and displayed at the barcode display terminal 920 .
  • the display end includes a display screen.
  • the barcode display terminal 920 can be various types of display screens, such as liquid crystal display screens, ink display screens, LED display screens, and the like.
  • the code scanning test terminal 910 , the barcode display terminal 920 , the mechanical arm 930 and the controller 940 are all placed on a workbench 950 .
  • the workbench 950 can be a table at a certain height from the ground, or it can be the ground. In some other embodiments of the present application, the above devices may be placed according to actual testing requirements, and are not limited to the situation in this embodiment.
  • FIG. 10 is an exemplary timing diagram of the detection device of the embodiment shown in FIG. 9 when testing. The testing process will be further described below with reference to FIG. 9 and FIG. 10 .
  • the sequence diagram includes four execution subjects in the embodiment shown in FIG. 9 : barcode display terminal 920 , controller 940 , code scanning test terminal 910 and mechanical arm 930 .
  • the long bars below each execution body represent the time progress bar from top to bottom, and the endpoints of the aligned progress bars indicate that the task nodes execute actions at the same time.
  • the controller 940 when the controller 940 is a PC, the PC directly connects to the robotic arm 930 through the development manual of the robotic arm 930 using an IP address, and sends the first Instructions, the PC end uses Socket communication to connect the code scanning test terminal 910 and the barcode display terminal 920 to send the second instruction and the third instruction to the barcode display terminal 920 and the code scanning test terminal 9210 respectively through the Socket communication method, and the barcode display terminal 920 sends all The state of the generated barcode is returned to the controller 940 , and the code scanning test terminal 910 returns the test result parameters to the controller 940 .
  • the controller 940 judges the test result of the current code scanning test according to the test result parameters. If the test is successful, the robot arm 930 is moved to perform the next code scanning test; if the test fails, the code is scanned again until the result is a successful test. or timeout.
  • the scan code test result is always successful at the beginning, and the scan code fails when it reaches the farthest point, so it needs to be judged again.
  • each instruction may include a corresponding command serial number
  • each returned result such as the status of the barcode and the test result, may also include a corresponding serial number, so as to facilitate the execution of the program.
  • the maximum transmission value of the Socket communication data may be related to the length of the displayed barcode character string and the length of the returned test result. For example, in this embodiment, the maximum transmission value of Socket communication data is set to 4Kb.
  • the controller 940 may also be connected to the mechanical arm 930 by means of a serial port and Bluetooth, so as to send the first instruction to the mechanical arm 930 .
  • connection modes among the test terminal, the display terminal, the driving mechanism, and the controller are not intended to limit the connection modes among the test terminal, the display terminal, the driving mechanism, and the controller, and the specific connection modes may be varied.
  • the detection device of the present application forms a unified automatic detection device with the controller, test terminal, display terminal and driving mechanism, and sends instructions to the test terminal, display terminal and driving mechanism through the controller to perform various tests, which can be completed automatically
  • the test of sweeping the dock improves the test efficiency. It also supports the export of test results in digital format, which facilitates the sharing, backup and transfer of test results.
  • the position of the code scanning test terminal 910 can be fixed, and the mechanical arm 930 only drives the barcode display terminal 920 to move to test the terminal to be scanned.
  • the display end is fixed, and the test end is driven by a driving mechanism for testing.
  • Fig. 11 is a schematic structural frame diagram of a detection device according to another embodiment of the present application.
  • the barcode display end 1120 is fixed on the workbench 1150 , and the code scanning test end 1110 is placed on the mold of the mechanical arm 1130 .
  • the robot arm 1130 will drive the code scanning test end 1120 to move according to the first instruction sent by the controller 1140, and the way of its movement is related to the test content.
  • the first instructions sent by the controller may be the same or different, depending on the specific test content.
  • the mechanical arm 930 drives the barcode display terminal 940 to approach the code scanning test terminal 910 first, and then gradually move away; in the embodiment shown in Figure 11, the mechanical arm 1130 Drive the code scanning test end 1110 to approach the code scanning test end 1110 first, and then gradually move away from it.
  • the moving modes of the mechanical arms may be the same, so the first instruction is also the same.
  • the present application also provides a detection device for scanning docks, including: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the detection method for scanning docks described above.
  • FIG. 12 is a system block diagram of a detection device for scanning docks according to an embodiment of the present application.
  • the detection device 1200 may include an internal communication bus 1201 , a processor 1202 , a read only memory (ROM) 1203 , a random access memory (RAM) 1204 and a communication port 1205 .
  • the detection device 1200 may also include a hard disk 1206 .
  • the internal communication bus 1201 can realize data communication between components of the detection device 1200 .
  • the processor 1202 can make a judgment and issue a prompt.
  • processor 1202 may consist of one or more processors.
  • the communication port 1205 can realize data communication between the detection device 1200 and the outside.
  • the detection device 1200 can send and receive information and data from the network through the communication port 1205 .
  • the detection device 1200 may also include different forms of program storage units and data storage units, such as a hard disk 1206, a read-only memory (ROM) 1203 and a random access memory (RAM) 1204, which can store various data for computer processing and/or communication. data files, and possibly program instructions executed by processor 1202.
  • the processor executes these instructions to implement the main parts of the method.
  • the result processed by the processor is transmitted to the user equipment through the communication port, and displayed on the user interface.
  • the above detection method can be implemented as a computer program, stored in the hard disk 1206, and can be loaded into the processor 1202 for execution, so as to implement the detection method of the present application.
  • the present invention also includes a computer-readable medium storing computer program codes.
  • the computer program codes are executed by a processor, the above-mentioned detection method for scanning docks is realized.
  • computer-readable storage media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic stripe), optical disks (e.g., compact disk (CD), digital versatile disk (DVD)), smart cards, and flash memory devices ( For example, Electrically Erasable Programmable Read Only Memory (EPROM), card, stick, key drive).
  • various storage media described herein can represent one or more devices and/or other machine-readable media for storing information.
  • the term "machine-readable medium” may include, but is not limited to, wireless channels and various other media (and/or storage media) capable of storing, containing and/or carrying code and/or instructions and/or data.
  • the processor can be implemented on one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays ( FPGA), processors, controllers, microcontrollers, microprocessors, and/or other electronic units designed to perform the functions described herein, or combinations thereof.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DSPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGA Field Programmable Gate Arrays
  • processors controllers, microcontrollers, microprocessors, and/or other electronic units designed to perform the functions described herein, or combinations thereof.
  • the processor can be one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DAPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors , a controller, a microcontroller, a microprocessor, or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal Processors
  • DAPDs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs Field Programmable Gate Arrays
  • aspects of the present application may be embodied as a computer product comprising computer readable program code on one or more computer readable media.
  • computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic tape%), optical disks (e.g., compact disk CD, digital versatile disk DVD%), smart cards, and flash memory devices ( For example, cards, sticks, key drives).
  • a computer readable medium may contain a propagated data signal embodying a computer program code, for example, in baseband or as part of a carrier wave.
  • the propagated signal may take many forms, including electromagnetic, optical, etc., or a suitable combination.
  • the computer-readable medium can be any computer-readable medium, except computer-readable storage media, that can communicate, propagate, or transfer the program for use by being coupled to an instruction execution system, apparatus, or device.
  • Program code on a computer readable medium may be transmitted over any suitable medium, including radio, electrical cables, fiber optic cables, radio frequency signals, or the like, or combinations of any of the foregoing.

Abstract

Provided in the present application are a test method and test apparatus for a code scanner head. The test method comprises: according to a complete test status flag bit of a code scanner head, determining whether to perform a PCBA test and/or a module test. The PCBA test comprises the following steps: acquiring a serial number and a firmware version number of the code scanner head; if the serial number is successfully acquired, and the firmware version number is correct, determining whether to enable an automatic test; and if an automatic test is enabled, automatically executing a PCBA test item in the test. The module test comprises the following steps: acquiring the serial number, the firmware version number, and a PCBA test result of the code scanner head; if the serial number is successfully acquired, the firmware version number is correct, and the PCBA test result is a pass, determining whether to enable the automatic test; and if the automatic test is enabled, automatically executing a module test item in the test. The test method and the test apparatus improve the test efficiency of a code scanner head.

Description

扫码头的检测方法和检测装置Detection method and detection device for sweeping dock 技术领域technical field
本申请主要涉及自动化检测方法和装置,具体地涉及一种扫码头的检测方法和检测装置。The present application mainly relates to an automatic detection method and device, in particular to a detection method and a detection device for scanning docks.
背景技术Background technique
随着条码扫描的应用日益普及,Pos机、收银机、台卡、自助收银系统等越来越多的设备支持条码扫描,有关扫码头的测试也随之增加,包括多项测试项。目前,在对扫码头进行测试时,对于每一项测试都需要进入单独的界面,测试完成后再返回到上一级,开始下一项的测试。这样的方式交互太多,操作过程繁琐。对于已经经过测试的扫码头,需要进入对应的测试项中去查看该扫码头的测试状态,增加了测试步骤。此外,在生产测试时,电流测试和扫码测试都是直接通过人为判断测试结果,现有设备测试项目单一,测试过程中存在较多的重复劳动,自动化程度低,测试效率低下,人为判断的误差大。上述这些问题导致对待测扫码头的检测效率低,质量管控不严。With the increasing popularity of barcode scanning applications, more and more devices such as POS machines, cash registers, counter cards, and self-service cash register systems support barcode scanning, and the tests related to scanning docks have also increased, including a number of test items. At present, when testing the sweeping dock, it is necessary to enter a separate interface for each test, and return to the previous level after the test is completed to start the next test. There are too many interactions in this way, and the operation process is cumbersome. For the dock scanner that has been tested, you need to enter the corresponding test item to check the test status of the dock scanner, and the test steps have been added. In addition, in the production test, the current test and the code scanning test are directly judged by humans. The existing equipment test items are single, there is a lot of repetitive labor in the test process, the degree of automation is low, and the test efficiency is low. The error is large. The above-mentioned problems lead to low detection efficiency and lax quality control of the wharf to be scanned.
发明内容Contents of the invention
本申请为解决上述技术问题提出了一种扫码头的检测方法,包括:根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试,所述完整测试状态标志位用于表示所述待测扫码头的测试状态,所述测试状态包括PCBA测试状态和模组测试状态,其中,所述PCBA测试包括以下步骤:步骤S11:获取所述待测扫码头的序列号和固件版本号;步骤S12:若成功获取所述序列号,并且所述固件版本号正确,则判断是否开启PCBA自动测试;步骤S13:若开启所述PCBA自动测试,则自动执行所述PCBA测试中的PCBA测试项;步骤S14:记录PCBA测试结果;所述模组测试包括以下步骤:步骤S21:获取所述待测扫码头的序列号、固件版本号和所述PCBA测试结果;步骤S22:若成功获取所述序列号,所述固件版本号正确,并且所述PCBA测试结果为通过,则判断是否开启模组自动测试;步骤S23:若开启所述模组自动测试,则自动执行所述 模组测试中的模组测试项;步骤S24:记录模组测试结果。The application proposes a detection method for scanning docks to solve the above-mentioned technical problems, including: judging whether to perform PCBA test and/or module test according to the complete test status flag of the sweep dock to be tested, the complete test status flag is used To represent the test status of the dock to be tested, the test status includes a PCBA test status and a module test status, wherein the PCBA test includes the following steps: Step S11: Obtain the serial number and the serial number of the dock to be tested Firmware version number; Step S12: If the serial number is obtained successfully, and the firmware version number is correct, then judge whether to open the PCBA automatic test; Step S13: If the PCBA automatic test is opened, then automatically execute the PCBA test The PCBA test item; Step S14: record PCBA test result; The module test includes the following steps: Step S21: Obtain the serial number, firmware version number and the PCBA test result of the scanning dock to be tested; Step S22: If Successfully obtain the serial number, the firmware version number is correct, and the PCBA test result is passed, then judge whether to open the automatic test of the module; Step S23: if open the automatic test of the module, then automatically execute the automatic test of the module The module test item in the group test; Step S24: record the module test result.
在本申请的一实施例中,在根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试的步骤之前,还包括:从所述待测扫码头的微控制单元中获取所述完整测试状态标志位。In one embodiment of the present application, before the step of judging whether to carry out the PCBA test and/or module test according to the complete test status flag bit of the scanning dock to be tested, it also includes: from the micro control unit of the scanning dock to be tested Obtain the complete test status flag bit in .
在本申请的一实施例中,所述完整测试状态标志位包括多位二进制字符,其中包括第一组二进制字符和第二组二进制字符,所述第一组二进制字符用于表示所述PCBA测试状态,所述第二组二进制字符用于表示所述模组测试状态。In an embodiment of the present application, the complete test status flag includes multi-bit binary characters, including a first group of binary characters and a second group of binary characters, and the first group of binary characters is used to indicate that the PCBA test state, the second group of binary characters is used to represent the test state of the module.
在本申请的一实施例中,在所述步骤S11之前和在所述步骤S21之前,还包括:将所述待测扫码头的序列号和固件版本号写入微控制单元中;所述步骤S11和所述步骤S21都包括:从所述微控制单元中读取所述序列号和所述固件版本号。In an embodiment of the present application, before the step S11 and before the step S21, it also includes: writing the serial number and firmware version number of the scanning dock to be tested into the micro control unit; the steps Both S11 and the step S21 include: reading the serial number and the firmware version number from the micro control unit.
在本申请的一实施例中,所述步骤S21还包括:从所述微控制单元中读取所述PCBA测试结果。In an embodiment of the present application, the step S21 further includes: reading the PCBA test result from the microcontroller unit.
在本申请的一实施例中,所述PCBA测试项和/或所述模组测试项至少包括电流测试。In an embodiment of the present application, the PCBA test item and/or the module test item at least includes a current test.
在本申请的一实施例中,所述PCBA测试项还包括补光灯光栅灯测试和扫码测试中的一项或任意项的组合。In an embodiment of the present application, the PCBA test item also includes one or a combination of supplementary light grid lamp test and code scanning test.
在本申请的一实施例中,所述模组测试项还包括补光灯光栅灯测试、扫码测试、近景测试和远景测试中的一项或任意项组合。In an embodiment of the present application, the module test item further includes one or any combination of supplementary light grid light test, code scanning test, close-range test and distant view test.
在本申请的一实施例中,在所述PCBA测试中,当所有的PCBA测试项的都通过测试时,所述PCBA测试结果为通过。In an embodiment of the present application, in the PCBA test, when all PCBA test items pass the test, the PCBA test result is passed.
在本申请的一实施例中,在所述模组测试中,当所有的模组测试项的都通过测试时,所述模组测试结果为通过。In an embodiment of the present application, in the module test, when all the module test items pass the test, the module test result is passed.
在本申请的一实施例中,在经过所述PCBA测试和/或所述模组测试之后,还包括模组校验,所述模组校验用于判断所述待测扫码头的光栅灯的边界光圈是否位于所述待测扫码头的摄像头FOV之内,若是则所述待测扫码头通过所述模组校验。In an embodiment of the present application, after the PCBA test and/or the module test, a module verification is also included, and the module verification is used to judge the grating lamp to be tested. Whether the boundary aperture is within the FOV of the camera of the dock to be tested, and if so, the dock to be tested passes the module verification.
在本申请的一实施例中,所述模组校验的步骤包括:使所述待测扫码头执行扫码操作;在执行所述扫码操作时,获得所述待测扫码头的光栅灯的边界光圈和准心,计算所述准心的偏移量,根据所述偏移量判断所述待测扫码头的光栅灯的 边界光圈是否位于所述待测扫码头的摄像头FOV之内。In an embodiment of the present application, the step of module verification includes: enabling the scanning terminal to be tested to perform a code scanning operation; when performing the code scanning operation, obtaining the grating light of the scanning terminal to be tested Calculate the offset of the quasi-center, and judge whether the boundary aperture of the grating light of the wharf to be tested is located within the FOV of the camera of the wharf to be tested according to the offset.
在本申请的一实施例中,所述待测扫码头包括摄像头、激光灯和补光灯中的一个或任意个的组合。In an embodiment of the present application, the dock to be tested includes one or any combination of a camera, a laser light and a supplementary light.
本申请还提供一种扫码头的检测装置,包括:存储器,用于存储可由处理器执行的指令;处理器,用于执行所述指令以实现如上所述的扫码头的检测方法。The present application also provides a detection device for scanning docks, including: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the detection method for scanning docks as described above.
本申请还提供一种存储有计算机程序代码的计算机可读介质,所述计算机程序代码在由处理器执行时实现如上所述的扫码头的检测方法。The present application also provides a computer-readable medium storing computer program codes, the computer program codes implement the above-mentioned scanning code detection method when executed by a processor.
本申请的扫码头的检测方法在测试前提前获知扫码头的测试状态,避免了界面切换,简化了操作流程;同时,通过设置自动测试和手动测试两种测试模式,通过软件自动判断和人工判断相结合的方式,减少了测试过程中人工的干预,提高了测试效率,有利于提高扫码头的生产效率和检测质量。The detection method of sweeping the dock of the present application knows the test state of the sweeping dock in advance before the test, avoids interface switching, and simplifies the operation process; at the same time, by setting two test modes of automatic test and manual test, automatic judgment and manual judgment by software The combined method reduces manual intervention in the testing process, improves testing efficiency, and is conducive to improving the production efficiency and testing quality of dock sweeping.
本申请为解决上述问题提供一种扫码头的检测装置,包括:测试端,用于搭载待测扫码头;显示端,用于生成和显示条码;驱动机构,具有用于安放所述显示端或所述测试端的模具;以及控制器,用于控制所述测试端、所述显示端和所述驱动机构,其中,所述控制器通过所述测试端来控制待测扫码头的扫码头测试参数,所述控制器根据测试内容控制所述驱动机构的移动和所述显示端所要生成和显示的所述条码。In order to solve the above problems, the present application provides a detection device for scanning docks, including: a test terminal for carrying the scanning dock to be tested; a display terminal for generating and displaying barcodes; a driving mechanism for placing the display terminal or The mold of the test terminal; and a controller for controlling the test terminal, the display terminal and the driving mechanism, wherein the controller controls the test parameters of the scan terminal to be tested through the test terminal , the controller controls the movement of the driving mechanism and the barcode to be generated and displayed by the display terminal according to the test content.
在本申请的一实施例中,所述显示端包括显示屏。In an embodiment of the present application, the display terminal includes a display screen.
在本申请的一实施例中,所述驱动机构包括机械臂。In an embodiment of the present application, the driving mechanism includes a mechanical arm.
在本申请的一实施例中,所述控制器、所述测试端、所述显示端和所述驱动机构中的一个或任意个连接到同一个无线网。In an embodiment of the present application, one or any of the controller, the testing terminal, the display terminal and the driving mechanism are connected to the same wireless network.
在本申请的一实施例中,所述控制器还用于向所述驱动机构发送第一指令,所述第一指令包括控制所述驱动机构的移动轨迹和/或移动速度的指令。In an embodiment of the present application, the controller is further configured to send a first instruction to the driving mechanism, where the first instruction includes an instruction to control the moving track and/or moving speed of the driving mechanism.
在本申请的一实施例中,所述控制器还用于向所述显示端发送第二指令,所述第二指令包括所述条码的大小、类型、颜色和灰度中的一个或任意个组合。In an embodiment of the present application, the controller is further configured to send a second instruction to the display terminal, the second instruction includes one or any of the size, type, color and grayscale of the barcode combination.
在本申请的一实施例中,所述控制器还用于记录所述条码的状态,所述状态包括生成条码成功、生成条码失败和生成条码超时中的一个或任意个组合。In an embodiment of the present application, the controller is further configured to record the state of the barcode, and the state includes one or any combination of barcode generation success, barcode generation failure, and barcode generation timeout.
在本申请的一实施例中,所述控制器还用于向所述测试端发送第三指令,所 述第三指令包括所述扫码头测试参数和测试结果参数,其中,所述扫码头测试参数包括所述待测扫码头的开关命令和扫码频率,所述测试结果参数包括超时时间。In an embodiment of the present application, the controller is further configured to send a third instruction to the test terminal, the third instruction includes the parameters of the dock scan test and the test result parameters, wherein the scan dock test The parameters include the switch command and code scanning frequency of the scanning dock to be tested, and the test result parameters include a timeout period.
在本申请的一实施例中,所述控制器还用于根据所述测试结果参数判断当前扫码测试的测试结果,所述测试结果包括测试成功、测试失败和超时失败中的一个或任意个组合。In an embodiment of the present application, the controller is further configured to judge the test result of the current scan code test according to the test result parameter, and the test result includes one or any of test success, test failure and timeout failure combination.
在本申请的一实施例中,所述测试内容包括景深测试、灰度测试、运动容差、固定速度、彩色条码、污损条码中的一个或任意个组合。In an embodiment of the present application, the test content includes one or any combination of depth of field test, grayscale test, motion tolerance, fixed speed, color barcode, and stained barcode.
本申请的扫码头的检测装置通过将控制器、测试端、显示端和驱动机构组成一个统一的自动化测试装置,能够自动化的完成扫码器或扫码头的测试,提高了测试效率。The testing device for scanning docks of the present application can automatically complete the testing of code scanners or scanning docks by combining the controller, testing terminal, display terminal and driving mechanism into a unified automatic testing device, thereby improving the testing efficiency.
附图概述Figure overview
本发明的特征、性能由以下的实施例及其附图进一步描述。Features and performances of the present invention are further described by the following examples and accompanying drawings.
图1是本申请一实施例的扫码头的检测方法中的待测扫码头的结构框图;Fig. 1 is the structural block diagram of the dock to be tested in the detection method of scanning dock according to an embodiment of the present application;
图2是本申请一实施例的扫码头的检测方法的示例性流程图;FIG. 2 is an exemplary flow chart of a detection method for scanning docks according to an embodiment of the present application;
图3是本申请一实施例的扫码头的检测方法中PCBA测试的示例性流程图;Fig. 3 is an exemplary flow chart of PCBA testing in the detection method of scanning dock according to an embodiment of the present application;
图4是本申请一实施例的扫码头的检测方法中PCBA测试的示例性流程图;Fig. 4 is an exemplary flow chart of PCBA testing in the detection method of scanning dock according to an embodiment of the present application;
图5是本申请一实施例的扫码头的检测方法中模组测试的示例性流程图;Fig. 5 is an exemplary flow chart of module testing in the detection method of dock scanning according to an embodiment of the present application;
图6A和图6B是本申请一实施例的扫码头的检测方法中模组测试的示例性流程图;FIG. 6A and FIG. 6B are exemplary flowcharts of module testing in the detection method of dock scanning according to an embodiment of the present application;
图7A和图7B是本申请一实施例的扫码头的检测方法中的模组校验的原理示意图;7A and 7B are schematic diagrams of the principle of module verification in the detection method of dock scanning according to an embodiment of the present application;
图8是本申请一实施例的扫码头的检测装置的连接关系示意图;Fig. 8 is a schematic diagram of the connection relationship of the detection device for scanning the dock according to an embodiment of the present application;
图9是本申请一实施例的扫码头的检测装置的结构框架示意图;FIG. 9 is a schematic structural frame diagram of a detection device for scanning docks according to an embodiment of the present application;
图10是图9所示实施例的扫码头的检测装置在进行测试时的示例性时序图;Fig. 10 is an exemplary timing diagram of the detection device for scanning the dock of the embodiment shown in Fig. 9 when testing;
图11是本申请另一实施例的扫码头的检测装置的结构框架示意图;Fig. 11 is a schematic structural frame diagram of a detection device for scanning docks according to another embodiment of the present application;
图12是本申请一实施例的扫码头的检测装置的系统框图。FIG. 12 is a system block diagram of a detection device for scanning docks according to an embodiment of the present application.
本发明的较佳实施方式Preferred Embodiments of the Invention
本申请中使用了流程图用来说明根据本申请的实施例的系统所执行的操作。应当理解的是,前面或下面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各种步骤。同时,或将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。The flow chart is used in this application to illustrate the operations performed by the system according to the embodiment of this application. It should be understood that the preceding or following operations are not necessarily performed in an exact order. Instead, various steps may be processed in reverse order or concurrently. At the same time, other operations are either added to these procedures, or a certain step or steps are removed from these procedures.
在本申请的一些实施例中,待测扫码头包括摄像头、光栅灯和补光灯中的一个或任意个的组合。In some embodiments of the present application, the dock to be tested includes one or any combination of a camera, a grating light and a supplementary light.
图1是本申请一实施例的扫码头的检测方法中的待测扫码头的结构框图。参考图1所示,该待测扫码头主要包括光栅灯12、摄像头13和补光灯14,以及用于安放该些硬件的扫码头主板11。扫码头主板11中包含MCU芯片。可以理解,图1所示仅为示例,不用于限制待测扫码头所包括的具体硬件。FIG. 1 is a structural block diagram of a dock to be tested in a dock scanning detection method according to an embodiment of the present application. Referring to FIG. 1 , the dock scanner to be tested mainly includes a grating light 12 , a camera 13 , a supplementary light 14 , and a dock scanner motherboard 11 for placing these hardware. The dock mainboard 11 includes an MCU chip. It can be understood that what is shown in FIG. 1 is only an example, and is not intended to limit the specific hardware included in the dock scanning to be tested.
根据生产阶段的不同,可将扫码头的测试分为PCBA(Printed Circuit Board Assembly)测试和模组测试两个阶段。其中,PCBA指PCB空板经过SMT上件或经过DIP插件的整个制程。待测扫码头的主要待测试硬件包括图1中所示的光栅灯12、摄像头13和补光灯14等。为了进行PCBA测试,可以将摄像头13、光栅灯12和补光灯14等硬件扣到扫码头主板11上,如图1所示。模组测试通常在PCBA测试完成之后,将图1所示的扫码头主板11、光栅灯12、摄像头13和补光灯14作为一个整体包装成完整的扫码头硬件10,对该完整的扫码头硬件10进行整体测试,以考察该待测扫码头在使用时的完整性能。According to different production stages, the test of scanning dock can be divided into two stages: PCBA (Printed Circuit Board Assembly) test and module test. Among them, PCBA refers to the whole process of PCB empty board passing through SMT upper part or DIP plug-in. The main hardware to be tested for scanning the dock includes the grating light 12 shown in FIG. 1 , the camera 13 and the supplementary light 14 . In order to perform PCBA testing, hardware such as camera 13, grating light 12 and fill light 14 can be fastened to the scanner main board 11, as shown in FIG. 1 . The module test is usually after the PCBA test is completed, the dock scanning main board 11, the grating light 12, the camera 13 and the fill light 14 shown in Figure 1 are packaged as a whole into a complete dock scanning hardware 10, and the complete dock scanning The overall test of the hardware 10 is performed to investigate the complete performance of the scanning dock to be tested in use.
本申请的扫码头的检测方法包括:根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试,完整测试状态标志位用于表示待测扫码头的测试状态,测试状态包括PCBA测试状态和模组测试状态。在该实施例中,对如何获得待测扫码头的完整测试状态标志位不做限制。可以通过进入该待测扫码头的测试项中来查看该测试项是否经过了测试。The detection method of the sweeping dock of the present application includes: judging whether to carry out PCBA test and/or module test according to the complete test state flag of the sweeping dock to be tested, the complete test state flag is used to represent the test state of the sweeping dock to be tested, and the test Status includes PCBA testing status and module testing status. In this embodiment, there is no limitation on how to obtain the complete test status flag of the dock to be tested. You can check whether the test item has passed the test by entering the test item of the dock scan to be tested.
在一些实施例中,在根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试的步骤之前,还包括:从待测扫码头的微控制单元中获取完整测试状态标志位。其中,微控制单元(MCU)可以包含在如图1所示 的扫码头主板11中。In some embodiments, before the step of judging whether to perform PCBA test and/or module test according to the complete test status flag bit of the dock to be tested, it also includes: obtaining the complete test status from the microcontroller unit of the dock to be tested Flag bit. Wherein, a micro control unit (MCU) can be included in the main board 11 of the scanning dock as shown in FIG. 1 .
图2所示是本申请一实施例的扫码头的检测方法的示例性流程图。如图2所示,该实施例的检测方法包括以下步骤:FIG. 2 is an exemplary flow chart of a detection method for scanning docks according to an embodiment of the present application. As shown in Figure 2, the detection method of this embodiment comprises the following steps:
步骤S01:插入待测扫码头。具体地,在扫码头测试过程中使用扫码头测试治具,该治具包含陪测机和各种测试环境。陪测机外接FPC线,待测扫码头通过FPC线与陪测机进行连接。本步骤的插入待测扫码头指将待测扫码头扣到FPC上与陪测机连接。Step S01: Insert the scanning dock to be tested. Specifically, a dock-sweeping test fixture is used in the dock-sweeping test process, and the fixture includes a tester and various test environments. The accompanying test machine is externally connected to the FPC cable, and the terminal to be tested is connected to the accompanying test machine through the FPC line. Inserting the scanning dock to be tested in this step refers to buckling the scanning dock to be tested to the FPC and connecting it with the accompanying test machine.
步骤S02:获取完整测试状态标志位。即获取PCBA测试和模组测试两个测试的测试结果。本申请对如何获取完整测试状态标志位不做限制。Step S02: Obtain the complete test status flag. That is, the test results of the PCBA test and the module test are obtained. This application does not limit how to obtain the complete test status flag.
步骤S03:判断该待测扫码头是否测试过。若是,则转向步骤S05;若否,则转向步骤S04。Step S03: Determine whether the dock scanning to be tested has been tested. If yes, go to step S05; if not, go to step S04.
在本申请的一些实施例中,当待测扫码头与陪测机连接上时,可以通过程序设置,从微控制单元(MCU)中获取完整测试状态标志位,该完整测试状态标志位包括多位二进制字符,其包括用于表示PCBA测试状态的第一组二进制字符和用于表示模组测试状态的第二组二进制字符。In some embodiments of the present application, when the dock to be tested is connected to the tester, the complete test status flag can be obtained from the micro control unit (MCU) through program settings, and the complete test status flag includes multiple Bit binary characters, which include the first group of binary characters used to represent the PCBA test status and the second group of binary characters used to represent the module test status.
为进一步说明本申请的完整测试状态标志位,这里给出一个具体示例:完整测试状态标志位可以为如下的16位二进制字符:1111000011110000;其中前八位字符是第一组二进制字符,表示PCBA的测试结果,后八位字符是第二组二进制字符,表示模组测试的结果。二进制字符“1”可以表示具体某一项的测试结果为成功,“0”表示失败或未测试。通过标志位可以查看PCBA测试和模组测试的测试状态,从而根据测试结果决定下一步骤。示例性地,设PCBA测试中包括电流测试、扫码测试和补光灯测试,在第一组二进制字符中,用从左开始数第一位数表示电流测试结果,第二位数表示扫码测试结果,第三位数表示补光灯测试,如果待测扫码头的电流测试成功、扫码测试失败、补光灯测试成功,则该第一组二进制字符为:10100000。根据约定,通过读取该完整测试状态标志位就可以获知该待测扫码头中各个测试项的情况。For further illustrating the complete test state flag of the present application, a specific example is given here: the complete test state flag can be the following 16 binary characters: 1111000011110000; wherein the first eight characters are the first group of binary characters, representing the PCBA Test result, the last eight characters are the second group of binary characters, indicating the result of the module test. The binary character "1" can indicate that the test result of a specific item is successful, and "0" indicates failure or not tested. The test status of PCBA test and module test can be checked through the flag bit, so as to determine the next step according to the test result. Exemplarily, it is assumed that the PCBA test includes a current test, a code scanning test and a supplementary light test. In the first group of binary characters, the first digit from the left represents the current test result, and the second digit represents the code scanning In the test result, the third digit indicates the supplementary light test. If the current test of the scanning terminal to be tested is successful, the code scanning test fails, and the supplementary light test is successful, the first group of binary characters is: 10100000. According to the agreement, the status of each test item in the scanning dock to be tested can be known by reading the complete test status flag.
步骤S03可以根据完整测试状态标志位获知该待测扫码头所有的PCBA测试和模组测试的情况。示例性地,可以在完整测试状态标志位中设置特定的标志位来表示某一个测试项是否经过测试。也可以是判断多个测试项中是否有一 个经过测试。延续上面的示例,例如,判断PCBA测试的第一组二进制字符中是否存在“1”,以及模组测试的第二组二进制字符中是否存在“1”。若存在至少一个“1”,则表示测试过。Step S03 can know the status of all PCBA tests and module tests of the scanning terminal to be tested according to the complete test status flag. Exemplarily, a specific flag bit may be set in the complete test status flag bit to indicate whether a certain test item has been tested. It can also be judged whether one of the multiple test items has been tested. Continuing the above example, for example, judge whether there is "1" in the first group of binary characters tested by PCBA, and whether there is "1" in the second group of binary characters tested by the module. Tested if there is at least one "1".
步骤S04:显示绿色背景。若在步骤S03判断得知待测扫码头未进行过测试,则显示绿色背景,表示该待测扫码头需要进行测试。Step S04: Display a green background. If it is determined in step S03 that the dock to be tested has not been tested, a green background is displayed, indicating that the dock to be tested needs to be tested.
步骤S05:判断是否测试成功。若在步骤S03判断得知待测扫码头已进行过测试,则进一步判断测试的结果。若是,则转向步骤S07;若否,则转向步骤S06。步骤S05可以用于判断所有的测试项是否测试成功,或者判断某一特定的测试项是否测试成功。Step S05: Determine whether the test is successful. If it is judged in step S03 that the dock to be tested has been tested, then further judge the result of the test. If yes, go to step S07; if not, go to step S06. Step S05 can be used to determine whether all test items are successfully tested, or determine whether a specific test item is successfully tested.
步骤S06:显示红色背景。若步骤S05判断得知待测扫码头并未通过测试,则显示红色背景。表示该待测扫码头需要进行测试。Step S06: Display a red background. If it is determined in step S05 that the terminal to be tested has not passed the test, a red background is displayed. Indicates that the dock to be tested needs to be tested.
步骤S07:显示青绿色背景。若步骤S05判断得知待测扫码头已通过测试,则显示青绿色背景。表示该待测表码头已通过测试,不再需要进行后续测试。Step S07: Display a turquoise background. If it is determined in step S05 that the dock to be tested has passed the test, a turquoise background will be displayed. Indicates that the terminal of the meter to be tested has passed the test, and no follow-up test is required.
通过上述步骤可以在测试前对待测扫码头的测试状态进行了解,无需进入完整测试程序就可以获知测试状态,在后续的步骤中,可以仅针对未测试过和未通过测试的测试项进行测试,提高了扫码头生产效率。Through the above steps, you can know the test status of the wharf to be tested before the test, and you can know the test status without entering the complete test program. In the subsequent steps, you can only test for the test items that have not been tested and failed the test. Improve the production efficiency of sweeping dock.
在其他的实施例中,步骤S03和S05可以合并为同一个步骤,根据这些实施例,可以通过一次判断的结果而给出三种不同的背景颜色。In other embodiments, steps S03 and S05 can be combined into one step, and according to these embodiments, three different background colors can be given based on the result of one judgment.
通过上述步骤判断出需要进行测试的待测扫码头,接下来将对这些待测扫码头进行测试。Through the above steps, it is judged that the scanning docks to be tested need to be tested, and then these scanning docks to be tested will be tested.
图3是本申请一实施例的扫码头的检测方法中PCBA测试的示例性流程图。如图3所示,该实施例中的PCBA测试包括以下步骤:FIG. 3 is an exemplary flow chart of PCBA testing in the detection method for scanning docks according to an embodiment of the present application. As shown in Figure 3, the PCBA test in this embodiment comprises the following steps:
步骤S11:获取待测扫码头的序列号(SN号)和固件版本号。其中,SN号是每颗扫码头的唯一标识,在测试前按照既定规则写入MCU中。固件版本号是当前批次生产导入的固件版本信息,在测试前将固件版本写入到MCU中。Step S11: Obtain the serial number (SN number) and firmware version number of the dock to be tested. Among them, the SN number is the unique identification of each scanner, which is written into the MCU according to the established rules before the test. The firmware version number is the firmware version information imported by the current batch production, and the firmware version is written into the MCU before testing.
步骤S12:若成功获取序列号,并且固件版本号正确,则判断是否开启PCBA自动测试。Step S12: If the serial number is obtained successfully and the firmware version number is correct, then determine whether to enable the PCBA automatic test.
在本申请的一些实施例中,在进行PCBA测试时,需要确保扫码头MCU芯片中已经写入正确的SN号并且刷入测试通过的固件版本。可以从MCU中读取SN 号和固件版本号。步骤S12中的成功获取序列号指读取到SN号,并且该SN号是合法的。如果不能从MCU中读取到SN号,或者该SN号不合法,则没有成功获取序列号。In some embodiments of the present application, when performing the PCBA test, it is necessary to ensure that the correct SN number has been written into the MCU chip of the scanning terminal and the firmware version that has passed the test is flashed. The SN number and firmware version number can be read from the MCU. The successful acquisition of the serial number in step S12 means that the SN number has been read, and the SN number is legal. If the SN number cannot be read from the MCU, or the SN number is illegal, the serial number has not been obtained successfully.
在一些实施例中,所要读取的SN号是按照特定规则写入的,若按照该特定规则读不出来,则表示MCU中没有写入SN号或者SN号错误。如果没有写入SN号,则读取的SN号将为空或者默认的特定字符。In some embodiments, the SN to be read is written according to a specific rule. If the SN cannot be read out according to the specific rule, it means that the SN is not written in the MCU or the SN is wrong. If no SN is written, the read SN will be empty or a default specific character.
在步骤S12之后,若没有成功获得序列号,或者固件版本号不正确,则在测试用的软件界面中弹出提示框,并不允许进行测试。After step S12, if the serial number is not obtained successfully, or the firmware version number is incorrect, a prompt box will pop up in the software interface for testing, and the testing is not allowed.
步骤S13:若开启PCBA自动测试,则自动执行PCBA测试中的PCBA测试项。Step S13: If the PCBA automatic test is enabled, the PCBA test items in the PCBA test are automatically executed.
在本申请的一实施例中,通过软件界面开启自动测试,随后按照设定的顺序对各个测试项进行测试,并判断各个测试项的测试结果,若通过某项测试则会自动执行下一个测试项,若未通过某项测试则停止测试,并记录该测试项。相应地,若未开启自动测试,则采用人工测试的手段,通过在软件界面上点击相应的测试项来人工控制所要进行的测试项。In one embodiment of the present application, the automatic test is started through the software interface, and then each test item is tested according to the set order, and the test results of each test item are judged. If a certain test is passed, the next test will be automatically executed. item, if a test is not passed, the test is stopped and the test item is recorded. Correspondingly, if the automatic test is not enabled, manual testing is used to manually control the test items to be performed by clicking the corresponding test items on the software interface.
步骤S14:记录PCBA测试结果。Step S14: Record the PCBA test results.
在一些实施例中,在完整测试状态标志位中对应于PCBA测试的标志位中记录PCBA的测试结果。In some embodiments, the PCBA test result is recorded in a flag bit corresponding to the PCBA test among the complete test status flag bits.
在一些实施例中,PCBA测试项和/或模组测试项至少包括电流测试。In some embodiments, the PCBA test item and/or the module test item at least includes a current test.
在一些实施例中,PCBA测试项还包括补光灯光栅灯测试和扫码测试中的一项或任意项的组合。In some embodiments, the PCBA test item also includes one or a combination of supplementary light grid light test and code scanning test.
为进一步说明本申请的PCBA测试,这里给出一个具体的实施例。图4是本申请一实施例的扫码头的检测方法中PCBA测试的示例性流程图,该实施例包括以下步骤:In order to further illustrate the PCBA test of the present application, a specific example is given here. Fig. 4 is the exemplary flow chart of PCBA test in the detection method of sweeping dock of an embodiment of the present application, and this embodiment comprises the following steps:
步骤S110:获取SN号和固件版本号。根据获取的SN号和固件版本号判断需要执行的下一步骤,若获取的SN号和固件版本号均正确则执行步骤S112,反之则执行步骤S111,即结束测试。Step S110: Obtain SN number and firmware version number. According to the obtained SN number and the firmware version number, the next step to be executed is judged. If the obtained SN number and the firmware version number are correct, step S112 is executed, otherwise, step S111 is executed, and the test is ended.
步骤S112:判断是否自动测试。在本实施例中,可以通过软件界面选择自动进行PCBA测试或人工进行PCBA测试。若开启了自动测试,则转向步骤S113; 否则转向步骤S120。Step S112: Determine whether to test automatically. In this embodiment, automatic PCBA testing or manual PCBA testing can be selected through the software interface. If the automatic test is enabled, go to step S113; otherwise, go to step S120.
步骤S113:进行电流测试。当选择自动测试时,则自动执行PCBA测试中的PCBA测试项。可以设定测试项的顺序,在图4所示的实施例中,测试项目包括:电流测试、补光灯光栅灯测试和扫码测试三项。可以根据需求调整测试项的顺序,优选地,测试顺序为:电流测试、补光灯光栅灯测试、扫码测试。如此,若没有通过电流测试则表明硬件本身不通,没有必要进行下一项测试;待电流测试通过后,通过补光灯光栅灯测试判断硬件间是否有虚焊等情况,只有当以上两项都测试通过了才进行扫码测试。Step S113: Perform a current test. When the automatic test is selected, the PCBA test items in the PCBA test are automatically executed. The order of the test items can be set. In the embodiment shown in FIG. 4 , the test items include: current test, supplementary light grid lamp test and code scanning test. The order of the test items can be adjusted according to requirements. Preferably, the test order is: current test, supplementary light grid light test, and code scanning test. In this way, if the current test fails, it means that the hardware itself is not connected, and there is no need to carry out the next test; after the current test is passed, it is necessary to judge whether there is any solder joint between the hardware through the supplementary light grid lamp test. The code scanning test is performed only after the test is passed.
步骤S114:判断电流测试是否成功。若电流测试失败,则进行步骤S128:停止测试,接着执行步骤S129:记录测试失败;若测试成功则执行步骤S115。Step S114: Determine whether the current test is successful. If the current test fails, go to step S128: stop the test, then go to step S129: record the test failure; if the test is successful, go to step S115.
步骤S115:进行补光灯光栅灯测试。Step S115 : Carry out a grid light test for supplementary light.
步骤S116:判断补光灯光栅灯测试是否成功。若补光灯光栅灯测试失败,则进行步骤S128:停止测试,接着执行步骤S129:记录测试失败;若测试成功则执行步骤S117。Step S116: Judging whether the test of the supplementary light grid light is successful. If the supplementary light grid light test fails, proceed to step S128: stop the test, and then proceed to step S129: record the test failure; if the test succeeds, proceed to step S117.
步骤S117:进行扫码测试。Step S117: Perform code scanning test.
步骤S118:判断扫码测试是否成功。若扫码测试失败,则进行步骤S128:停止测试,接着执行步骤S129:记录测试失败。若扫码测试成功则执行步骤S119。Step S118: Determine whether the code scanning test is successful. If the code scanning test fails, proceed to step S128: stop the test, and then perform step S129: record the test failure. If the code scanning test is successful, step S119 is executed.
步骤S119:记录测试成功。若待测扫码头通过了电流测试、补光灯光栅灯测试和扫码测试则记录测试成功,即待测扫码头通过了所有的PCBA测试。Step S119: record that the test is successful. If the scanning dock to be tested passes the current test, fill light grid light test and code scanning test, the record test is successful, that is, the scanning dock to be tested has passed all PCBA tests.
步骤120:人工测试。若在步骤S112中经过判断,没有开启自动测试,则默认进行人工测试。具体地,在步骤S120可以由人工地在软件界面上手动点击选择测试项。在图4所示的实施例中列出了测试项包括:电流测试、补光灯光栅灯测试和扫码测试。若选择电流测试,则执行步骤S121;若选择补光灯光栅灯测试,则执行步骤S122;若选择扫码测试,则执行步骤S123。Step 120: Manual testing. If it is judged in step S112 that the automatic test is not enabled, a manual test is performed by default. Specifically, in step S120, the test item can be selected manually by manually clicking on the software interface. The test items listed in the embodiment shown in FIG. 4 include: current test, supplementary light grid light test and code scanning test. If the current test is selected, step S121 is performed; if the supplementary light grid light test is selected, step S122 is performed; if the code scanning test is selected, step S123 is performed.
步骤S121:进行电流测试。Step S121: Conduct a current test.
步骤S122:进行补光灯光栅灯测试。Step S122 : Carry out a grid light test for supplementary light.
步骤S123:进行扫码测试。Step S123: Perform code scanning test.
步骤S124:在进行电流测试之后,在本步骤判断是否成功,并记录测试结果。Step S124: After the current test is performed, it is judged in this step whether it is successful or not, and the test result is recorded.
步骤S125:在进行补光灯光栅灯测试之后,在本步骤判断是否成功,并记录 测试结果。Step S125: After the supplementary light grid lamp test, judge whether it is successful or not in this step, and record the test result.
步骤S126:在进行扫码测试之后,在本步骤判断是否成功,并记录测试结果。Step S126: After the code scanning test is performed, it is judged in this step whether it is successful or not, and the test result is recorded.
步骤S127:判断人工测试的所有测试项是否全部为成功。如果所有测试项都为成功,则判定通过测试,并执行步骤119,记录测试成功;否则判定为未通过测试,执行步骤S129。Step S127: Judging whether all test items of the manual test are all successful. If all test items are successful, it is determined that the test is passed, and step 119 is performed to record that the test is successful; otherwise, it is determined that the test is not passed, and step S129 is performed.
在一些实施例中,步骤S124、S125和S126的判断结果直接发送至步骤S127,只要其中有一个结果为失败,步骤S127的判断结果为否。在人工测试的情况下,在步骤S127根据所收到的判断结果的数量来判断是否已经执行了所有的PCBA测试项。例如,设置PCBA测试项的数量为3,则在步骤S127,若收到了3个测试结果,则表示已经人工点击了全部的测试项,则可以判断是否所有的测试项都成功。In some embodiments, the judgment results of steps S124, S125 and S126 are directly sent to step S127, as long as one of the results is failure, the judgment result of step S127 is no. In the case of manual testing, it is judged in step S127 whether all PCBA test items have been executed according to the number of judgment results received. For example, if the number of PCBA test items is set to 3, then in step S127, if 3 test results are received, it means that all test items have been manually clicked, and it can be determined whether all test items are successful.
步骤S128:停止测试。Step S128: Stop testing.
步骤S129:记录测试失败。Step S129: Record test failure.
在一些实施例中,步骤S119的记录测试成功和步骤S129的记录测试失败,都是在待测试扫码头的完整测试状态标志位中对应于PCBA测试项的标志位中来进行记录。In some embodiments, both the record test success in step S119 and the test failure record in step S129 are recorded in the flag bits corresponding to the PCBA test item in the complete test status flag bits of the scanning terminal to be tested.
根据图4所示的实施例,无论PCBA测试包括几个测试项,只要其中有一项的测试结果为失败,都认为该PCBA测试失败。当所有的PCBA测试项的都通过测试时,PCBA测试结果为通过。According to the embodiment shown in FIG. 4 , no matter how many test items the PCBA test includes, as long as the test result of one of them is a failure, the PCBA test is considered to be a failure. When all PCBA test items pass the test, the PCBA test result is passed.
根据图4所示的实施例,通过设置自动测试模式,减少了测试过程中人工的干预;通过设置手动测试的测试方式,为扫码头测试提供了更多方便的选择,可以人工地选择性进行若干项测试项的测试;将自动测试和手动测试相结合,提高了扫码头的测试效率。According to the embodiment shown in Figure 4, by setting the automatic test mode, the manual intervention in the test process is reduced; by setting the test mode of the manual test, more convenient options are provided for the sweeping dock test, which can be selectively carried out manually The test of several test items; the combination of automatic test and manual test improves the test efficiency of sweeping the dock.
图5是本申请一实施例的扫码头的检测方法中模组测试的示例性流程图。如图5所示,该实施例中的模组测试包括以下步骤:FIG. 5 is an exemplary flow chart of module testing in the detection method of dock scanning according to an embodiment of the present application. As shown in Figure 5, the module test in this embodiment comprises the following steps:
步骤S21:获取待测扫码头的序列号、固件版本号和获取PCBA测试结果。其中,获取待测扫码头的序列号、固件版本号的具体内容同步骤S11,在此不再赘述。Step S21: Obtain the serial number and firmware version number of the dock to be tested and obtain the PCBA test result. Wherein, the specific content of obtaining the serial number and the firmware version number of the dock to be scanned is the same as step S11, and will not be repeated here.
步骤S22:若成功获取序列号,固件版本号正确,并且PCBA测试结果为通过,则判断是否开启模组自动测试。步骤S22与步骤S12不同的是:此步骤要求 待测扫码头已经通过PCBA测试,若未通过则不进行模组测试;还有,此步骤判断的是:开启模组自动测试。与步骤S12相同的部分在此不再赘述。Step S22: If the serial number is obtained successfully, the firmware version number is correct, and the PCBA test result is passed, it is judged whether to enable the module automatic test. The difference between step S22 and step S12 is that this step requires that the scanning terminal to be tested has passed the PCBA test, and if it fails, the module test will not be performed; what is more, the judgment of this step is: enable the automatic module test. The same part as step S12 will not be repeated here.
步骤S23:若开启模组自动测试,则自动执行模组测试中的模组测试项。Step S23: If the automatic module test is enabled, the module test item in the module test is automatically executed.
在一些实施例中,模组测试项至少包括电流测试。In some embodiments, the module test items include at least a current test.
在一些实施例中,模组测试项还包括补光灯光栅灯测试、扫码测试、近景测试和远景测试中的一项或任意项组合。In some embodiments, the module test item also includes one or any combination of supplementary light grid light test, code scanning test, close-range test and distant view test.
与步骤S13类似地,步骤S23可以通过步骤S13中的同一个软件界面来控制。Similar to step S13, step S23 can be controlled through the same software interface as in step S13.
步骤S24:记录模组测试结果。Step S24: Record the module test result.
为进一步说明本申请的模组测试,这里给出一个具体的实施例。图6A和图6B是本申请一实施例的扫码头的检测方法中模组测试的示例性流程图。需要说明,在模组测试的过程中,在图6A中所示的步骤S210前除了获取SN号和固件版本,还需要判断待测扫码头是否通过PCBA测试,若未通过PCBA测试,则不进行模组测试过程,而是结束测试。In order to further illustrate the module test of the present application, a specific embodiment is given here. FIG. 6A and FIG. 6B are exemplary flowcharts of module testing in the detection method for scanning docks according to an embodiment of the present application. It should be noted that in the process of module testing, in addition to obtaining the SN number and firmware version before step S210 shown in Figure 6A, it is also necessary to determine whether the scanning terminal to be tested has passed the PCBA test, and if it has not passed the PCBA test, then no Mod testing process, but end testing.
图6A和图6B一起用于说明该实施例的模组测试的整体流程,其中,模组测试的测试项包括电流测试、补光灯光栅灯测试、扫码测试、近景测试和远景测试。参考图6A所示,该实施例的模组测试包括以下步骤:FIG. 6A and FIG. 6B are used together to illustrate the overall process of the module test in this embodiment, wherein the test items of the module test include current test, supplementary light grid lamp test, code scanning test, close-up test and long-term test. Referring to Fig. 6A, the module test of this embodiment includes the following steps:
步骤S210:获取SN号、固件版本号和PCBA测试标志位,当SN号和固件版本号都正确,并且根据待测扫码头的完整测试状态标志位中的PCBA测试标志位判断该待测试扫码头已经通过了PCBA测试,则转向执行步骤S212;否则转向执行步骤S211。Step S210: Obtain the SN number, firmware version number and PCBA test flag, when the SN number and the firmware version number are correct, and judge the scanning dock to be tested according to the PCBA test flag in the complete test status flag of the scanning dock to be tested If the PCBA test has been passed, turn to step S212; otherwise, turn to step S211.
需要说明,SN号是否正确、固件版本号是否正确和PCBA测试标志位是否为成功三个判断项中,有一项的判断结果为否,则步骤S210的判断结果为否。It should be noted that among the three judging items whether the SN number is correct, whether the firmware version number is correct, and whether the PCBA test flag is successful, one of the judging results is no, and the judging result of step S210 is no.
步骤S211:结束模组测试。Step S211: End the module test.
步骤S212:判断是否开启自动测试。该步骤与步骤S112相似,只是所要进行的测试为模组测试,而不是PCBA测试。具体步骤不再展开说明。若为是,则执行步骤S214;若为否,则执行步骤S213。Step S212: Determine whether to enable automatic testing. This step is similar to step S112, except that the test to be performed is a module test instead of a PCBA test. The specific steps will not be described further. If yes, execute step S214; if no, execute step S213.
步骤S213:当没有开启自动测试时,则在软件界面上执行人工测试,手工 点击模组测试中的各个测试项。关于人工测试的具体流程在图6B中进行说明。Step S213: When the automatic test is not enabled, perform a manual test on the software interface, and manually click each test item in the module test. The specific flow of manual testing is illustrated in Figure 6B.
步骤S214:进行电流测试。Step S214: Conduct a current test.
步骤S215:判断电流测试是否成功。若是,则执行步骤S216;若否,则执行步骤S230。Step S215: Determine whether the current test is successful. If yes, execute step S216; if not, execute step S230.
步骤S216:进行补光灯光栅灯测试。Step S216 : Carry out a grid light test for supplementary light.
步骤S217:判断补光灯光栅灯测试是否成功。若是,则执行步骤S218;若否,则执行步骤S230。Step S217: Judging whether the supplementary light grid light test is successful. If yes, execute step S218; if not, execute step S230.
步骤S218:进行扫码测试。Step S218: Perform code scanning test.
步骤S219:判断扫码测试是否成功。若是,则执行步骤S220;若否,则执行步骤S230。Step S219: Determine whether the code scanning test is successful. If yes, execute step S220; if not, execute step S230.
步骤S220:进行近景测试。Step S220: Perform a close-range test.
步骤S221:判断近景测试是否成功。若是,则执行步骤S222;若否,则执行步骤S230。Step S221: Determine whether the close-range test is successful. If yes, execute step S222; if not, execute step S230.
步骤S222:进行远景测试。Step S222: Perform a prospect test.
步骤S223:判断远景测试是否成功。若是,则执行步骤S224;若否,则执行步骤S230。Step S223: Determine whether the prospect test is successful. If yes, execute step S224; if not, execute step S230.
步骤S224:进行模组校验。Step S224: Perform module verification.
步骤S225:自动判断模组校验是否成功。若是,执行步骤S226;若否,执行步骤S230。Step S225: Automatically determine whether the module verification is successful. If yes, execute step S226; if no, execute step S230.
步骤S226:人工判断模组校验是否成功。若是,执行步骤S227;若否,执行步骤S230。Step S226: Manually judge whether the module verification is successful. If yes, execute step S227; if no, execute step S230.
步骤S230:停止测试。Step S230: Stop testing.
步骤S231:记录测试失败。Step S231: Record test failure.
需要说明,图6A所示的自动测试流程中限定了测试项的顺序依次为:电流测试、补光灯光栅灯测试、扫码测试、近景测试、远景测试和模组校验。It should be noted that the sequence of test items defined in the automatic test process shown in FIG. 6A is: current test, supplementary light grid light test, code scanning test, close-up test, long-range test and module verification.
参考图6B所示,在图6A中的步骤S213之后,还包括以下步骤:Referring to FIG. 6B, after step S213 in FIG. 6A, the following steps are also included:
步骤S240:进行电流测试。Step S240: Conduct a current test.
步骤S241:进行远景测试。Step S241: Perform a prospect test.
在图6A中,步骤S240和步骤S241的模块之间省略了本实施例的模组测 试还包括的其他测试,分别是补光灯光栅灯测试、扫码测试、近景测试。In Fig. 6A, other tests included in the module test of this embodiment are omitted between the modules of step S240 and step S241, which are the supplementary light grid light test, the code scanning test, and the close-up test.
步骤S242:判断电流测试是否成功。Step S242: Determine whether the current test is successful.
步骤S243:判断远景测试是否成功。Step S243: Determine whether the prospect test is successful.
在图6A中,步骤S242和步骤S243的模块之间省略了判断补光灯光栅灯测试、扫码测试、近景测试是否成功的判断框。In FIG. 6A , between the modules of step S242 and step S243 , the judging box for judging whether the supplementary light grid light test, code scanning test, and close-up test is successful is omitted.
步骤S242-S243判断结束之后,记录判断结果,并用于步骤S244的判断。After the judgment of steps S242-S243 is completed, the judgment result is recorded and used for the judgment of step S244.
步骤S244:判断是否全部成功。当全部的模组测试项都成功时,转向执行步骤S227。该步骤S227与图6A中是同一个步骤,因此采用相同的标号。Step S244: Determine whether all processes are successful. When all the module test items are successful, turn to step S227. This step S227 is the same step as that in FIG. 6A , so the same reference numerals are used.
若所有的模组测试项中有一项未通过或未成功,则步骤S244的结果为否,则转向步骤S230。If one of the module test items fails or fails, the result of step S244 is no, and the process turns to step S230.
图6B中的步骤S230和步骤S231分别与图6A中的步骤S230和步骤S231是同一个步骤,因此采用相同的标号。Step S230 and step S231 in FIG. 6B are the same step as step S230 and step S231 in FIG. 6A respectively, so the same reference numerals are used.
步骤S251:进行模组校验。Step S251: Perform module verification.
为执行该步骤,在软件界面上提供了选择模组校验的相应选项。通过选择该选项可以进行模组校验。该模组校验与图6A中步骤S224的模组校验相同,将在后文中统一说明。To carry out this step, the corresponding option to select the module calibration is provided on the software interface. Module verification can be performed by selecting this option. The module verification is the same as the module verification in step S224 in FIG. 6A , and will be described in a unified manner later.
步骤S252:自动判断模组校验是否成功。若是,则执行步骤S253;若否,则执行步骤S230。Step S252: Automatically judge whether the module verification is successful. If yes, execute step S253; if not, execute step S230.
步骤S253:人工判断模组校验是否成功。若是,则执行步骤S227;若否,则执行步骤S230。Step S253: Manually judge whether the module verification is successful. If yes, execute step S227; if not, execute step S230.
可以理解,在图6B所示的人工测试的过程中,对各个测试项的先后顺序不做限制。It can be understood that, in the process of the manual test shown in FIG. 6B , there is no limitation on the sequence of each test item.
图6A和图6B一起示出了一个完整的检测方法的实施例。在一些实施例中,可以不包括其中关于模组校验的步骤,即步骤S224、225、226、251、252、253。在一些实施例中,在模组校验的步骤中,可以不包括人工判断是否成功的步骤S226和步骤S253。Figure 6A and Figure 6B together show an embodiment of a complete detection method. In some embodiments, the steps related to module verification, namely steps S224, 225, 226, 251, 252, and 253, may not be included. In some embodiments, the step S226 and step S253 of manually judging whether it is successful may not be included in the step of module verification.
根据图6A和图6B的实施例,待测扫码头经过了PCBA测试和模组测试的完整测试,所获得的测试结果可以作为该待测扫码头的测试结果,记录在该待测扫码头的完整测试状态标志位中。According to the embodiment of Fig. 6A and Fig. 6B, the scanning dock to be tested has passed the complete test of PCBA test and module test, and the test result obtained can be used as the test result of the scanning dock to be tested, and recorded in the scanning dock to be tested. Complete test status flags.
以下对图6A和图6B中的模组校验相关的步骤进行说明。The steps related to the module verification in FIG. 6A and FIG. 6B are described below.
在本申请的一些实施例中,在经过PCBA测试和/或模组测试之后,还包括模组校验。模组校验用于判断待测扫码头的光栅灯的边界光圈是否位于待测扫码头的摄像头FOV之内,若是则待测扫码头通过模组校验。具体地,该模组校验包括以下步骤:首先,使待测扫码头执行扫码操作;具体的,使待测扫码头朝向白色背景执行扫码操作,待测扫码头与白色背景之间具有一定的预设距离;然后,在执行该扫码操作时,获得待测扫码头的光栅灯的边界光圈和准心,计算准心的偏移量,根据偏移量判断待测扫码头的光栅灯的边界光圈是否位于待测扫码头的摄像头FOV之内。In some embodiments of the present application, after the PCBA test and/or the module test, module verification is also included. The module verification is used to judge whether the boundary aperture of the grating light of the wharf to be tested is within the FOV of the camera of the wharf to be tested, and if so, the wharf to be tested has passed the module verification. Specifically, the module verification includes the following steps: first, make the scanning dock to be tested perform a code scanning operation; specifically, make the scanning dock to be tested face the white background to perform the code scanning operation, and there is a gap between the scanning dock to be tested and the white background. A certain preset distance; then, when performing the code scanning operation, obtain the boundary aperture and crosshair of the grating light of the dock to be tested, calculate the offset of the crosshair, and judge the grating of the dock to be tested according to the offset Whether the boundary aperture of the light is within the FOV of the camera of the dock to be tested.
图7A和图7B是本申请一实施例的检测方法中的模组校验的原理示意图。参考图7A所示,在进行模组校验时,使待测扫码头位于距离扫描平面70大约15cm的位置。该扫描平面70可以是白色背景。执行扫描操作,即使摄像头和光栅灯同时工作。参考图7B所示,摄像头在扫描平面70形成了如外框所示的FOV(Field of View)视场角71,光栅灯在扫描平面70形成如内框所示的边界光圈72和准心73。在该实施例中,准心73为十字准心。在其他的实施例中,准心73可以是其他形状。7A and 7B are schematic diagrams of the principle of module verification in the detection method according to an embodiment of the present application. Referring to FIG. 7A , when performing module verification, the scanning terminal to be tested is located about 15 cm away from the scanning plane 70 . The scan plane 70 may be a white background. Perform scan operations even with cameras and light barriers working simultaneously. Referring to Fig. 7B, the camera forms a FOV (Field of View) field of view 71 as shown in the outer frame on the scanning plane 70, and the grating light forms a boundary aperture 72 and a quasicenter 73 as shown in the inner frame on the scanning plane 70 . In this embodiment, the crosshair 73 is a crosshair. In other embodiments, the collimator 73 may have other shapes.
在固定的位置,摄像头的FOV视场角71固定,光栅灯的边界光圈72固定,当待测扫码头成像后,可直接使用FOV视场角71作为成像的图片的大小,同时根据算法计算出准心73在成像图片中的位置,则可以计算出光栅灯边界光圈72是否位于成像图片以外。例如,可以计算边界光圈72距离FOV视场角71的上边距、下边距、左边距和右边距等参数。At a fixed position, the FOV angle of view 71 of the camera is fixed, and the boundary aperture 72 of the grating light is fixed. After the dock to be tested is imaged, the FOV angle of view 71 can be directly used as the size of the imaged picture, and calculated according to the algorithm Based on the position of the collimator 73 in the imaging picture, it can be calculated whether the boundary aperture 72 of the grating lamp is located outside the imaging picture. For example, parameters such as the top margin, bottom margin, left margin, and right margin from the boundary aperture 72 to the FOV viewing angle 71 can be calculated.
在一些实施例中,待测扫码头的摄像头是摄像头模组。当待测扫码头的摄像头模组与光栅灯安装合格时,则边界光圈72均位于FOV视场角71内;当待测扫码头的摄像头模组与光栅灯安装不合格,边界光圈72可能会位于FOV视场角71外。通过模组校验,可以检验出待测扫码头组装的异常问题。In some embodiments, the camera to be tested to scan the dock is a camera module. When the installation of the camera module and the grating light of the wharf to be tested is qualified, the boundary aperture 72 is located in the FOV field of view angle 71; when the installation of the camera module and the grating light of the wharf to be tested is unqualified, the boundary aperture 72 may be Located outside the 71° angle of view of the FOV. Through module verification, abnormal problems in the assembly of the scanning dock to be tested can be detected.
结合图7A和图7B,图6A和图6B中的人工判断的步骤S226、S253包括:在完成自动判断之后,将FOV图和光栅灯图片一起展示出来,供测试人员复判。With reference to Fig. 7A and Fig. 7B, steps S226 and S253 of manual judgment in Fig. 6A and Fig. 6B include: after the automatic judgment is completed, the FOV map and the photo of the grating light are displayed together for the tester to re-judgment.
在图6A和图6B所示的实施例中,在经过模组校验之后,先根据算法自动 判断模组校验是否成功,并以该自动判断的结果为依据再进行人工判断,保证了模组校验结果的准确性。In the embodiment shown in Fig. 6A and Fig. 6B, after the verification of the module, it is firstly judged automatically according to the algorithm whether the verification of the module is successful, and then the manual judgment is performed based on the result of the automatic judgment, which ensures that the verification of the module is successful. Accuracy of group verification results.
本申请还提供一种扫码头的检测装置,包括测试端、显示端、驱动机构和控制器。该检测装置可以用于执行前文所述的检测方法。特别地,该检测装置可以用于上述检测方法中的PCBA测试阶段和模组测试阶段。更进一步地,该检测装置用于PCBA测试阶段中的扫码测试、模组测试中的扫码测试、近景测试和远景测试等。通过采用该检测装置,能够自动化的完成扫码器或扫码头的测试,提高了测试效率。The present application also provides a detection device for scanning docks, including a test terminal, a display terminal, a driving mechanism and a controller. The detection device can be used to implement the detection method described above. In particular, the detection device can be used in the PCBA test stage and the module test stage in the above detection method. Furthermore, the detection device is used for scanning code testing in the PCBA testing phase, scanning code testing in module testing, close-range testing and long-term testing, etc. By adopting the detection device, the test of the code scanner or the scanning dock can be completed automatically, and the test efficiency is improved.
图8是本申请一实施例的扫码头的检测装置的连接关系示意图。参考图8所示,该实施例的检测装置800包括测试端810、显示端820、驱动机构830和控制器840。其中,测试端810用于搭载待测扫码头;显示端820用于生成和显示条码;驱动机构830具有用于安放显示端820或测试端810的模具(图未示);控制器840用于控制测试端810、显示端820和驱动机构830,其中,控制器840通过测试端810来控制待测扫码头的扫码头测试参数,控制器840根据测试内容控制驱动机构830的移动和显示端820所要生成和显示的条码。FIG. 8 is a schematic diagram of a connection relationship of a detection device for scanning docks according to an embodiment of the present application. Referring to FIG. 8 , the detection device 800 of this embodiment includes a testing terminal 810 , a display terminal 820 , a driving mechanism 830 and a controller 840 . Among them, the test terminal 810 is used to carry the scanning terminal to be tested; the display terminal 820 is used to generate and display barcodes; the drive mechanism 830 has a mold (not shown) for placing the display terminal 820 or the test terminal 810; the controller 840 is used for Control the test terminal 810, the display terminal 820 and the drive mechanism 830, wherein the controller 840 controls the test parameters of the terminal to be tested through the test terminal 810, and the controller 840 controls the movement of the drive mechanism 830 and the display terminal 820 according to the test content. The barcode to be generated and displayed.
在一些实施例中,控制器840还用于执行检测方法中的以下步骤:从待测扫码头的微控制单元中获取完整测试状态标志位;根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试。In some embodiments, the controller 840 is also used to perform the following steps in the detection method: obtain the complete test status flag bit from the micro control unit of the dock to be tested; judge whether to Conduct PCBA testing and/or module testing.
在图8所示的实施例中,如果在驱动机构830的模具上安放显示端820,则驱动机构830在控制器840的控制下,可以带动显示端820移动,此时,测试端810的位置固定不变;如果在驱动机构830的模具上安放测试端810,则驱动机构830在控制器840的控制下,可以带动测试端810移动,此时,显示端820的位置固定不变。In the embodiment shown in Fig. 8, if the display terminal 820 is placed on the mold of the drive mechanism 830, the drive mechanism 830 can drive the display terminal 820 to move under the control of the controller 840. At this time, the position of the test terminal 810 Fixed; if the test end 810 is placed on the mold of the drive mechanism 830, the drive mechanism 830 can drive the test end 810 to move under the control of the controller 840. At this time, the position of the display end 820 is fixed.
参考图8所示,图中用连线表示各个元件的连接关系,但是该连线并不用于限定各个元件之间通过有线的方式连接。其中,控制器840分别与显示端820、测试端810和驱动机构830相连接。Referring to FIG. 8 , the connecting lines are used in the figure to indicate the connection relationship of the various components, but the connecting lines are not used to limit the connection between the various components in a wired manner. Wherein, the controller 840 is respectively connected with the display terminal 820 , the testing terminal 810 and the driving mechanism 830 .
在一些实施例中,控制器840、测试端810、显示端820和驱动机构830中的一个或任意个连接到同一个无线网。在图8所示的实施例中,控制器840、测试端810、显示端820和驱动机构830都连接到同一个路由器850上,也就是说,控 制器840、测试端810、显示端820和驱动机构830处于同一个无线网络之中。驱动机构830可以通过该无线网络从控制器840接收指令,从而根据该指令控制模具的移动,进而带动显示端820或测试端810的移动。In some embodiments, one or any of the controller 840, the testing terminal 810, the display terminal 820 and the driving mechanism 830 are connected to the same wireless network. In the embodiment shown in FIG. 8, the controller 840, the test terminal 810, the display terminal 820 and the driving mechanism 830 are all connected to the same router 850, that is, the controller 840, the test terminal 810, the display terminal 820 and the The drive mechanism 830 is in the same wireless network. The driving mechanism 830 can receive instructions from the controller 840 through the wireless network, so as to control the movement of the mold according to the instructions, and then drive the movement of the display terminal 820 or the testing terminal 810 .
在一些实施例中,测试内容包括PCBA测试项和模组测试项中的任意个。控制器840根据测试内容来控制驱动机构830的移动和显示端820所要生成和显示的条码。可以理解,对有些测试项的测试可能并不需要驱动机构830和显示端820的配合,例如电流测试,由控制器840直接控制扫码头进行电流测试。In some embodiments, the test content includes any one of PCBA test items and module test items. The controller 840 controls the movement of the driving mechanism 830 and the barcode to be generated and displayed by the display terminal 820 according to the test content. It can be understood that the cooperation of the driving mechanism 830 and the display terminal 820 may not be required for the test of some test items, such as the current test, the controller 840 directly controls the scanning terminal to perform the current test.
在一些实施例中,测试内容包括景深测试、灰度测试、运动容差、固定速度、彩色条码、污损条码中的一个或任意个组合,可以根据实际需求定制需要进行的测试。这些测试内容都涉及到控制器840对驱动机构830和显示端820的控制。对于不同的测试内容来说,显示端820所要生成的条码是不同的,例如条码的内容和条码大小(如:15mil大小的QR码)都可以不同。In some embodiments, the test content includes one or any combination of depth of field test, grayscale test, motion tolerance, fixed speed, color barcode, and stained barcode, and the required tests can be customized according to actual needs. These test contents all involve the control of the drive mechanism 830 and the display terminal 820 by the controller 840 . For different test contents, the barcodes to be generated by the display terminal 820 are different, for example, the content of the barcodes and the size of the barcodes (such as: 15mil QR codes) can be different.
示例性地,测试内容是彩色条码时,控制器840控制显示端820生成彩色条码。本申请对于显示端820如何生成彩色条码的方法不做限制。可以预先在控制器840中存储用于进行彩色条码测试的多个彩色条码。进行彩色条码测试时,也可以根据预设的程序,选择一定数量的彩色条码依次进行测试。当测试内容是污损条码时,显示端820生成污损条码。由于实际情况下,污损条码可以有很多种污损情况,比如污损部分的位置、大小、形状等都可以千变万化,控制器840可以根据需要预设各种污损条码,并根据程序来依次显示需要的污损条码。Exemplarily, when the test content is a color barcode, the controller 840 controls the display terminal 820 to generate a color barcode. This application does not limit the method of how the display terminal 820 generates the color barcode. A plurality of color barcodes used for the color barcode test may be stored in the controller 840 in advance. When performing a color barcode test, you can also select a certain number of color barcodes to test in sequence according to the preset program. When the test content is a defaced barcode, the display terminal 820 generates a defaced barcode. Due to the actual situation, there can be many kinds of defaced barcodes, such as the location, size, and shape of the defaced part, etc. Displays the desired defaced barcode.
同理,对于不同的测试内容,驱动机构830的移动方式也不同。例如,当测试内容是景深测试时,控制器840控制驱动机构830根据景深测试的要求移动。示例性地,当驱动机构830的模具上安放显示端820时,则先使显示端820距离测试端810的距离较近,进行近景测试,从一初始位置开始逐渐增大距离,每次变换一个位置,控制器840控制测试端810上的待测扫码头执行一次扫码,并记录扫码结果。在显示端820移动的过程中,待测扫码头第一次扫码成功时的距离为近景距离,当该距离增加到一定程度,待测扫码头扫码失败,将该距离记为远景距离。该景深测试内容仅为示例,不用于限制实际的景深测试的具体内容。Similarly, for different test contents, the moving modes of the driving mechanism 830 are also different. For example, when the test content is a depth of field test, the controller 840 controls the driving mechanism 830 to move according to the requirements of the depth of field test. Exemplarily, when the display terminal 820 is placed on the mold of the driving mechanism 830, the distance between the display terminal 820 and the test terminal 810 is firstly made relatively close, and a close-up test is carried out, and the distance is gradually increased from an initial position, and one is changed each time. position, the controller 840 controls the scanning dock to be tested on the testing terminal 810 to perform a code scanning and record the scanning result. During the movement of the display terminal 820, the distance when the code scanning of the terminal under test is successful for the first time is the short-range distance. The content of the depth of field test is only an example, and is not intended to limit the specific content of the actual depth of field test.
在一些实施例中,控制器840还用于向驱动机构830发送第一指令,该第一指令包括控制驱动机构830的移动轨迹和/或移动速度的指令。可以理解,该第一 指令与测试内容相关。移动轨迹是三维空间中的任意路线。In some embodiments, the controller 840 is further configured to send a first instruction to the driving mechanism 830 , where the first instruction includes an instruction to control the moving track and/or moving speed of the driving mechanism 830 . It can be understood that the first instruction is related to the test content. The movement trajectory is an arbitrary route in three-dimensional space.
在一些实施例中,控制器840还用于向显示端820发送第二指令。该第二指令包括显示条码的大小、类型、颜色和灰度中的一个或任意个组合。可以理解,该第二指令与测试内容相关。In some embodiments, the controller 840 is further configured to send a second instruction to the display terminal 820 . The second instruction includes displaying one or any combination of the size, type, color and grayscale of the barcode. It can be understood that the second instruction is related to the test content.
根据这些实施例,在对待测扫码头进行测试时,通过控制器840向驱动机构830发送第一指令以使驱动机构830根据测试内容移动,使测试过程可控性好;通过控制器840向显示端820发送包含不同内容的第二指令来改变显示端820所显示的条码的内容,从而不需要人工更换条码,提高了测试的效率。According to these embodiments, when the wharf to be tested is tested, the controller 840 sends the first instruction to the driving mechanism 830 so that the driving mechanism 830 moves according to the test content, so that the test process is well controllable; The terminal 820 sends a second instruction containing different content to change the content of the barcode displayed on the display terminal 820, so that manual replacement of the barcode is not required, and the efficiency of the test is improved.
在一些实施例中,控制器840还用于记录显示端820所生成和显示的条码的状态,该状态包括生成条码成功、生成条码失败和生成条码超时中的一个或任意个组合。在进行测试时,根据测试内容显示端820需生成和显示特定的条码,然而,在一些情况下,显示端820所最终生成和显示的条码可能不同于预定要显示的条码。因此,这些实施例提供了对所显示条码的校验功能。根据记录条码的状态,可以明确该条码生成成功、失败或超时。如此,在生成条码失败时,可以及时排除故障,避免因生成条码失败导致扫码测试长时间中止。In some embodiments, the controller 840 is also used to record the state of the barcode generated and displayed by the display terminal 820, the state including one or any combination of successful barcode generation, barcode generation failure, and barcode generation timeout. When testing, the display terminal 820 needs to generate and display a specific barcode according to the test content. However, in some cases, the barcode finally generated and displayed by the display terminal 820 may be different from the predetermined barcode to be displayed. Thus, these embodiments provide a verification function for displayed barcodes. According to the status of the recorded barcode, it can be clearly defined whether the barcode was generated successfully, failed or timed out. In this way, when the barcode fails to be generated, the fault can be eliminated in time to avoid the long-term suspension of the barcode scan test due to the failure to generate the barcode.
在一些实施例中,显示端820将根据第一指令生成条码的结果返回至控制器840,从而使控制器840获得条码的生成结果,从而计算条码的状态。In some embodiments, the display terminal 820 returns the result of generating the barcode according to the first instruction to the controller 840, so that the controller 840 obtains the result of generating the barcode, and calculates the state of the barcode.
本申请对上述显示端820所显示的条码的类型不做限制,条码可以包括一维条码、二维条码、以及多维码等。具体地,例如以下类型的条码:CODE25_INTERLEAVED、CODE39、CODE25_INDUSTRY、CODE39_EXTENDED、CODE93、CODE_128、EAN、UPC_A、UPC_E、QR,PDF417、DATAMATRIX、AZTEC、CHANNEL_CODE、CODABAR、CODE25_INDUSTRY、CODE25_INTERLEAVED、CODE_11、CODE25_MATRIX、CODE25_IATA、CODE25_DATALOGIC、ITF14、CODE39、CODE39_EXTENDED、CODE93、DOD_LOGMARS、CODE_128、NVE18,EAN、MSI_PLESSEY、TELEPEN、TELEPEN_NUMERIC、UPC_A、UPC_E、CODABLOCK_F、CODE16K、CODE49、PDF417、PDF417_TRUNCATED、PDF417_MICRO、AZTEC、AZTEC_RUNE、DATAMATRIX、CODE_ONE、GRIDMATRIX、MAXICODE、QR、QR_MICRO、DB14、DB14_STACKED、DB14_STACKED_OMNIDIRECT、DB_LIMITED、 DB_EXPANDED、DB_EXPANDED_STACKED、AUSPOST,AUSPOST_REPLY、AUSPOST_REROUTE、AUSPOST_REDIRECT、BRAZIL_CEPNET、DP_LEITCODE、DP_IDENTCODE,KIX_CODE、JAPAN_POST、KOREA_POST、RM4SCC、USPS_IMAIL、CODE39_HIBC、USPS_POSTNET、USPS_PLANET、CODE_32、AZTEC_HIBC、CODABLOCK_HIBC、CODE_128_HIBC、DATAMATRIX_HIBC、PDF417_HIBC、PDF417_MICRO_HIBC、QR_HIBC、PHARMA、PHARMA_TWOTRACK、PZN、USPS_IMPB。The application does not limit the types of barcodes displayed on the display terminal 820, and the barcodes may include one-dimensional barcodes, two-dimensional barcodes, and multi-dimensional barcodes. Specifically, for example the following types of barcodes: CODE25_INTERLEAVED, CODE39, CODE25_INDUSTRY, CODE39_EXTENDED, CODE93, CODE_128, EAN, UPC_A, UPC_E, QR, PDF417, DATAMATRIX, AZTEC, CHANNEL_CODE, CODABAR, CODE25_INDUSTRY, CODE25_INTER LEAVED, CODE_11, CODE25_MATRIX, CODE25_IATA, CODE25_DATALOGIC , ITF14, CODE39, CODE39_EXTENDED, CODE93, DOD_LOGMARS, CODE_128, NVE18, EAN, MSI_PLESSEY, TELEPEN, TELEPEN_NUMERIC, UPC_A, UPC_E, CODABLOCK_F, CODE16K, CODE49, PDF417, PDF417_TRUNCATED, PDF417 _MICRO, AZTEC, AZTEC_RUNE, DATAMATRIX, CODE_ONE, GRIDMATRIX, MAXICODE ,QR,QR_MICRO,DB14,DB14_STACKED,DB14_STACKED_OMNIDIRECT,DB_LIMITED,DB_EXPANDED,DB_EXPANDED_STACKED,AUSPOST,AUSPOST_REPLY,AUSPOST_REROUTE,AUSPOST_REDIRECT,BRAZIL_CEPNET,DP_LEITCODE,DP_IDENTCODE,K IX_CODE, JAPAN_POST, KOREA_POST, RM4SCC, USPS_IMAIL, CODE39_HIBC, USPS_POSTNET, USPS_PLANET, CODE_32, AZTEC_HIBC , CODABLOCK_HIBC, CODE_128_HIBC, DATAMATRIX_HIBC, PDF417_HIBC, PDF417_MICRO_HIBC, QR_HIBC, PHARMA, PHARMA_TWOTRACK, PZN, USPS_IMPB.
在一些实施例中,控制器840包括计算机(PC)、平板电脑等终端。In some embodiments, the controller 840 includes terminals such as a computer (PC), a tablet computer, and the like.
在一些实施例中,控制器840还用于向测试端810发送第三指令,该第三指令包括扫码头测试参数和测试结果参数。其中,扫码头测试参数包括待测扫码头的开关命令和扫码频率,测试结果参数包括超时时间。通过控制器840发送第三指令即可控制扫码头的开启和关闭,不需要人工参与。还可以通过控制器840改变扫码的频率和超时时间。例如,可以通过控制器840将扫码频率设置为20毫秒,即每隔20ms扫码一次;将超时时间设置为2秒,即如果扫码2秒后还没产生扫码结果,则该次扫码超时。In some embodiments, the controller 840 is further configured to send a third instruction to the testing terminal 810, where the third instruction includes a terminal scanning test parameter and a test result parameter. Among them, the test parameters of the scanning terminal include the switch command and the scanning frequency of the scanning terminal to be tested, and the test result parameters include the timeout time. The opening and closing of the scanning dock can be controlled by sending the third instruction through the controller 840 without manual participation. The code scanning frequency and timeout time can also be changed through the controller 840 . For example, the code scanning frequency can be set to 20 milliseconds through the controller 840, that is, the code is scanned every 20 ms; Code timed out.
在一些实施例中,控制器840还用于根据测试结果参数判断当前扫码测试的测试结果,测试结果包括测试成功、测试失败和超时失败中的一个或任意个组合。例如,通过控制器840将超时时间设置为2秒,当测试端810扫码时间超过2秒后无法获得扫码结果,则控制器840将扫码测试的测试结果判定为扫码超时;若获得正确的扫码结果,则控制器840将扫码测试的测试结果判定为扫码成功,然后,移动驱动机构830进行下一项测试。若扫码失败,则重新扫码直至失败次数达到预定数量或扫码超时。针对上述的测试结果,控制器840可以数字格式存储,例如xls、txt格式,以方便后续测试结果的分享、备份和传递。同时,也省去了人工记录测试结果的步骤,提高了测试效率。In some embodiments, the controller 840 is further configured to judge the test result of the current code scanning test according to the test result parameter, and the test result includes one or any combination of test success, test failure and timeout failure. For example, if the timeout period is set to 2 seconds by the controller 840, when the code scanning result of the test terminal 810 exceeds 2 seconds, the code scanning result cannot be obtained, and the controller 840 judges the code scanning test result as a code scanning timeout; If the code scanning result is correct, the controller 840 determines the test result of the code scanning test as successful code scanning, and then moves the driving mechanism 830 to perform the next test. If the scan code fails, re-scan the code until the number of failures reaches the predetermined number or the scan code times out. For the above test results, the controller 840 can store them in digital format, such as xls, txt format, so as to facilitate the sharing, backup and delivery of subsequent test results. At the same time, the step of manually recording the test results is also omitted, which improves the test efficiency.
图9是本申请一实施例的检测装置的结构框架示意图。结合图8和图9,在图9所示的实施例中,检测装置800的测试端810具体实施为扫码测试端910,显示端810具体实施为条码显示端920,驱动机构830具体实施为机械臂930,控制器840对应于图9中的控制器940。由于图9是图8所示实施例的一种具体实施方式,因此,相同的元件可能采用不同的标号,如控制器840、控制器 940,分别指框架性的检测装置800中的控制器840,具体实施的检测装置900中的控制器940,二者属于相同的元件的不同表示。FIG. 9 is a schematic diagram of a structural frame of a detection device according to an embodiment of the present application. 8 and FIG. 9, in the embodiment shown in FIG. 9, the test terminal 810 of the detection device 800 is embodied as a code scanning test terminal 910, the display terminal 810 is embodied as a barcode display terminal 920, and the driving mechanism 830 is embodied as The robotic arm 930 and the controller 840 correspond to the controller 940 in FIG. 9 . Since FIG. 9 is a specific implementation of the embodiment shown in FIG. 8, the same components may use different labels, such as controller 840 and controller 940, which respectively refer to the controller 840 in the framework detection device 800 , the specific implementation of the controller 940 in the detection device 900, both of which belong to different representations of the same element.
参考图9所示,在该检测装置900中,在扫码测试端910搭载待测扫码头。该扫码测试端910可以搭载各种型号的扫码头,具有较广的通用性。在条码显示端920生成和显示条码。Referring to FIG. 9 , in the detection device 900 , a code scanning terminal 910 is equipped with a code scanning terminal to be tested. The code scanning test terminal 910 can be equipped with various types of scanning docks, and has wide versatility. A barcode is generated and displayed at the barcode display terminal 920 .
在一些实施例中,显示端包括显示屏。在图9所示的实施例中,条码显示端920可以是各种类型的显示屏,比如液晶显示屏、墨水显示屏、LED显示屏等。In some embodiments, the display end includes a display screen. In the embodiment shown in FIG. 9 , the barcode display terminal 920 can be various types of display screens, such as liquid crystal display screens, ink display screens, LED display screens, and the like.
在机械臂930上具有用于安放条码显示端920的模具。在进行测试时,将条码显示端920安放在机械臂930的模具上,从而使得机械臂930可以带动条码显示端920移动。There is a mold for placing the barcode display end 920 on the mechanical arm 930 . During the test, the barcode display terminal 920 is placed on the mold of the mechanical arm 930 , so that the mechanical arm 930 can drive the barcode display terminal 920 to move.
如图9所示,在该实施例中,扫码测试端910、条码显示端920、机械臂930和控制器940均放置在一工作台950上。该工作台950可以是一距离地面一定高度的台面,也可以是地面。在本申请的其他一些实施例中,可以根据实际测试需求安放上述装置,不限于本实施例中的情形。As shown in FIG. 9 , in this embodiment, the code scanning test terminal 910 , the barcode display terminal 920 , the mechanical arm 930 and the controller 940 are all placed on a workbench 950 . The workbench 950 can be a table at a certain height from the ground, or it can be the ground. In some other embodiments of the present application, the above devices may be placed according to actual testing requirements, and are not limited to the situation in this embodiment.
图10是图9所示实施例的检测装置在进行测试时的示例性时序图。下面结合图9和图10对该测试过程进一步说明。FIG. 10 is an exemplary timing diagram of the detection device of the embodiment shown in FIG. 9 when testing. The testing process will be further described below with reference to FIG. 9 and FIG. 10 .
参考图10所示,在该时序图中包括图9所示实施例中的四个执行主体:条码显示端920、控制器940、扫码测试端910和机械臂930。其中,每个执行主体下方的长条从上向下表示时间进度条,对齐的进度条的端点表示该任务节点在相同的时间执行动作。Referring to FIG. 10 , the sequence diagram includes four execution subjects in the embodiment shown in FIG. 9 : barcode display terminal 920 , controller 940 , code scanning test terminal 910 and mechanical arm 930 . Among them, the long bars below each execution body represent the time progress bar from top to bottom, and the endpoints of the aligned progress bars indicate that the task nodes execute actions at the same time.
参考图103所示,示例性地,当控制器940为PC时,该PC端直接通过机械臂930的开发手册采用IP地址的方式连接机械臂930,通过该链接方式向机械臂930发送第一指令,PC端采用Socket通信方式连接扫码测试端910和条码显示端920通过Socket通信方式分别向条码显示端920和扫码测试端9210发送第二指令和第三指令,条码显示端920将所生成的条码的状态返回至控制器940,扫码测试端910将测试结果参数返回至控制器940。控制器940根据测试结果参数判断当前扫码测试的测试结果,如果为测试成功,则移动机械臂930,进行下一项扫码测试;如果为测试失败,则重新扫码,直到结果为测试成功或者超时。Referring to FIG. 103 , for example, when the controller 940 is a PC, the PC directly connects to the robotic arm 930 through the development manual of the robotic arm 930 using an IP address, and sends the first Instructions, the PC end uses Socket communication to connect the code scanning test terminal 910 and the barcode display terminal 920 to send the second instruction and the third instruction to the barcode display terminal 920 and the code scanning test terminal 9210 respectively through the Socket communication method, and the barcode display terminal 920 sends all The state of the generated barcode is returned to the controller 940 , and the code scanning test terminal 910 returns the test result parameters to the controller 940 . The controller 940 judges the test result of the current code scanning test according to the test result parameters. If the test is successful, the robot arm 930 is moved to perform the next code scanning test; if the test fails, the code is scanned again until the result is a successful test. or timeout.
例如,在近景测试时,从最近点开始,首先会一直得到扫码失败的结果, 则一直继续测试直到扫码成功。在远景测试时,开始时扫码测试结果一直是测试成功,当到达最远点时则会扫码失败,故需要再次判断。For example, in the close-range test, starting from the closest point, you will always get the result of code scanning failure, and then continue the test until the code scanning is successful. In the vision test, the scan code test result is always successful at the beginning, and the scan code fails when it reaches the farthest point, so it needs to be judged again.
在一些实施例中,每条指令可以包括对应的命令序号,每个返回结果,例如条码的状态和测试结果也可以包括相应的序号,以利于程序的执行。In some embodiments, each instruction may include a corresponding command serial number, and each returned result, such as the status of the barcode and the test result, may also include a corresponding serial number, so as to facilitate the execution of the program.
在一些实施例中,可根据所显示的条码的字符串的长度和返回的测试结果的长度涉及Socket通信数据的最大的传输值。例如,本实施例将Socket通信数据的最大的传输值设置为4Kb。In some embodiments, the maximum transmission value of the Socket communication data may be related to the length of the displayed barcode character string and the length of the returned test result. For example, in this embodiment, the maximum transmission value of Socket communication data is set to 4Kb.
在本申请的其他一些实施例中,控制器940还可以采用串口和蓝牙的方式与机械臂930进行连接,以向机械臂930发送第一指令。In some other embodiments of the present application, the controller 940 may also be connected to the mechanical arm 930 by means of a serial port and Bluetooth, so as to send the first instruction to the mechanical arm 930 .
上述说明不用于限制测试端、显示端、驱动机构、控制器之间的连接方式,具体的连接方式可以是多样的。The above description is not intended to limit the connection modes among the test terminal, the display terminal, the driving mechanism, and the controller, and the specific connection modes may be varied.
本申请的检测装置将控制器、测试端、显示端和驱动机构组成一个统一的自动化检测装置,并通过控制器向测试端、显示端和驱动机构发送指令以进行各种测试,能够自动化的完成扫码头的测试,提高了测试效率。且支持以数字格式导出测试结果,方便测试结果的分享、备份和传递。The detection device of the present application forms a unified automatic detection device with the controller, test terminal, display terminal and driving mechanism, and sends instructions to the test terminal, display terminal and driving mechanism through the controller to perform various tests, which can be completed automatically The test of sweeping the dock improves the test efficiency. It also supports the export of test results in digital format, which facilitates the sharing, backup and transfer of test results.
在图9所示的实施例中,扫码测试端910的位置可以固定,机械臂930仅驱动条码显示端920移动来对待测扫码头进行测试。在本申请的另外一些实施例中,将显示端固定,通过驱动机构驱动测试端进行测试。In the embodiment shown in FIG. 9 , the position of the code scanning test terminal 910 can be fixed, and the mechanical arm 930 only drives the barcode display terminal 920 to move to test the terminal to be scanned. In some other embodiments of the present application, the display end is fixed, and the test end is driven by a driving mechanism for testing.
图11是本申请另一实施例的检测装置的结构框架示意图。与图9所示实施例不同的是,在该实施例的检测装置1100中,条码显示端1120固定在工作台1150上,扫码测试端1110安放在机械臂1130的模具上。如此,机械臂1130将根据控制器1140发送的第一指令带动扫码测试端1120移动,其移动的方式和测试内容相关。可以理解,对于相同的测试内容来说,图9和图11所示的实施例中,控制器所发送的第一指令可以相同也可以不同,需要根据具体的测试内容而定。例如,在景深测试中,在图9所示的实施例中,机械臂930带动条码显示端940先靠近扫码测试端910,再逐渐远离;在图11所示的实施例中,机械臂1130带动扫码测试端1110先靠近扫码测试端1110,再逐渐远离,在该示例中,机械臂的移动方式可以是相同的,则第一指令也相同。Fig. 11 is a schematic structural frame diagram of a detection device according to another embodiment of the present application. Different from the embodiment shown in FIG. 9 , in the detection device 1100 of this embodiment, the barcode display end 1120 is fixed on the workbench 1150 , and the code scanning test end 1110 is placed on the mold of the mechanical arm 1130 . In this way, the robot arm 1130 will drive the code scanning test end 1120 to move according to the first instruction sent by the controller 1140, and the way of its movement is related to the test content. It can be understood that for the same test content, in the embodiments shown in FIG. 9 and FIG. 11 , the first instructions sent by the controller may be the same or different, depending on the specific test content. For example, in the depth of field test, in the embodiment shown in Figure 9, the mechanical arm 930 drives the barcode display terminal 940 to approach the code scanning test terminal 910 first, and then gradually move away; in the embodiment shown in Figure 11, the mechanical arm 1130 Drive the code scanning test end 1110 to approach the code scanning test end 1110 first, and then gradually move away from it. In this example, the moving modes of the mechanical arms may be the same, so the first instruction is also the same.
图11所示实施例中的其他内容与图9所示实施例相同,可以参考相关说 明内容,在此不再赘述。Other contents in the embodiment shown in FIG. 11 are the same as those in the embodiment shown in FIG. 9 , and reference may be made to related explanations, and details are not repeated here.
本申请还提供扫一种扫码头的检测装置,包括:存储器,用于存储可由处理器执行的指令;处理器,用于执行指令以实现前文中的扫码头的检测方法。The present application also provides a detection device for scanning docks, including: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the detection method for scanning docks described above.
图12是本申请一实施例的扫码头的检测装置的系统框图。参考图12所示,该检测装置1200可包括内部通信总线1201、处理器1202、只读存储器(ROM)1203、随机存取存储器(RAM)1204以及通信端口1205。当应用在个人计算机上时,该检测装置1200还可以包括硬盘1206。内部通信总线1201可以实现该检测装置1200组件间的数据通信。处理器1202可以进行判断和发出提示。在一些实施例中,处理器1202可以由一个或多个处理器组成。通信端口1205可以实现该检测装置1200与外部的数据通信。在一些实施例中,该检测装置1200可以通过通信端口1205从网络发送和接受信息及数据。该检测装置1200还可以包括不同形式的程序储存单元以及数据储存单元,例如硬盘1206,只读存储器(ROM)1203和随机存取存储器(RAM)1204,能够存储计算机处理和/或通信使用的各种数据文件,以及处理器1202所执行的可能的程序指令。处理器执行这些指令以实现方法的主要部分。处理器处理的结果通过通信端口传给用户设备,在用户界面上显示。FIG. 12 is a system block diagram of a detection device for scanning docks according to an embodiment of the present application. Referring to FIG. 12 , the detection device 1200 may include an internal communication bus 1201 , a processor 1202 , a read only memory (ROM) 1203 , a random access memory (RAM) 1204 and a communication port 1205 . When applied to a personal computer, the detection device 1200 may also include a hard disk 1206 . The internal communication bus 1201 can realize data communication between components of the detection device 1200 . The processor 1202 can make a judgment and issue a prompt. In some embodiments, processor 1202 may consist of one or more processors. The communication port 1205 can realize data communication between the detection device 1200 and the outside. In some embodiments, the detection device 1200 can send and receive information and data from the network through the communication port 1205 . The detection device 1200 may also include different forms of program storage units and data storage units, such as a hard disk 1206, a read-only memory (ROM) 1203 and a random access memory (RAM) 1204, which can store various data for computer processing and/or communication. data files, and possibly program instructions executed by processor 1202. The processor executes these instructions to implement the main parts of the method. The result processed by the processor is transmitted to the user equipment through the communication port, and displayed on the user interface.
上述的检测方法可以实施为计算机程序,保存在硬盘1206中,并可加载到处理器1202中执行,以实施本申请的检测方法。The above detection method can be implemented as a computer program, stored in the hard disk 1206, and can be loaded into the processor 1202 for execution, so as to implement the detection method of the present application.
本发明还包括一种存储有计算机程序代码的计算机可读介质,计算机程序代码在由处理器执行时实现前文所述的扫码头的检测方法。The present invention also includes a computer-readable medium storing computer program codes. When the computer program codes are executed by a processor, the above-mentioned detection method for scanning docks is realized.
扫码头的检测方法实施为计算机程序时,也可以存储在计算机可读存储介质中作为制品。例如,计算机可读存储介质可以包括但不限于磁存储设备(例如,硬盘、软盘、磁条)、光盘(例如,压缩盘(CD)、数字多功能盘(DVD))、智能卡和闪存设备(例如,电可擦除可编程只读存储器(EPROM)、卡、棒、键驱动)。此外,本文描述的各种存储介质能代表用于存储信息的一个或多个设备和/或其它机器可读介质。术语“机器可读介质”可以包括但不限于能存储、包含和/或承载代码和/或指令和/或数据的无线信道和各种其它介质(和/或存储介质)。When the detection method of scanning docks is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, computer-readable storage media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic stripe), optical disks (e.g., compact disk (CD), digital versatile disk (DVD)), smart cards, and flash memory devices ( For example, Electrically Erasable Programmable Read Only Memory (EPROM), card, stick, key drive). Additionally, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and/or storage media) capable of storing, containing and/or carrying code and/or instructions and/or data.
应该理解,上文所描述的实施例仅是示意。本文描述的实施例可在硬件、软件、固件、中间件、微码或者其任意组合中实现。对于硬件实现,处理器可 以在一个或者多个特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器和/或设计为执行本文所述功能的其它电子单元或者其结合内实现。It should be understood that the embodiments described above are illustrative only. Embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor can be implemented on one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays ( FPGA), processors, controllers, microcontrollers, microprocessors, and/or other electronic units designed to perform the functions described herein, or combinations thereof.
本申请的一些方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据块”、“模块”、“引擎”、“单元”、“组件”或“系统”。处理器可以是一个或多个专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理器件(DAPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器或者其组合。此外,本申请的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。例如,计算机可读介质可包括,但不限于,磁性存储设备(例如,硬盘、软盘、磁带……)、光盘(例如,压缩盘CD、数字多功能盘DVD……)、智能卡以及闪存设备(例如,卡、棒、键驱动器……)。Some aspects of the present application may be entirely implemented by hardware, may be entirely implemented by software (including firmware, resident software, microcode, etc.), or may be implemented by a combination of hardware and software. The above hardware or software may be referred to as "block", "module", "engine", "unit", "component" or "system". The processor can be one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DAPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors , a controller, a microcontroller, a microprocessor, or a combination thereof. Additionally, aspects of the present application may be embodied as a computer product comprising computer readable program code on one or more computer readable media. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic tape...), optical disks (e.g., compact disk CD, digital versatile disk DVD...), smart cards, and flash memory devices ( For example, cards, sticks, key drives...).
计算机可读介质可能包含一个内含有计算机程序编码的传播数据信号,例如在基带上或作为载波的一部分。该传播信号可能有多种表现形式,包括电磁形式、光形式等等、或合适的组合形式。计算机可读介质可以是除计算机可读存储介质之外的任何计算机可读介质,该介质可以通过连接至一个指令执行系统、装置或设备以实现通讯、传播或传输供使用的程序。位于计算机可读介质上的程序编码可以通过任何合适的介质进行传播,包括无线电、电缆、光纤电缆、射频信号、或类似介质、或任何上述介质的组合。A computer readable medium may contain a propagated data signal embodying a computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may take many forms, including electromagnetic, optical, etc., or a suitable combination. The computer-readable medium can be any computer-readable medium, except computer-readable storage media, that can communicate, propagate, or transfer the program for use by being coupled to an instruction execution system, apparatus, or device. Program code on a computer readable medium may be transmitted over any suitable medium, including radio, electrical cables, fiber optic cables, radio frequency signals, or the like, or combinations of any of the foregoing.
上文已对基本概念做了描述,显然,对于本领域技术人员来说,上述发明披露仅仅作为示例,而并不构成对本申请的限定。虽然此处并没有明确说明,本领域技术人员可能会对本申请进行各种修改、改进和修正。该类修改、改进和修正在本申请中被建议,所以该类修改、改进、修正仍属于本申请示范实施例的精神和范围。The basic concept has been described above, obviously, for those skilled in the art, the above disclosure of the invention is only an example, and does not constitute a limitation to the present application. Although not expressly stated here, various modifications, improvements and amendments to this application may be made by those skilled in the art. Such modifications, improvements, and amendments are suggested in this application, so such modifications, improvements, and amendments still belong to the spirit and scope of the exemplary embodiments of this application.

Claims (15)

  1. 一种扫码头的检测方法,包括:A detection method for scanning docks, comprising:
    根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试,所述完整测试状态标志位用于表示所述待测扫码头的测试状态,所述测试状态包括PCBA测试状态和模组测试状态,其中,所述PCBA测试包括以下步骤:Judging whether to carry out PCBA test and/or module test according to the complete test state flag bit of scanning dock to be tested, described complete test state flag bit is used for representing the test state of described sweep dock to be tested, and described test state comprises PCBA test State and module test state, wherein, described PCBA test comprises the following steps:
    步骤S11:获取所述待测扫码头的序列号和固件版本号;Step S11: Obtain the serial number and firmware version number of the dock to be tested;
    步骤S12:若成功获取所述序列号,并且所述固件版本号正确,则判断是否开启PCBA自动测试;Step S12: If the serial number is successfully obtained, and the firmware version number is correct, then determine whether to enable the PCBA automatic test;
    步骤S13:若开启所述PCBA自动测试,则自动执行所述PCBA测试中的PCBA测试项;Step S13: If the PCBA automatic test is enabled, automatically execute the PCBA test items in the PCBA test;
    步骤S14:记录PCBA测试结果;Step S14: record the PCBA test result;
    所述模组测试包括以下步骤:The module test includes the following steps:
    步骤S21:获取所述待测扫码头的序列号、固件版本号和所述PCBA测试结果;Step S21: Obtain the serial number, firmware version number and the PCBA test result of the scanning dock to be tested;
    步骤S22:若成功获取所述序列号,所述固件版本号正确,并且所述PCBA测试结果为通过,则判断是否开启模组自动测试;Step S22: If the serial number is successfully obtained, the firmware version number is correct, and the PCBA test result is passed, then it is judged whether to enable the automatic module test;
    步骤S23:若开启所述模组自动测试,则自动执行所述模组测试中的模组测试项;Step S23: If the module automatic test is enabled, automatically execute the module test items in the module test;
    步骤S24:记录模组测试结果。Step S24: record the module test result.
  2. 如权利要求1所述的检测方法,其特征在于,在根据待测扫码头的完整测试状态标志位判断是否进行PCBA测试和/或模组测试的步骤之前,还包括:从所述待测扫码头的微控制单元中获取所述完整测试状态标志位。The detection method according to claim 1, further comprising: The complete test status flag bit is obtained in the micro control unit of the terminal.
  3. 如权利要求2所述的检测方法,其特征在于,所述完整测试状态标志位包括多位二进制字符,其中包括第一组二进制字符和第二组二进制字符,所述第一组二进制字符用于表示所述PCBA测试状态,所述第二组二进制字符用于表示所述模组测试状态。The detection method according to claim 2, wherein the complete test state flag comprises multi-bit binary characters, including a first group of binary characters and a second group of binary characters, and the first group of binary characters is used for Indicates the PCBA test status, and the second group of binary characters is used to indicate the module test status.
  4. 如权利要求1所述的检测方法,其特征在于,在所述步骤S11之前和在所 述步骤S21之前,还包括:将所述待测扫码头的序列号和固件版本号写入微控制单元中;所述步骤S11和所述步骤S21都包括:从所述微控制单元中读取所述序列号和所述固件版本号;所述步骤S21还包括:从所述微控制单元中读取所述PCBA测试结果。The detection method according to claim 1, characterized in that, before the step S11 and before the step S21, it also includes: writing the serial number and firmware version number of the scanning dock to be tested into the micro control unit In; the step S11 and the step S21 all include: reading the serial number and the firmware version number from the micro control unit; the step S21 also includes: reading from the micro control unit The PCBA test results.
  5. 如权利要求1所述的检测方法,其特征在于,所述PCBA测试项和/或所述模组测试项至少包括电流测试,所述PCBA测试项还包括补光灯光栅灯测试和扫码测试中的一项或任意项的组合,所述模组测试项还包括补光灯光栅灯测试、扫码测试、近景测试和远景测试中的一项或任意项组合。The detection method according to claim 1, wherein the PCBA test item and/or the module test item at least includes a current test, and the PCBA test item also includes a supplementary light grid lamp test and a code scanning test One or any combination of items, the module test item also includes one or any combination of supplementary light grid lamp test, code scanning test, close-range test and vision test.
  6. 如权利要求1所述的检测方法,其特征在于,在经过所述PCBA测试和/或所述模组测试之后,还包括模组校验,所述模组校验用于判断所述待测扫码头的光栅灯的边界光圈是否位于所述待测扫码头的摄像头FOV之内,若是则所述待测扫码头通过所述模组校验。The detection method according to claim 1, characterized in that, after the PCBA test and/or the module test, it also includes a module verification, and the module verification is used to judge the tested Whether the boundary aperture of the grating light of the scanning dock is within the FOV of the camera of the scanning dock to be tested, and if so, the scanning dock to be tested passes the module verification.
  7. 如权利要求6所述的检测方法,其特征在于,所述模组校验的步骤包括:The detection method according to claim 6, wherein said step of module verification comprises:
    使所述待测扫码头执行扫码操作;Make the scanning dock to be tested perform a code scanning operation;
    在执行所述扫码操作时,获得所述待测扫码头的光栅灯的边界光圈和准心,计算所述准心的偏移量,根据所述偏移量判断所述待测扫码头的光栅灯的边界光圈是否位于所述待测扫码头的摄像头FOV之内。When performing the code scanning operation, obtain the boundary aperture and the center of gravity of the grating light of the scanning dock to be tested, calculate the offset of the alignment, and judge the position of the scanning dock to be tested according to the offset Whether the boundary aperture of the grating light is within the FOV of the camera of the dock to be tested.
  8. 如权利要求1所述的检测方法,其特征在于,所述待测扫码头包括摄像头、光栅灯和补光灯中的一个或任意个的组合。The detection method according to claim 1, wherein the dock to be tested includes one or any combination of a camera, a grating light and a supplementary light.
  9. 一种扫码头的检测装置,包括:A detection device for scanning docks, comprising:
    测试端,用于搭载待测扫码头;The test terminal is used to carry the scanning dock to be tested;
    显示端,用于生成和显示条码;The display terminal is used to generate and display barcodes;
    驱动机构,具有用于安放所述显示端或所述测试端的模具;以及a drive mechanism having a mold for seating the display end or the test end; and
    控制器,用于控制所述测试端、所述显示端和所述驱动机构,其中,所述控制器通过所述测试端来控制待测扫码头的扫码头测试参数,所述控制器根据测试内容控制所述驱动机构的移动和所述显示端所要生成和显示的所述条码。A controller for controlling the test terminal, the display terminal and the driving mechanism, wherein the controller controls the test parameters of the scan terminal to be tested through the test terminal, and the controller according to the test The content controls the movement of the driving mechanism and the barcode to be generated and displayed by the display terminal.
  10. 如权利要求9所述的检测装置,其特征在于,所述测试内容包括景深测试、灰度测试、运动容差、固定速度、彩色条码、污损条码中的一个或任意个组合。The detection device according to claim 9, wherein the test content includes one or any combination of depth of field test, grayscale test, motion tolerance, fixed speed, color barcode, and stained barcode.
  11. 如权利要求9所述的检测装置,其特征在于,所述显示端包括显示屏,所 述驱动机构包括机械臂,所述控制器、所述测试端、所述显示端和所述驱动机构中的一个或任意个连接到同一个无线网。The detection device according to claim 9, wherein the display terminal includes a display screen, the driving mechanism includes a mechanical arm, and the controller, the testing terminal, the display terminal and the driving mechanism One or any of them are connected to the same wireless network.
  12. 如权利要求9所述的检测装置,其特征在于,所述控制器还用于向所述驱动机构发送第一指令,所述第一指令包括控制所述驱动机构的移动轨迹和/或移动速度的指令。The detection device according to claim 9, wherein the controller is further configured to send a first instruction to the driving mechanism, and the first instruction includes controlling the moving track and/or moving speed of the driving mechanism instructions.
  13. 如权利要求9所述的检测装置,其特征在于,所述控制器还用于向所述显示端发送第二指令,所述第二指令包括所述条码的大小、类型、颜色和灰度中的一个或任意个组合。The detection device according to claim 9, wherein the controller is further configured to send a second instruction to the display terminal, the second instruction includes the size, type, color and grayscale of the barcode one or any combination of them.
  14. 如权利要求9所述的检测装置,其特征在于,所述控制器还用于向所述测试端发送第三指令,所述第三指令包括所述扫码头测试参数和测试结果参数,其中,所述扫码头测试参数包括所述待测扫码头的开关命令和扫码频率,所述测试结果参数包括超时时间。The detection device according to claim 9, wherein the controller is further configured to send a third instruction to the test terminal, the third instruction includes the scanning terminal test parameters and test result parameters, wherein, The test parameters of the scanning dock include the switch command and scanning frequency of the scanning dock to be tested, and the test result parameters include a timeout period.
  15. 如权利要求9所述的检测装置,其特征在于,所述控制器还用于执行如权利要求1-8任一项所述的检测方法。The detection device according to claim 9, wherein the controller is further configured to execute the detection method according to any one of claims 1-8.
PCT/CN2022/140645 2021-12-22 2022-12-21 Test method and test apparatus for code scanner head WO2023116752A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202123255218.6U CN216526114U (en) 2021-12-22 2021-12-22 Pier-sweeping testing device
CN202111579446.0A CN114253857A (en) 2021-12-22 2021-12-22 Detection method and device for wharf sweeping and computer readable medium
CN202111579446.0 2021-12-22
CN202123255218.6 2021-12-22

Publications (1)

Publication Number Publication Date
WO2023116752A1 true WO2023116752A1 (en) 2023-06-29

Family

ID=86901285

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/140645 WO2023116752A1 (en) 2021-12-22 2022-12-21 Test method and test apparatus for code scanner head

Country Status (1)

Country Link
WO (1) WO2023116752A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250482A (en) * 2023-11-16 2023-12-19 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction
CN117452121A (en) * 2023-10-30 2024-01-26 乐沪电子有限公司 Method, device and computer storage medium for testing electronic product through code scanner

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198921A (en) * 2014-09-24 2014-12-10 四川泰鹏测控仪表科技有限公司 Method for testing printed circuit boards
CN107133542A (en) * 2017-04-07 2017-09-05 上海汇尔通信息技术有限公司 A kind of two-dimensional code scanning head
CN107798793A (en) * 2017-10-10 2018-03-13 深圳市新国都支付技术有限公司 A kind of method, system and the equipment of the automatic barcode scanning test of POS
CN214041645U (en) * 2020-12-03 2021-08-24 深圳盈达机器视觉技术有限公司 Testing device
CN114253857A (en) * 2021-12-22 2022-03-29 上海商米科技集团股份有限公司 Detection method and device for wharf sweeping and computer readable medium
CN216526114U (en) * 2021-12-22 2022-05-13 上海商米科技集团股份有限公司 Pier-sweeping testing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198921A (en) * 2014-09-24 2014-12-10 四川泰鹏测控仪表科技有限公司 Method for testing printed circuit boards
CN107133542A (en) * 2017-04-07 2017-09-05 上海汇尔通信息技术有限公司 A kind of two-dimensional code scanning head
CN107798793A (en) * 2017-10-10 2018-03-13 深圳市新国都支付技术有限公司 A kind of method, system and the equipment of the automatic barcode scanning test of POS
CN214041645U (en) * 2020-12-03 2021-08-24 深圳盈达机器视觉技术有限公司 Testing device
CN114253857A (en) * 2021-12-22 2022-03-29 上海商米科技集团股份有限公司 Detection method and device for wharf sweeping and computer readable medium
CN216526114U (en) * 2021-12-22 2022-05-13 上海商米科技集团股份有限公司 Pier-sweeping testing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117452121A (en) * 2023-10-30 2024-01-26 乐沪电子有限公司 Method, device and computer storage medium for testing electronic product through code scanner
CN117250482A (en) * 2023-11-16 2023-12-19 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction
CN117250482B (en) * 2023-11-16 2024-03-15 巨翊医疗科技(苏州)有限公司 PCBA testing method, system and device based on Bluetooth interaction

Similar Documents

Publication Publication Date Title
WO2023116752A1 (en) Test method and test apparatus for code scanner head
US7124948B2 (en) Optical reader processing two-dimensional electronic representations
US9619683B2 (en) Portable RFID reading terminal with visual indication of scan trace
US20040004128A1 (en) Optical reader system comprising digital conversion circuit
EP2302562A2 (en) Automatic testing system and automatic testing method for testing barcode identification apparatus
US20040262394A1 (en) Optical reader having solid-state image sensor
US20110073647A1 (en) Automatic testing system and automatic testing method for testing barcode identification apparatus
CN111755881B (en) Connecting device, system, identification method and identification device
CN102289643B (en) Intelligent indicia reader
JP3701654B2 (en) Code reading system
US20120284091A1 (en) Indicia reader with feedback of scanning throughput
CN104573605A (en) Control method for two-dimension codes
CN111988604A (en) Flare automatic checking system
EP1843345A2 (en) Removable cartridge identification system
JP4473109B2 (en) Drug discovery frozen storage container RFID tag batch reading and writing device
CN207611388U (en) A kind of identification device for test tube
CN114253857A (en) Detection method and device for wharf sweeping and computer readable medium
CN109522167B (en) Air detector product testing device and testing method
CN112560513A (en) NFC test system and method
CN101149786B (en) Barcode scanner with configurable video modes
JP2009031175A (en) Automatic analyzer
CN212990120U (en) Two-dimensional code recognition device test platform
JP2009134657A (en) Barcode reader
CN114358221A (en) Module placing method, product testing device, system and storage medium
JP2007156509A (en) Testing device for noncontact ic card

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22910064

Country of ref document: EP

Kind code of ref document: A1