CN114253857A - Detection method and device for wharf sweeping and computer readable medium - Google Patents

Detection method and device for wharf sweeping and computer readable medium Download PDF

Info

Publication number
CN114253857A
CN114253857A CN202111579446.0A CN202111579446A CN114253857A CN 114253857 A CN114253857 A CN 114253857A CN 202111579446 A CN202111579446 A CN 202111579446A CN 114253857 A CN114253857 A CN 114253857A
Authority
CN
China
Prior art keywords
test
pcba
module
wharf
tested
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111579446.0A
Other languages
Chinese (zh)
Inventor
刘敏
林喆
刘力豪
方梦宇
蔡晓桓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
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
Application filed by Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202111579446.0A priority Critical patent/CN114253857A/en
Publication of CN114253857A publication Critical patent/CN114253857A/en
Priority to PCT/CN2022/140645 priority patent/WO2023116752A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • 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
    • G01R31/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2834Automated test systems [ATE]; using microprocessors or computers
    • 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
    • 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
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a detection method and device for a wharf sweeping and a computer readable medium. The detection method comprises the following steps: judging whether to perform PCBA test and/or module test according to the complete test state flag bit of the wharf sweeping head, wherein the PCBA test comprises the following steps: acquiring a serial number and a firmware version number of a wharf sweeping head; if the serial number is successfully acquired and the firmware version number is correct, judging whether to start an automatic test; if the automatic test is started, automatically executing the PCBA test item in the test; the module test comprises the following steps: acquiring a serial number, a firmware version number and a PCBA test result of the wharf sweeping head; if the serial number is successfully acquired, the firmware version number is correct, and the PCBA test result is passed, judging whether to start the automatic test; if the automatic test is started, the module test item in the test is automatically executed.

Description

Detection method and device for wharf sweeping and computer readable medium
Technical Field
The invention mainly relates to an automatic detection method and device, in particular to a detection method and device for a wharf sweeping and a computer readable medium.
Background
With the increasing popularization of bar code scanning, more and more devices such as Pos machines, cash registers, counter cards, self-service cash register systems and the like support bar code scanning, and the number of tests related to the wharf scanning is increased, including a plurality of test items. At present, when the wharf sweeping is tested, each test needs to enter a separate interface, and after the test is completed, the test returns to the previous stage to start the next test. The interaction in such a mode is too much, and the operation process is tedious. For the tested wharf sweeping head, the corresponding test items need to be entered to check the test state of the wharf sweeping head, and the test steps are added. In addition, during production testing, the current testing and the code scanning testing are performed by manually judging the testing result, so that the automation degree is low. The problems lead to low detection efficiency of the wharf to be detected and poor quality control.
Disclosure of Invention
The invention provides a detection method for a wharf sweeping head, which aims to solve the problems and comprises the following steps: judging whether to perform PCBA test and/or module test according to a complete test state flag bit of the to-be-tested wharf sweeping head, wherein the complete test state flag bit is used for representing a test state of the to-be-tested wharf sweeping head, and the test state comprises a PCBA test state and a module test state, and the PCBA test comprises the following steps: step S11: acquiring a serial number and a firmware version number of the to-be-detected wharf sweeping head; step S12: if the serial number is successfully acquired and the firmware version number is correct, judging whether to start a PCBA automatic test; step S13: if the PCBA automatic test is started, automatically executing a PCBA test item in the PCBA test; step S14: recording a PCBA test result; the module test comprises the following steps: step S21: acquiring the serial number, the firmware version number and the PCBA test result of the to-be-tested wharf; step S22: if the serial number is successfully acquired, the firmware version number is correct, and the PCBA test result is passed, judging whether to start the automatic test of the module; step S23: if the module automatic test is started, automatically executing module test items in the module test; step S24: and recording the test result of the module.
In an embodiment of the present invention, before the step of determining whether to perform the PCBA test and/or the module test according to the complete test status flag of the dock broom to be tested, the method further includes: and acquiring the complete test state flag bit from the micro control unit of the wharf to be tested.
In an embodiment of the present invention, the complete test status flag bit comprises a multi-bit binary character including a first set of binary characters for representing the PCBA test status and a second set of binary characters for representing the module test status.
In an embodiment of the present invention, before the step S11 and before the step S21, the method further includes: writing the serial number and the firmware version number of the to-be-detected wharf sweeping head into a micro control unit; both of the step S11 and the step S21 include: reading the serial number and the firmware version number from the micro control unit.
In an embodiment of the present invention, the step S21 further includes: reading the PCBA test result from the micro-control unit.
In an embodiment of the invention, the PCBA test item and/or the module test item at least include a current test.
In an embodiment of the invention, the PCBA test item further includes one or any combination of a fill-in light raster lamp test and a code scanning test.
In an embodiment of the invention, the module test item further includes one or any combination of a light filling lamp grating lamp test, a code scanning test, a close-range test and a long-range test.
In an embodiment of the invention, in the PCBA test, when all of the PCBA test items pass the test, the PCBA test result is pass.
In an embodiment of the invention, in the module test, when all module test items pass the test, the module test result is pass.
In an embodiment of the present invention, after the PCBA test and/or the module test, a module verification is further included, where the module verification is used to determine whether a boundary aperture of a grating light of the to-be-tested wharf is located within a FOV of the camera of the to-be-tested wharf, and if so, the to-be-tested wharf passes the module verification.
In an embodiment of the present invention, the module verifying step includes: enabling the wharf to be detected to execute code scanning operation; and when the code scanning operation is executed, obtaining the boundary aperture and the center of alignment of the grating lamp of the wharf scanner to be detected, calculating the offset of the center of alignment, and judging whether the boundary aperture of the grating lamp of the wharf scanner to be detected is positioned in the FOV of the camera of the wharf scanner to be detected according to the offset.
In an embodiment of the invention, the to-be-tested wharf sweeping head includes one or any combination of a camera, a laser lamp and a light supplement lamp.
The invention also provides a detection device for sweeping the wharf, which comprises: a memory for storing instructions executable by the processor; and the processor is used for executing the instructions to realize the detection method of the wharf sweeping head.
The invention also provides a computer-readable medium having stored thereon a computer program code which, when executed by a processor, implements a method of detecting a wharf sweep as described above.
According to the detection method for the wharf sweeping head, the test state of the wharf sweeping head is obtained before testing, interface switching is avoided, and the operation flow is simplified; meanwhile, by setting two test modes of automatic test and manual test and by adopting a mode of combining automatic software judgment and manual judgment, the manual intervention in the test process is reduced, the test efficiency is improved, and the production efficiency and the detection quality of the wharf sweeping are improved.
Drawings
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below, wherein:
fig. 1 is a block diagram of a structure of a dock broom to be tested in the dock broom detection method according to an embodiment of the present invention;
FIG. 2 is an exemplary flow chart of a method for detecting a dock broom in accordance with one embodiment of the present invention;
FIG. 3 is an exemplary flow chart of a PCBA test in the detection method of the wharf-sweeping head according to an embodiment of the present invention;
FIG. 4 is an exemplary flow chart of a PCBA test in the detection method of the wharf-sweeping head according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a module testing method of the inspection method of the dock broom according to an embodiment of the present invention;
FIGS. 6A and 6B are exemplary flowcharts illustrating module testing in the inspection method of the dock broom according to one embodiment of the present invention;
FIGS. 7A and 7B are schematic diagrams illustrating module verification in the detection method of the wharf sweeping head according to an embodiment of the present invention;
fig. 8 is a system block diagram of a detection device of the wharf sweeping head according to an embodiment of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described herein, and thus the present invention is not limited to the specific embodiments disclosed below.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
It should be noted that the terms "first", "second", and the like are used to define the components, and are only used for convenience of distinguishing the corresponding components, and the terms have no special meanings unless otherwise stated, and therefore, the scope of protection of the present application is not to be construed as being limited. Further, although the terms used in the present application are selected from publicly known and used terms, some of the terms mentioned in the specification of the present application may be selected by the applicant at his or her discretion, the detailed meanings of which are described in relevant parts of the description herein. Further, it is required that the present application is understood not only by the actual terms used but also by the meaning of each term lying within.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, various steps may be processed in reverse order or simultaneously. Meanwhile, other operations are added to or removed from these processes.
In some embodiments of the present invention, the to-be-tested wharf broom comprises one or any combination of a camera, a grating light and a light supplement light.
Fig. 1 is a block diagram of a structure of a dock broom to be tested in the dock broom detection method according to an embodiment of the present invention. Referring to fig. 1, the to-be-tested wharf sweeping machine mainly includes a grating light 12, a camera 13, a light supplement light 14, and a wharf sweeping machine main board 11 for placing the hardware. The dock sweeping main board 11 includes an MCU chip. It is to be understood that the illustration in fig. 1 is merely an example and is not intended to limit the specific hardware included in the dock under test.
The test of the wharf sweeping can be divided into two stages of pcba (printed Circuit Board assembly) test and module test according to different production stages. Wherein, PCBA refers to the whole process of PCB blank board through SMT loading or through DIP plug-in components. The main hardware to be tested of the to-be-tested wharf comprises a grating lamp 12, a camera 13, a supplementary lighting lamp 14 and the like shown in fig. 1. For PCBA testing, hardware such as a camera 13, a grating light 12, and a fill light 14 may be attached to the dock-sweeping motherboard 11, as shown in fig. 1. Module testing is generally performed after the PCBA testing is completed, the dock sweeping motherboard 11, the grating lamp 12, the camera 13 and the light supplement lamp 14 shown in fig. 1 are packaged as a whole into complete dock sweeping hardware 10, and the complete dock sweeping hardware 10 is tested as a whole to examine the integrity of the dock to be tested when the dock is used.
The detection method of the wharf sweeping head comprises the following steps: and judging whether to perform PCBA test and/or module test according to the complete test state flag bit of the to-be-tested wharf, wherein the complete test state flag bit is used for indicating the test state of the to-be-tested wharf, and the test state comprises a PCBA test state and a module test state. In this embodiment, how to obtain the complete test status flag of the wharf to be tested is not limited. Whether the test item is tested or not can be checked by entering the test item of the wharf broom to be tested.
In some embodiments, before the step of determining whether to perform the PCBA test and/or the module test according to the complete test status flag of the dock under test, the method further includes: and acquiring a complete test state flag bit from a micro control unit of the wharf to be tested. Wherein a Micro Control Unit (MCU) may be included in the dock broom main board 11 as shown in fig. 1.
Fig. 2 is an exemplary flowchart illustrating a detection method of a wharf sweeping head according to an embodiment of the present invention. As shown in fig. 2, the detection method of this embodiment includes the steps of:
step S01: inserting the to-be-tested wharf sweeping head. Specifically, a dock-sweeping test fixture is used in a dock-sweeping test process, and the fixture comprises a test accompanying machine and various test environments. The accompany machine of examining connects the FPC line outward, and the pier of sweeping the quay that awaits measuring passes through the FPC line and is connected with accompany machine of examining. The pier finger to be tested is inserted in the step, and the pier to be tested is buckled on the FPC to be connected with the accompanying testing machine.
Step S02: and acquiring a complete test state zone bit. Namely, test results of the PCBA test and the module test are obtained. The invention does not limit how to obtain the complete test state zone bit.
Step S03: and judging whether the wharf to be tested is tested or not. If yes, go to step S05; if not, the process goes to step S04.
In some embodiments of the present invention, when the dock under test is connected to the test-accompanying machine, a complete test status flag bit is obtained from a Micro Control Unit (MCU) through program setting, and the complete test status flag bit comprises a multi-bit binary character including a first set of binary characters for representing the test status of the PCBA and a second set of binary characters for representing the test status of the module.
To further illustrate the complete test status flag of the present invention, a specific example is given here: the full test status flag bit may be a 16-bit binary character as follows: 1111000011110000, respectively; the first eight characters are the first set of binary characters representing the test results of the PCBA, and the second eight characters are the second set of binary characters representing the test results of the module. The binary word "1" may indicate that the result of a particular test for an item is successful, and a "0" indicates a failure or untested. The test states of the PCBA test and the module test can be checked through the zone bits, and therefore the next step is determined according to the test result. Exemplarily, the PCBA test includes a current test, a code scanning test and a fill-in lamp test, in the first set of binary characters, a first digit counted from left represents a current test result, a second digit represents a code scanning test result, a third digit represents a fill-in lamp test, and if the current test, the code scanning test and the fill-in lamp test of the dock to be tested are successful, the first set of binary characters is: 10100000. according to convention, the condition of each test item in the wharf swept area to be tested can be obtained by reading the complete test state flag bit.
Step S03 may obtain all PCBA tests and module tests of the wharf under test according to the complete test status flag. For example, a specific flag bit may be set in the complete test status flag bit to indicate whether a certain test item has been tested. Or it may be determined whether one of the plurality of test items has been tested. Continuing the above example, for example, it is determined whether a "1" is present in the first set of binary characters tested by the PCBA and whether a "1" is present in the second set of binary characters tested by the module. If there is at least one "1", it is indicated as tested.
Step S04: a green background is displayed. If it is determined in step S03 that the dock broom to be tested has not been tested, a green background is displayed to indicate that the dock broom needs to be tested.
Step S05: and judging whether the test is successful. If it is determined in step S03 that the dock broom to be tested has been tested, the test result is further determined. If yes, go to step S07; if not, the process goes to step S06. Step S05 can be used to determine whether all test items were tested successfully or whether a particular test item was tested successfully.
Step S06: a red background is displayed. If the step S05 determines that the dock broom to be tested does not pass the test, a red background is displayed. Indicating that the wharf under test needs to be tested.
Step S07: a greenish background is displayed. If the step S05 determines that the dock broom to be tested passes the test, a blue-green background is displayed. The dock of the meter to be tested passes the test and does not need to carry out subsequent tests.
Through the steps, the test state of the wharf sweeper to be tested can be known before testing, the test state can be known without entering a complete test program, and in the subsequent steps, the test can be performed only on the untested and untested test items, so that the production efficiency of the wharf sweeper is improved.
In other embodiments, the steps S03 and S05 may be combined into the same step, and according to these embodiments, three different background colors may be given by the result of one judgment.
And judging the wharfs to be tested which need to be tested through the steps, and then testing the wharfs to be tested.
Fig. 3 is an exemplary flowchart of PCBA testing in the detection method of the wharf sweeping terminal according to an embodiment of the present invention. As shown in fig. 3, the PCBA test in this embodiment includes the following steps:
step S11: and acquiring the serial number (SN number) and the firmware version number of the wharf to be detected. And the SN number is a unique identifier of each wharf, and is written into the MCU according to a set rule before testing. The firmware version number is the firmware version information imported by current batch production, and the firmware version is written into the MCU before testing.
Step S12: if the serial number is successfully acquired and the firmware version number is correct, whether to start the PCBA automatic test is judged.
In some embodiments of the invention, when performing PCBA testing, it is necessary to ensure that the correct SN number has been written into the dock-sweeping MCU chip and that the firmware version that the test passed is flushed. The SN number and firmware version number may be read from the MCU. The successful acquisition of the serial number in step S12 means that an SN number is read and is legitimate. If the SN number cannot be read from the MCU or is illegal, the serial number is not successfully acquired.
In some embodiments, the SN number to be read is written according to a specific rule, and if the SN number cannot be read according to the specific rule, it indicates that no SN number or an SN number error is written in the MCU. If no SN number is written, the SN number read will be empty or a default specific character.
After step S12, if the serial number is not successfully obtained or the firmware version number is incorrect, a prompt box is popped up in the software interface for testing, and the testing is not allowed.
Step S13: and if the PCBA automatic test is started, automatically executing the PCBA test item in the PCBA test.
In an embodiment of the present invention, the automatic test is started through a software interface, then each test item is tested according to a set sequence, and a test result of each test item is determined, if a certain test item passes, a next test item is automatically executed, and if a certain test item fails, the test is stopped, and the test item is recorded. Correspondingly, if the automatic test is not started, the test items to be performed are manually controlled by clicking the corresponding test items on the software interface by adopting a manual test method.
Step S14: the PCBA test results were recorded.
In some embodiments, the test result for the PCBA is recorded in a flag bit of the full test status flag bit that corresponds to the PCBA test.
In some embodiments, the PCBA test item and/or the module test item include at least a current test.
In some embodiments, the PCBA test item further comprises one or a combination of any of a fill-in light raster light test and a scan code test.
To further illustrate the PCBA test of the present invention, a specific example is given herein. Fig. 4 is an exemplary flowchart of PCBA testing in the detection method of the wharf sweeping terminal according to an embodiment of the present invention, where the embodiment includes the following steps:
step S110: the SN number and the firmware version number are obtained. And judging the next step to be executed according to the acquired SN number and the firmware version number, if the acquired SN number and the firmware version number are both correct, executing the step S112, otherwise, executing the step S111, namely, ending the test.
Step S112: and judging whether to automatically test. In this embodiment, the PCBA test may be performed automatically or manually through a software interface selection. If the automatic test is started, go to step S113; otherwise, the process goes to step S120.
Step S113: and carrying out 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 may be set, and in the embodiment shown in fig. 4, the test items include: the method comprises three items of current testing, light supplementing lamp grating lamp testing and code scanning testing. The sequence of the test items can be adjusted according to the requirement, and preferably, the test sequence is as follows: current test, light filling lamp grating lamp test and code scanning test. Thus, if the current test is not passed, the hardware is not passed, and the next test is not needed; after the current test passes, whether the conditions such as cold solder exist between hardware is judged through the test of the light filling lamp grating lamp, and the code scanning test is only carried out when the two items pass the test.
Step S114: and judging whether the current test is successful. If the current test fails, go to step S128: the test is stopped, and then step S129 is executed: recording the test failure; if the test is successful, step S115 is executed.
Step S115: and testing the light supplementing lamp grating lamp.
Step S116: and judging whether the test of the light supplementing lamp grating lamp is successful or not. If the light supplement lamp grating lamp test fails, go to step S128: the test is stopped, and then step S129 is executed: recording the test failure; if the test is successful, step S117 is executed.
Step S117: and carrying out code scanning test.
Step S118: and judging whether the code scanning test is successful. If the code scanning test fails, go to step S128: the test is stopped, and then step S129 is executed: the test failure was recorded. If the code scanning test is successful, step S119 is executed.
Step S119: the success of the test is recorded. And if the to-be-tested wharf sweeping passes the current test, the light supplementing lamp grating lamp test and the code sweeping test, recording that the test is successful, namely the to-be-tested wharf sweeping passes all PCBA tests.
Step 120: and (5) manually testing. If the automatic test is not started in step S112, the manual test is performed by default. Specifically, the test item may be selected by manually clicking on the software interface manually at step S120. In the embodiment shown in FIG. 4, the listing of test items includes: current testing, light filling lamp grating lamp testing and code scanning testing. If the current test is selected, go to step S121; if the light supplement lamp grating lamp test is selected, executing step S122; if the code scanning test is selected, step S123 is executed.
Step S121: and carrying out a current test.
Step S122: and testing the light supplementing lamp grating lamp.
Step S123: and carrying out code scanning test.
Step S124: after the current test is performed, whether the current test is successful or not is judged in the step, and the test result is recorded.
Step S125: after the light supplementing lamp grating lamp test is carried out, whether the light supplementing lamp grating lamp test is successful or not is judged in the step, and a test result is recorded.
Step S126: after the code scanning test is performed, whether the code scanning test is successful or not is judged in the step, and a test result is recorded.
Step S127: and judging whether all the test items of the manual test are successful. If all the test items are successful, judging that the test is passed, and executing step 119 to record that the test is successful; otherwise, the test is determined to be failed, and step S129 is executed.
In some embodiments, the determination results of steps S124, S125 and S126 are directly sent to step S127, and the determination result of step S127 is no as long as one of the results is failure. In the case of the manual test, it is determined whether all PCBA test items have been executed in step S127, based on the number of determination results received. For example, if the number of PCBA test items is set to 3, in step S127, if 3 test results are received, which indicates that all test items have been manually clicked, it can be determined whether all test items are successful.
Step S128: the test was stopped.
Step S129: the test failure was recorded.
In some embodiments, the success of the logging test of step S119 and the failure of the logging test of step S129 are recorded in the flag corresponding to the PCBA test item in the full test status flag of the dock under test.
According to the embodiment shown in FIG. 4, a PCBA test is considered to have failed whenever the test result of one of the tests is a failure, regardless of the number of test items included in the PCBA test. When all the PCBA test items pass the test, the PCBA test result is passed.
According to the embodiment shown in fig. 4, manual intervention in the testing process is reduced by setting the automatic testing mode; by setting a test mode of manual test, more convenient choices are provided for the wharf sweeping test, and a plurality of test items can be manually and selectively tested; automatic testing and manual testing are combined, and the testing efficiency of the wharf sweeping is improved.
Fig. 5 is an exemplary flowchart of a module test in the detection method of the wharf sweeping head according to an embodiment of the present invention. As shown in fig. 5, the module test in this embodiment includes the following steps:
step S21: and acquiring the serial number and the firmware version number of the to-be-tested wharf and acquiring a PCBA test result. The specific contents of the serial number and the firmware version number of the dock to be scanned are obtained in the same step S11, which is not described herein again.
Step S22: if the serial number is successfully acquired, the firmware version number is correct, and the PCBA test result is passed, whether to start the automatic module test is judged. Step S22 is different from step S12 in that: the step requires that the wharf to be tested passes the PCBA test, and if the wharf to be tested does not pass the PCBA test, the module test is not carried out; in addition, the step judges that: the opening module automatically tests. The same parts as those of step S12 will not be described herein again.
Step S23: if the automatic module test is started, the module test items in the module test are automatically executed.
In some embodiments, the modular test items include at least a current test.
In some embodiments, the module test items further include one or any combination of a fill-in light grating light test, a code scanning test, a close-up test and a long-range test.
Similarly to step S13, step S23 may be controlled by the same software interface as in step S13.
Step S24: and recording the test result of the module.
To further illustrate the modular testing of the present invention, a specific embodiment is presented. Fig. 6A and 6B are exemplary flowcharts illustrating module testing in the detection method of the wharf sweeping according to an embodiment of the present invention. It should be noted that, in the process of module testing, before step S210 shown in fig. 6A, it is necessary to determine whether the dock under test passes the PCBA test, and if the dock under test does not pass the PCBA test, the module testing process is not performed, but the test is ended.
Fig. 6A and 6B are used together to describe the overall process of the module test of the embodiment, where the test items of the module test include a current test, a fill-in light grating lamp test, a code scanning test, a close-range test, and a long-range test.
Referring to fig. 6A, the module test of this embodiment includes the following steps:
step S210: acquiring an SN number, a firmware version number and a PCBA test flag bit, and turning to execute step S212 when the SN number and the firmware version number are correct and the PCBA test flag bit in the complete test state flag bit of the to-be-tested wharf is used for judging that the to-be-tested wharf passes the PCBA test; otherwise, the process goes to step S211.
It should be noted that, if one of the three determination items, i.e., whether the SN number is correct, whether the firmware version number is correct, and whether the PCBA test flag is successful, is negative, the determination result in step S210 is negative.
Step S211: and ending the module test.
Step S212: and judging whether to start the automatic test. This step is similar to step S112, except that the test to be performed is a die set test, not a PCBA test. The specific steps are not explained. If yes, go to step S214; if not, go to step S213.
Step S213: and when the automatic test is not started, executing a manual test on the software interface, and manually clicking each test item in the module test. A specific flow of manual testing is illustrated in fig. 6B.
Step S214: and carrying out a current test.
Step S215: and judging whether the current test is successful. If yes, go to step S216; if not, go to step S230.
Step S216: and testing the light supplementing lamp grating lamp.
Step S217: and judging whether the test of the light supplementing lamp grating lamp is successful or not. If yes, go to step S218; if not, go to step S230.
Step S218: and carrying out code scanning test.
Step S219: and judging whether the code scanning test is successful. If yes, go to step S220; if not, go to step S230.
Step S220: and (5) performing a close-range test.
Step S221: and judging whether the close shot test is successful. If yes, go to step S222; if not, go to step S230.
Step S222: and (5) performing a long-range test.
Step S223: and judging whether the long-range test is successful. If yes, go to step S224; if not, go to step S230.
Step S224: and (5) carrying out module verification.
Step S225: automatically judging whether the module verification is successful. If yes, go to step S226; if not, go to step S230.
Step S226: and manually judging whether the module verification is successful or not. If yes, go to step S227; if not, go to step S230.
Step S230: the test was stopped.
Step S231: the test failure was recorded.
It should be noted that, in the automatic test flow shown in fig. 6A, the order of the test items is defined as follows: the method comprises the following steps of current testing, light supplementing lamp grating lamp testing, code scanning testing, close shot testing, long shot testing and module verification.
Referring to fig. 6B, after step S213 in fig. 6A, the following steps are further included:
step S240: and carrying out a current test.
Step S241: and (5) performing a long-range test.
In fig. 6A, other tests included in the module test of this embodiment, which are a fill-in light grating lamp test, a code scanning test, and a close-range test, are omitted between the modules of step S240 and step S241.
Step S242: and judging whether the current test is successful.
Step S243: and judging whether the long-range test is successful.
In fig. 6A, the determination blocks for determining whether the fill-in lamp raster lamp test, the code scanning test, and the close-range test are successful are omitted between the modules in step S242 and step S243.
After the judgment of steps S242 to S243 is finished, the judgment result is recorded and used for the judgment of step S244.
Step S244: and judging whether all the operations are successful. When all the module test items are successful, the process goes to step S227. Step S227 is the same step as in fig. 6A, and therefore the same reference numerals are used.
If one of all the module test items fails or is unsuccessful, the result of step S244 is no, and the process goes to step S230.
Step S230 and step S231 in fig. 6B are the same steps as step S230 and step S231 in fig. 6A, respectively, and therefore the same reference numerals are used.
Step S251: and (5) carrying out module verification.
To perform this step, a corresponding option is provided on the software interface to select the module verification. By selecting this option, a module verification can be performed. The module verification is the same as the module verification of step S224 in fig. 6A, and will be described in detail later.
Step S252: automatically judging whether the module verification is successful. If yes, go to step S253; if not, go to step S230.
Step S253: and manually judging whether the module verification is successful or not. If yes, go to step S227; if not, go to step S230.
It is understood that, in the manual testing process shown in fig. 6B, the sequence of the test items is not limited.
Fig. 6A and 6B together illustrate one embodiment of a complete detection method. In some embodiments, steps related to module verification, i.e., steps S224, 225, 226, 251, 252, 253, may not be included. In some embodiments, the steps S226 and S253 of manually determining whether the module verification is successful may not be included in the step of module verification.
According to the embodiment of fig. 6A and 6B, the to-be-tested wharf is subjected to the complete test of the PCBA test and the module test, and the obtained test result can be recorded in the complete test status flag of the to-be-tested wharf as the test result of the to-be-tested wharf.
The steps associated with the module verification in fig. 6A and 6B are described below.
In some embodiments of the present invention, after the PCBA test and/or the module test, module verification is also included. And the module verification is used for judging whether the boundary aperture of the grating lamp of the wharf broom to be detected is positioned in the FOV of the camera of the wharf broom to be detected, and if so, the wharf broom to be detected passes the module verification. Specifically, the module verification comprises the following steps: firstly, a to-be-detected wharf scanning operation is executed; specifically, the code scanning operation is executed by enabling the to-be-detected wharf scanning head to face a white background, and a certain preset distance is reserved between the to-be-detected wharf scanning head and the white background; then, when the code scanning operation is executed, the boundary aperture and the center of the grating lamp of the wharf scanner to be detected are obtained, the offset of the center of the scanner to be detected scanner is judged whether the center of the center.
Fig. 7A and 7B are schematic diagrams illustrating a principle of module verification in the detection method according to an embodiment of the invention. Referring to fig. 7A, in performing the module verification, the loading bay to be tested is positioned at a distance of about 15cm from the scan plane 70. The scan plane 70 may be a white background. The scanning operation is performed even if the camera and the raster lamp are simultaneously operated. Referring to FIG. 7B, the camera defines a FOV (field of view) field angle 71 in the scan plane 70 as shown by the outer frame, and the raster lights define a boundary aperture 72 and centroid 73 in the scan plane 70 as shown by the inner frame. In this embodiment, the isocenter 73 is a cross isocenter. In other embodiments, the isocenter 73 may be other shapes.
In the fixed position, the FOV field angle 71 of the camera is fixed, the boundary aperture 72 of the grating lamp is fixed, after the wharf to be detected is imaged, the FOV field angle 71 can be directly used as the size of an imaged picture, and meanwhile, the position of the collimation center 73 in the imaged picture is calculated according to an algorithm, so that whether the boundary aperture 72 of the grating lamp is positioned outside the imaged picture can be calculated. For example, parameters such as the upper margin, the lower margin, the left margin, and the right margin of the boundary aperture 72 from the FOV angle 71 can be calculated.
In some embodiments, the camera of the dock broom to be tested is a camera module. When the camera module of the wharf to be detected and the grating lamp are installed qualified, the boundary apertures 72 are all positioned in the FOV field angle 71; when the camera module and the stop lamp of the dock to be inspected are not properly installed, the boundary aperture 72 may be located outside the FOV angle 71. Through module verification, the abnormal problem of the wharf sweeping assembly to be detected can be detected.
In conjunction with fig. 7A and 7B, the steps S226, S253 of the manual judgment in fig. 6A and 6B include: after the automatic judgment is finished, the FOV image and the grating lamp image are displayed together for the retesting of testers.
In the embodiment shown in fig. 6A and 6B, after the module verification is performed, it is automatically determined whether the module verification is successful according to the algorithm, and manual determination is performed based on the result of the automatic determination, so as to ensure the accuracy of the module verification result.
The invention also provides a detection device for sweeping the wharf, comprising: a memory for storing instructions executable by the processor; and the processor is used for executing instructions to realize the detection method of the wharf sweeping head in the foregoing.
Fig. 8 is a system block diagram of a detection device of the wharf sweeping head according to an embodiment of the invention. Referring to fig. 8, the detection device 800 may include an internal communication bus 801, a processor 802, a Read Only Memory (ROM)803, a Random Access Memory (RAM)804, and a communication port 805. When used on a personal computer, the detection apparatus 800 may also include a hard disk 806. The internal communication bus 801 may enable data communication among the components of the sensing device 800. The processor 802 may make the determination and issue the prompt. In some embodiments, the processor 802 may be comprised of one or more processors. The communication port 805 can enable data communication of the detection apparatus 800 with the outside. In some embodiments, the detection device 800 may send and receive information and data from a network through the communication port 805. The detection apparatus 800 may also comprise various forms of program storage units and data storage units, such as a hard disk 806, a Read Only Memory (ROM)803 and a Random Access Memory (RAM)804, capable of storing various data files for computer processing and/or communication, as well as possible program instructions for execution by the processor 802. The processor executes these instructions to implement the main parts of the method. The results processed by the processor are communicated to the user device through the communication port and displayed on the user interface.
The processing method can be implemented as a computer program, stored in the hard disk 806, and loaded into the processor 802 to be executed, so as to implement the detection method of the present application.
The invention also comprises a computer-readable medium having stored thereon a computer program code which, when executed by a processor, implements the method of detecting a wharf swipe as described above.
The detection method of the wharf sweeping head can be stored in a computer readable storage medium as a product when the detection method is implemented as a computer program. For example, computer-readable storage media can include but are not limited to magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD)), smart cards, and flash memory devices (e.g., electrically Erasable Programmable Read Only Memory (EPROM), card, stick, key drive). In addition, 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" can include, without being 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.
It should be understood that the above-described embodiments are illustrative only. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processor may be implemented within 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 (FPGAs), processors, controllers, micro-controllers, microprocessors, and/or other electronic units designed to perform the functions described herein, or a combination thereof.
Aspects of the present application may be embodied entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" unit, "" component, "or" system. The processor may 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, controllers, microcontrollers, microprocessors, or a combination thereof. Furthermore, aspects of the present application may be represented as a computer product, including computer readable program code, embodied in 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 strips … …), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD) … …), smart cards, and flash memory devices (e.g., card, stick, key drive … …).
The computer readable medium may comprise a propagated data signal with the computer program code embodied therein, for example, on a baseband or as part of a carrier wave. The propagated signal may take any of a variety of forms, including electromagnetic, optical, and the like, or any suitable combination. The computer readable medium can be any computer readable medium that can communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or device. Program code on a computer readable medium may be propagated over any suitable medium, including radio, electrical cable, fiber optic cable, radio frequency signals, or the like, or any combination of the preceding.
Having thus described the basic concept, it will be apparent to those skilled in the art that the foregoing disclosure is by way of example only, and is not intended to limit the present application. Various modifications, improvements and adaptations to the present application may occur to those skilled in the art, although not explicitly described herein. Such modifications, improvements and adaptations are proposed in the present application and thus fall within the spirit and scope of the exemplary embodiments of the present application.
Also, this application uses specific language to describe embodiments of the application. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the present application is included in at least one embodiment of the present application. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the present application may be combined as appropriate.
Numerals describing the number of components, attributes, etc. are used in some embodiments, it being understood that such numerals used in the description of the embodiments are modified in some instances by the use of the modifier "about", "approximately" or "substantially". Unless otherwise indicated, "about", "approximately" or "substantially" indicates that the number allows a variation of ± 20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximations that may vary depending upon the desired properties of the individual embodiments. In some embodiments, the numerical parameter should take into account the specified significant digits and employ a general digit preserving approach. Notwithstanding that the numerical ranges and parameters setting forth the broad scope of the range are approximations, in the specific examples, such numerical values are set forth as precisely as possible within the scope of the application.

Claims (14)

1. A detection method for a wharf sweeping head comprises the following steps:
judging whether to perform PCBA test and/or module test according to a complete test state flag bit of the to-be-tested wharf sweeping head, wherein the complete test state flag bit is used for representing a test state of the to-be-tested wharf sweeping head, and the test state comprises a PCBA test state and a module test state, and the PCBA test comprises the following steps:
step S11: acquiring a serial number and a firmware version number of the to-be-detected wharf sweeping head;
step S12: if the serial number is successfully acquired and the firmware version number is correct, judging whether to start a PCBA automatic test;
step S13: if the PCBA automatic test is started, automatically executing a PCBA test item in the PCBA test;
step S14: recording a PCBA test result;
the module test comprises the following steps:
step S21: acquiring the serial number, the firmware version number and the PCBA test result of the to-be-tested wharf;
step S22: if the serial number is successfully acquired, the firmware version number is correct, and the PCBA test result is passed, judging whether to start the automatic test of the module;
step S23: if the module automatic test is started, automatically executing module test items in the module test;
step S24: and recording the test result of the module.
2. The method of claim 1, wherein before the step of determining whether to perform the PCBA test and/or the module test according to the flag bit of the full test status of the dock under test, the method further comprises: and acquiring the complete test state flag bit from the micro control unit of the wharf to be tested.
3. The method of claim 2, wherein said full test status flag bits comprise a multi-bit binary character including a first set of binary characters for indicating said PCBA test status and a second set of binary characters for indicating said module test status.
4. The detection method according to claim 1, wherein before the step S11 and before the step S21, further comprising: writing the serial number and the firmware version number of the to-be-detected wharf sweeping head into a micro control unit; both of the step S11 and the step S21 include: reading the serial number and the firmware version number from the micro control unit.
5. The detecting method according to claim 4, wherein the step S21 further includes: reading the PCBA test result from the micro-control unit.
6. The method of claim 1, wherein the PCBA test item and/or the die set test item comprises at least a current test.
7. The detection method as claimed in claim 6, wherein the PCBA test item further comprises one or any combination of a fill-in light raster lamp test and a code scanning test.
8. The detection method as claimed in claim 6, wherein the module test items further include one or any combination of a fill-in light raster light test, a code scanning test, a close-up test and a long-range test.
9. The test method according to claim 1, wherein in the PCBA test, when all of the PCBA test items pass the test, the PCBA test result is a pass; in the module test, when all the module test items pass the test, the module test result is pass.
10. The inspection method according to claim 1, further comprising a module verification for determining whether a boundary aperture of a grating light of the dock under test is located within a camera FOV of the dock under test after the PCBA test and/or the module test, wherein if the boundary aperture is located within the camera FOV, the dock under test passes the module verification.
11. The inspection method of claim 10, wherein the step of module verification comprises:
enabling the wharf to be detected to execute code scanning operation;
and when the code scanning operation is executed, obtaining the boundary aperture and the center of alignment of the grating lamp of the wharf scanner to be detected, calculating the offset of the center of alignment, and judging whether the boundary aperture of the grating lamp of the wharf scanner to be detected is positioned in the FOV of the camera of the wharf scanner to be detected according to the offset.
12. The detection method as claimed in claim 1, wherein the to-be-detected wharf includes one or any combination of a camera, a grating light and a supplementary light.
13. A dock-sweeping detection apparatus comprising:
a memory for storing instructions executable by the processor;
a processor for executing the instructions to implement the method of any one of claims 1-12.
14. A computer-readable medium having stored thereon computer program code which, when executed by a processor, implements the method of any of claims 1-12.
CN202111579446.0A 2021-12-22 2021-12-22 Detection method and device for wharf sweeping and computer readable medium Pending CN114253857A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111579446.0A CN114253857A (en) 2021-12-22 2021-12-22 Detection method and device for wharf sweeping and computer readable medium
PCT/CN2022/140645 WO2023116752A1 (en) 2021-12-22 2022-12-21 Test method and test apparatus for code scanner head

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114253857A true CN114253857A (en) 2022-03-29

Family

ID=80794212

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114253857A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116752A1 (en) * 2021-12-22 2023-06-29 上海商米科技集团股份有限公司 Test method and test apparatus for code scanner head

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116752A1 (en) * 2021-12-22 2023-06-29 上海商米科技集团股份有限公司 Test method and test apparatus for code scanner head

Similar Documents

Publication Publication Date Title
US20050182535A1 (en) Device and method for identifying a specific communication protocol used in an on-board diagnostic tool
CN112580734B (en) Target detection model training method, system, terminal equipment and storage medium
CN114253857A (en) Detection method and device for wharf sweeping and computer readable medium
CN112836530B (en) Detection method, device, equipment and medium of scanning gun
US20050015213A1 (en) Method and apparatus for testing an electronic device
WO2023116752A1 (en) Test method and test apparatus for code scanner head
JP2022051722A (en) Margin tester and margin testing method
CN111142889B (en) eMMC automatic volume production method, device, storage medium and electronic equipment
CN116973729A (en) Board card testing method, testing jig, testing equipment and medium
CN115564776B (en) Abnormal cell sample detection method and device based on machine learning
JP4902419B2 (en) Analysis apparatus and analysis method
CN110267231A (en) It is a kind of based on the parking stall recognition methods of bluetooth RSSI, apparatus and system
US7434128B2 (en) Systems and methods for identifying system links
CN113918370A (en) Category determination method and device, electronic equipment and storage medium
CN113537253A (en) Infrared image target detection method and device, computing equipment and storage medium
CN114283876A (en) DDR signal quality test method, test device and test equipment
CN111504608B (en) Brightness uniformity detection system and brightness uniformity detection method
CN101452412A (en) Optical drive read-write function test method based on linux
CN111858210A (en) WWAN test equipment
CN113758721B (en) Unlocking effect test method, device, storage medium and equipment
CN110108448A (en) A kind of defect automatic testing method of dynamic logo
JP2006071373A (en) Diagnosis method of image processing circuit, particle image analyzer and computer program
CN109388564A (en) A kind of test method, device and electronic equipment
CN116558777B (en) Optical fiber conductivity test method and system
CN113758721A (en) Unlocking effect test method and device, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination