Product testing method and device and storage medium
By introducing virtual barcodes into the automated test system and establishing a communication connection between the upper and lower computers, the problem of confusion in binding between the test results and the barcode is solved, and higher accuracy of test results and resource utilization efficiency are achieved.
Patent Information
- Application Number
- CN202510072781.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2045-01-17
AI Technical Summary
During the automated testing process, the test results and test data of the product need to be bound to the barcode of the product to mark good and inferior products, but there may be confusion in the binding of the test results and barcodes, which will affect the testing of reading the product Accuracy of the results.
By establishing a communication connection between the upper and lower computers, a virtual barcode is generated to uniquely identify the product under test, and the test information, test results are bound and stored with real barcodes and virtual barcodes to ensure the accurate binding of test results and barcodes. Certainly.
Through the use of virtual barcodes, resource waste and storage errors caused by inconsistent barcode information are avoided, and the accuracy and reliability of test results are improved.
Smart Images

Figure CN119494355A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to testing technology, barcode management technology, and in particular to a product testing method, equipment and storage medium. Background Art
[0002] During the automated testing process, the product test results and test data must be bound to the product barcode in order to mark good and bad products. This enables full product tracking and management to ensure subsequent traceability.
[0003] In the related art, the product carries barcode information. During the automated testing process, the host computer controls the barcode reader to read the product's barcode information to obtain the product barcode, and identifies the product's test results based on the product barcode. However, in this way, there is no interaction between the host computer and the slave computer used to test the product, and there may be confusion in the binding of the test results and the barcode, which affects the accuracy of the test results of reading the product. Summary of the invention
[0004] The embodiments of the present disclosure provide a product testing method, device and storage medium to solve the above technical problems to a certain extent.
[0005] In one aspect of an embodiment of the present disclosure, a product testing method is provided, the method being used in a host computer, the host computer establishing a communication connection with a slave computer, the method comprising: In response to receiving a loading signal of the tested product sent by the lower computer, obtaining a first real barcode of the tested product, and generating a virtual barcode in a preset format for the tested product, wherein the virtual barcode is used to uniquely identify the tested product; Sending an inbound test signal including the virtual barcode to the lower computer, so that the lower computer monitors and records the inbound test process of the tested product based on the virtual barcode to obtain test information; Based on the virtual barcode, obtaining test information of the tested product from the lower computer, and binding and storing the test information, the test result corresponding to the test information and the barcode information of the tested product, wherein the barcode information includes the first real barcode and the virtual barcode; In response to receiving a material unloading signal of the tested product sent by the lower computer, based on the second real barcode of the tested product, a test result bound to the second real barcode is obtained, and based on the test result, the lower computer is controlled to unload the tested product.
[0006] Another aspect of the embodiments of the present disclosure provides a product testing device, the device comprising an upper computer and a lower computer, wherein the upper computer and the lower computer have a communication connection; The upper computer is used to obtain a first real barcode of the tested product in response to receiving a loading signal of the tested product sent by the lower computer, and generate a virtual barcode that conforms to a preset format for the tested product, wherein the virtual barcode is used to uniquely identify the tested product; send an inbound test signal including the virtual barcode to the lower computer; based on the virtual barcode, obtain test information of the tested product from the lower computer, and bind and store the test information and the test result corresponding to the test information with the barcode information of the tested product, wherein the barcode information includes the first real barcode and the virtual barcode; in response to receiving a unloading signal of the tested product sent by the lower computer, obtain the test result bound to the second real barcode of the tested product based on the second real barcode of the tested product, and send an unloading instruction to the lower computer to unload the tested product based on the test result; The lower computer is used to send a loading signal of the tested product to the upper computer when the loading of the tested product is detected; control the inbound test of the tested product in response to the inbound test signal including the virtual barcode sent by the upper computer, and monitor and record the inbound test process of the tested product based on the virtual barcode to obtain test information; and control the unloading of the tested product in response to the unloading instruction sent by the upper computer.
[0007] Another aspect of the embodiments of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the product testing method described in any of the above embodiments is implemented.
[0008] Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the product testing method described in any of the above embodiments is implemented.
[0009] Another aspect of the embodiments of the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the product testing method described in any of the above embodiments is implemented.
[0010] In the disclosed embodiment, after the upper computer receives the loading signal of the product under test sent by the lower computer, it obtains the first real barcode of the product under test, generates a corresponding virtual barcode for the product under test, and sends the virtual barcode to the lower computer, so that the lower computer can record the inbound test process of the product under test based on the virtual barcode, and the upper computer can obtain the test information of the product under test from the lower computer based on the virtual barcode, and can monitor the test process of the product under test in real time. The upper computer and the lower computer interact with each other through the virtual barcode. The virtual barcode is a barcode that conforms to a preset format, which can unify the barcode formats of various products used by the lower computer, and the lower computer can use a unified memory size to store the virtual barcodes of various products, thereby avoiding waste of resources or barcode storage errors caused by inconsistent barcode information.
[0011] In addition, the upper computer can bind the first real barcode of the tested product with the virtual barcode to obtain the barcode information of the tested product, and establish a mapping relationship between the real barcode and the virtual barcode of the product. After the upper computer obtains the test information of the tested product, the test information and the corresponding test results are bound to the barcode information of the tested product. When the upper computer receives the unloading signal of the tested product sent by the lower computer, the second real barcode of the tested product is obtained, and the corresponding test result is queried based on the second real barcode. By binding the real barcode with the virtual barcode, the situation where the upper computer and the lower computer exchange information unequally and the test results are confused can be avoided, which helps to improve the accuracy of obtaining the test results.
[0012] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0014] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which: Figure 1 is a structural schematic diagram of a product testing device provided by an exemplary embodiment of the present disclosure; Figure 2 is a flow chart of a product testing method provided by an exemplary embodiment of the present disclosure; Figure 3 is a structural schematic diagram of a product testing device provided by another exemplary embodiment of the present disclosure; Figure 4 is a flowchart of a process for obtaining a first real barcode provided by an exemplary embodiment of the present disclosure; Figure 5 is a flowchart of a product entry process provided by an exemplary embodiment of the present disclosure; Figure 6is a flowchart of a product testing process provided by an exemplary embodiment of the present disclosure; Figure 7 is a flow chart of a product testing method provided by another exemplary embodiment of the present disclosure; Figure 8 is a structural schematic diagram of a product testing device provided by an exemplary embodiment of the present disclosure; Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0015] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0016] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0017] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0018] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0019] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0020] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0021] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0022] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0023] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0024] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0025] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0026] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0027] like Figure 1 , which shows a schematic diagram of the structure of a product testing device provided by an exemplary embodiment of the present disclosure. The product testing device includes an upper computer 11 and a lower computer 12, and a communication connection is established between the upper computer 11 and the lower computer 12.
[0028] The upper computer 11 is used to control the lower computer 12 to execute the product testing process. The tested product can be an electronic product, such as an electronic device, a chip, a wafer, etc. The product testing process includes a product entry process, a product testing process, and a product exit process. The product entry process refers to the process of moving the tested product in the loading area to the test station, the product testing process refers to the process of testing the tested product on the test station, and the product exit process is the process of moving the tested product to the corresponding classification area.
[0029] Optionally, the lower computer 12 includes a control unit and a test unit. The control unit is used to interact and transmit signals with the upper computer 11. Optionally, the control unit can receive control signals sent by the upper computer 11, and control the test unit to execute the entry, test and exit processes of the product under test based on the control signals.
[0030] During the product testing process, the product needs to be identified by a barcode. The upper computer 11 and the lower computer 12 can identify the test information in the product testing process based on the product's barcode. In a possible implementation, the upper computer 11 can generate a virtual barcode for a product under test, and the upper computer 11 and the lower computer 12 exchange test information of the product under test based on the virtual barcode. The upper computer 11 can also establish a mapping relationship between the real barcode and the virtual barcode of the product under test, and determine the product corresponding to the test information identified by the virtual barcode through the real barcode, so as to avoid confusion and inequality in the exchange of barcode information between the upper computer 11 and the lower computer 12.
[0031] In an exemplary embodiment, the lower computer 12 is used to send a loading signal of the tested product to the upper computer when the loading of the tested product is detected. The upper computer 11 is used to obtain the first real barcode of the tested product in response to receiving the loading signal of the tested product sent by the lower computer, and generate a virtual barcode that conforms to a preset format for the tested product, the virtual barcode is used to uniquely identify the tested product; and send an inbound test signal including the virtual barcode to the lower computer.
[0032] The lower computer 12 is used to respond to the inbound test signal including the virtual barcode sent by the upper computer, control the inbound test of the product under test, and monitor and record the inbound test process of the product under test based on the virtual barcode to obtain test information; the upper computer 11 is used to obtain the test information of the product under test from the lower computer based on the virtual barcode, and bind and store the test information and the test results corresponding to the test information with the barcode information of the product under test, wherein the barcode information includes a first real barcode and a virtual barcode.
[0033] Specifically, the control unit in the lower computer 12 can receive the inbound test signal sent by the upper computer, and after receiving the inbound test signal, control the test unit to execute the inbound test process for the tested product. The control unit can also monitor and record the process of the test unit testing the tested product based on the virtual barcode to obtain test information, and the upper computer 11 can obtain the test information from the control unit of the lower computer 12 based on the virtual barcode.
[0034] The upper computer 11 is used to respond to the unloading signal of the tested product sent by the lower computer, obtain the test result bound to the second real barcode of the tested product based on the second real barcode of the tested product, and send the unloading instruction of the tested product to the lower computer based on the test result; the lower computer 12 is used to control the unloading of the tested product in response to the unloading instruction sent by the upper computer.
[0035] Specifically, when the control unit in the lower computer 12 detects that there are tested products that need to be unloaded, it sends an unloading signal to the upper computer 11, so that the upper computer 11 obtains the test results of the tested products. The control unit can receive the test results sent by the upper computer 11, and control the test unit to move the tested products to the corresponding classification area based on the test results.
[0036] like Figure 2 As shown, it shows a flowchart of a product testing method provided by an exemplary embodiment of the present disclosure, which can be used for the above-mentioned host computer 11, and the method includes steps 210-240: Step 210, in response to receiving a loading signal of the tested product sent by the lower computer, obtaining a first real barcode of the tested product, and generating a virtual barcode in a preset format for the tested product, wherein the virtual barcode is used to uniquely identify the tested product.
[0037] The lower computer can use sensors to monitor the loading area. When it detects that there is a product to be tested in the loading area, it can send a loading signal to the upper computer to indicate that there is a product to be tested in the loading area of the upper computer. Optionally, the sensor can be an infrared sensor, an ultrasonic sensor, a pressure sensor, etc.
[0038] After receiving the loading signal of the tested product sent by the lower computer, the upper computer can obtain the real barcode of the tested product in the loading area, that is, the first real barcode.
[0039] In addition, for the tested product, a virtual barcode that conforms to a preset format can be generated. The preset format is a fixed format. Different virtual barcodes are generated for different products, but the format is the same. Schematically, different virtual barcodes with the same length can be generated for different tested products, or different virtual barcodes with lengths within a preset range can be generated.
[0040] Step 220: Send an inbound test signal including a virtual barcode to the lower computer, so that the lower computer can monitor and record the inbound test process of the tested product based on the virtual barcode to obtain test information.
[0041] After the host computer generates a virtual barcode for the product under test, it sends an inbound test signal containing the virtual barcode to the lower computer. After receiving the inbound test signal, the lower computer performs the inbound test process for the product under test, and can move the product under test in the loading area to the test station for testing.
[0042] The lower computer can use the virtual barcode to mark the inbound test process of the tested product, that is, use the virtual barcode to mark the test information generated during the inbound test process of the tested product.
[0043] Optionally, the test information includes at least one of test location information and test data information, wherein the test location information is used to indicate the location area where the current product under test is located, and the test data information is test data information generated during the testing process and / or after the testing of the product under test is completed.
[0044] Step 230, based on the virtual barcode, obtain the test information of the tested product from the lower computer, and bind and store the test information, the test result corresponding to the test information and the barcode information of the tested product, wherein the barcode information includes the first real barcode and the virtual barcode.
[0045] In a possible implementation, after the upper computer generates a virtual barcode for the product under test, the virtual barcode is bound to the first real barcode of the product under test to form the barcode information of the product under test, and the barcode information of the product under test is stored. After sending an inbound test signal including the virtual barcode to the lower computer, the corresponding test information can be obtained from the lower computer through polling based on the virtual barcode, and the obtained test information is bound to the barcode information of the product under test and stored.
[0046] After obtaining the test information, the host computer can also determine the test result of the tested product according to the test information, and bind the test information, the test result corresponding to the test information and the barcode information of the tested product for subsequent query.
[0047] Step 240, in response to receiving the unloading signal of the tested product sent by the lower computer, based on the second real barcode of the tested product, obtaining the test result bound to the second real barcode, and controlling the lower computer to unload the tested product based on the test result.
[0048] After the tested product is tested, the lower computer controls the tested product to leave the station. The lower computer first moves the tested product to the unloading area and waits for the upper computer's instruction, that is, the tested product is placed in the unloading area. When the lower computer detects that the tested product is placed in the unloading area, it sends the unloading signal of the tested product to the upper computer. The upper computer can obtain the real barcode of the tested product, that is, the second real barcode, and query the stored test results based on the second real barcode to obtain the test result bound to the second real barcode. Based on the query result, the lower computer is controlled to unload the tested product, that is, to move the tested product to the corresponding classification area.
[0049] During the unloading process, the real barcode (second real barcode) of the tested product is re-obtained, and the test result of the tested product is queried based on the real barcode of the tested product. This can avoid confusion in test result acquisition caused by unequal information exchange between the upper computer and the lower computer, and help improve the accuracy of obtaining the test results corresponding to the tested product.
[0050] In the disclosed embodiment, after the upper computer receives the loading signal of the product under test sent by the lower computer, it obtains the first real barcode of the product under test, generates a corresponding virtual barcode for the product under test, and sends the virtual barcode to the lower computer, so that the lower computer can record the inbound test process of the product under test based on the virtual barcode, and the upper computer can obtain the test information of the product under test from the lower computer based on the virtual barcode, and can monitor the test process of the product under test in real time. The upper computer and the lower computer interact with each other through the virtual barcode. The virtual barcode is a barcode that conforms to a preset format, which can unify the barcode formats of various products used by the lower computer, and the lower computer can use a unified memory size to store the virtual barcodes of various products, thereby avoiding waste of resources or barcode storage errors caused by inconsistent barcode information.
[0051] In addition, the upper computer can bind the first real barcode of the tested product with the virtual barcode to obtain the barcode information of the tested product, and establish a mapping relationship between the real barcode and the virtual barcode of the product. After the upper computer obtains the test information of the tested product, the test information and the corresponding test results are bound to the barcode information of the tested product. When the upper computer receives the unloading signal of the tested product sent by the lower computer, the second real barcode of the tested product is obtained, and the corresponding test result is queried based on the second real barcode. By binding the real barcode with the virtual barcode, the situation where the upper computer and the lower computer exchange information unequally and the test results are confused can be avoided, which helps to improve the accuracy of obtaining the test results.
[0052] In an exemplary embodiment, Figure 3 As shown, the product testing equipment further includes a loading area code reader 13 and a unloading area code reader 14 , wherein the loading area code reader 13 and the unloading area code reader 14 are respectively connected to the host computer 11 in communication.
[0053] The upper computer is also used to respond to the loading signal of the tested product sent by the lower computer, send a scanning signal to the upper loading area reader, obtain the first real barcode of the tested product fed back by the loading area reader; bind the first real barcode of the tested product with the virtual barcode of the tested product to obtain the barcode information of the tested product; bind the test information and test results of the tested product with the barcode information of the tested product and store them in the database. The loading area reader is used to receive the scanning signal sent by the upper computer, scan the product to be tested in the loading area, obtain the first real barcode of the tested product; and send the first real barcode to the upper computer.
[0054] In a possible implementation, when the lower computer detects through a sensor that a product to be tested is placed in the loading area, the control unit in the lower computer can control the robot to grab the product to be tested in the loading area, move the product to be tested to the barcode reader position in the loading area, and send a loading signal of the product to be tested to the upper computer. After receiving the loading signal, the upper computer sends a scanning signal to the barcode reader in the loading area, controls the barcode reader in the loading area to scan the product to be tested at the barcode reader position in the loading area, and after scanning, the barcode reader in the loading area feeds back the scanning result to the upper computer, and the upper computer determines the first real barcode of the product to be tested based on the feedback scanning result.
[0055] In an exemplary embodiment, Figure 4 As shown, the process of the host computer obtaining the first real barcode of the tested product includes steps 410-460: Step 410, obtaining a product barcode by scanning the tested product in the loading area.
[0056] The host computer can obtain the product barcode obtained by the barcode reader in the loading area scanning the tested product (that is, the barcode corresponding to the scanning result), and determine the real barcode of the tested product based on the product barcode.
[0057] Step 420, matching the barcode length of the product barcode with a preset barcode length to obtain a length matching result.
[0058] The host computer is pre-set with the barcode length that the real barcode of the product should have, that is, the preset barcode length is stored. After receiving the product barcode fed back by the barcode reader in the loading area, the host computer matches the barcode length of the product barcode with the preset barcode length to obtain a length matching result.
[0059] Step 430: When the length matching result indicates that the lengths are the same, the product barcode is determined to be the first real barcode of the tested product.
[0060] Step 440, when the length matching result indicates that the lengths are different and the number of repeated scans does not reach the first preset number threshold, a repeated scan instruction is generated, and the repeated scan instruction is used to instruct repeated scanning of the tested product in the loading area.
[0061] If the length matching result indicates the same length, the product barcode can be determined as the first real barcode of the tested product. If the length matching result indicates different lengths, there may be a scanning error, and the barcode reader in the loading area can be instructed to scan the tested product again to obtain a new scanning result.
[0062] In one possible implementation, a first preset number threshold is preset in the upper computer to limit the number of times the loading area barcode reader repeatedly scans the same tested product. When the length matching result indicates that the length is different and the number of repeated scans does not reach the first preset number threshold, a repeated scan instruction can be generated and sent to the loading area barcode reader. After that, the updated scan result returned by the loading area barcode reader is received, and the barcode length of the product barcode corresponding to the updated scan result is matched with the preset barcode length to determine whether the product barcode corresponding to the updated scan result can be the first real barcode.
[0063] Step 450, when the real barcode of the tested product is not obtained, the number of consecutive scan failures is updated, where the number of consecutive scan failures is the number of times different products are scanned continuously without obtaining the real barcode.
[0064] In a possible implementation, when the number of repeated scans reaches a first preset number threshold and the first real barcode is not successfully acquired, a loading area scan failure message is sent to the lower computer. After the lower computer receives the loading area scan failure message, the robot is controlled to place the product under test in the loading area where the scan failed (NotGood, NG) so that the tester can check whether there is a barcode missing or unrecognizable situation.
[0065] In addition, when the real barcode of the tested product is not obtained, the number of consecutive scan failures can also be updated. The number of consecutive scan failures refers to the number of times the scan results obtained by scanning different products with the barcode reader in the loading area do not obtain the real barcode.
[0066] Optionally, the number of consecutive scan failures may be the number of times different products are scanned continuously within a preset time period without obtaining a real barcode. After the preset time period is reached, the number of consecutive scan failures may be reset to zero and counted again.
[0067] For example, when the code scanning of the tested product A fails, the number of consecutive code scanning failures is 1, and when the code scanning of the tested product B fails, the number of consecutive code scanning failures is updated to 2.
[0068] Step 460: When the number of consecutive code scanning failures reaches a second preset number threshold, abnormal information of the code scanning device is generated.
[0069] The second preset number threshold is used to limit the number of consecutive scanning failures allowed by the barcode reader in the loading area. When the number of consecutive scanning failures reaches the second preset number threshold, there may be problems such as barcode reader damage, position offset, or unreasonable barcode reader configuration. The upper computer can generate abnormal information about the scanning device, control the lower computer to stop and alarm, so as to conduct timely detection of the barcode reader in the loading area.
[0070] In this embodiment, the upper computer can determine the first real barcode corresponding to the tested product according to the scanning result obtained by the barcode reader in the loading area scanning the tested product. If the first real barcode is not obtained, the barcode reader in the loading area can be controlled to scan repeatedly to avoid the situation where the first real barcode is not obtained due to scanning errors. In addition, when the number of repeated scanning reaches the first preset number threshold, the lower computer can be controlled to move the tested product to the scanning NG area in the loading area to instruct the test personnel to promptly detect the barcode information it carries to avoid affecting the subsequent test process.
[0071] If the barcode reader in the loading area fails to scan the code for multiple times in a row, the host computer can generate abnormal information about the scanning device to avoid continuous impact on the scanning process, so that testers can check the equipment abnormality in time and reduce the impact on the test process.
[0072] In a possible implementation, after obtaining the first real barcode of the tested product, based on the first real barcode, it is queried whether a test result corresponding to the first real barcode is stored. When the test result corresponding to the first real barcode is queried, the test result is sent to the lower computer so that the lower computer moves the tested product to a corresponding classification area, and the classification area includes at least one of a test pass area, a test fail area, and a retest area.
[0073] The first real barcode can be queried in the database used to store bound barcode information, test information and test results. If the first real barcode exists, it is determined that the product under test has been tested in the station, and the test result corresponding to the first real barcode can be obtained, and the test result can be sent to the lower computer, so that the lower computer moves the product under test to the corresponding classification area based on the test result. Among them, the test pass area is used to place products that have passed the test (Pass), the test failure area is used to place products that have failed the test (Fail), and the retest area is used to place products that need to be retested. When the test result indicates that the product under test has passed the test, the lower computer moves the product under test to the test pass area; when the test result indicates that the product under test has failed the test, the lower computer moves the product under test to the test failure area; when the test result indicates that the product under test needs to be retested, the lower computer moves the product under test to the retest area.
[0074] After obtaining the first real barcode of the product under test, if no test result corresponding to the first real barcode is found, it is determined that the product under test has not been tested, and a virtual barcode for the product under test can be generated, that is, when no test result corresponding to the first real barcode is found, a virtual barcode conforming to a preset format is generated.
[0075] In an exemplary embodiment, when generating a virtual barcode that conforms to a preset format, a target barcode can be randomly extracted from a virtual barcode library, and the extracted target barcode is used as the virtual barcode of the tested product, and the barcodes in the virtual barcode library conform to the preset format; thereafter, the extracted target barcode in the virtual barcode library is deleted.
[0076] A virtual barcode library is pre-set in the host computer. The virtual barcode library contains unused virtual barcodes that conform to a preset format. When generating a corresponding virtual barcode for a tested product, a target barcode can be randomly extracted from the virtual barcode library as the virtual barcode of the tested product. After extraction, the extracted target barcode in the virtual barcode library needs to be deleted to avoid repeated use. Specifically, the lengths of the barcodes in the virtual barcode library are all within the preset length range.
[0077] Schematically, there are barcodes 0-100 in the virtual barcode library, and a target barcode can be randomly extracted therefrom. If the extracted target barcode is 3, the extracted target barcode is used as the virtual barcode of the tested product, and the target barcode 3 in the virtual barcode library is deleted.
[0078] After the virtual barcode is generated, the virtual barcode can be bound to the first real barcode of the tested product and stored in the database, and the lower computer can be controlled to execute the inbound test process.
[0079] In a possible implementation, when a virtual barcode is no longer used, it can be recycled into the virtual barcode library.
[0080] Optionally, after the test result of the tested product is sent to the lower computer, the virtual barcode of the tested product is recovered to the virtual barcode library.
[0081] After the test result of the tested product is sent to the lower computer, the lower computer moves the tested product to the corresponding classification area, the test process of the product is completed, and the virtual barcode of the tested product can be added back to the virtual barcode library.
[0082] In a possible implementation, after the lower computer is controlled to move the tested product to the retest area, the stored barcode information and test information of the tested product are deleted. In addition, the virtual barcode of the tested product can be recycled to the virtual barcode library.
[0083] The upper computer generates a virtual new barcode for the tested product that needs to be retested, and sends a retest signal including the virtual new barcode to the lower computer, so that the lower computer can monitor and record the retest process of the tested product that needs to be retested based on the virtual new barcode to obtain test information.
[0084] When generating a new virtual barcode for a tested product that needs to be retested, a random barcode can be drawn again from the current virtual barcode library and the randomly drawn barcode can be used as the new virtual barcode.
[0085] Optionally, when the barcode clear bit of the monitored virtual barcode contains a preset value, the virtual barcode is recycled to the virtual barcode library, and the preset value in the barcode clear bit is written by the lower computer when it detects that the tested product corresponding to the virtual barcode is lost.
[0086] In one possible implementation, the virtual barcode includes a barcode clearing bit, which is used to indicate whether the virtual barcode needs to be cleared. After the lower computer receives the virtual barcode sent by the upper computer, it records the product testing process of the tested product based on the virtual barcode. If the tested product is detected to be lost during the test process, such as the tested product should have been moved to the test position, but the tested product was not detected at the test position, a preset value can be written and stored in the barcode clearing bit of the corresponding virtual barcode. The upper computer can poll to obtain the virtual barcode in the lower computer. When it is detected that a preset value (such as "1") is written in the barcode clearing bit of the virtual barcode, the barcode information corresponding to the virtual barcode stored in the database and the bound related test information can be deleted, so that the test information corresponding to the virtual barcode stored in the database is invalidated, and the virtual barcode is recycled to the virtual barcode library for reuse.
[0087] In one possible implementation, when there are multiple automated devices of the same model, the database and virtual barcode library can be placed through the client intranet path to achieve barcode interconnection between devices, thereby preventing the same product from affecting the judgment of test results when tested at different workstations and different test devices.
[0088] In this embodiment, a target barcode is randomly extracted from a preset virtual barcode library as the virtual barcode of the product under test. The barcode lengths of the barcodes in the virtual barcode library are all within a preset length range, so that when the lower computer records test information based on the virtual barcode, the storage space occupied by the virtual barcode can be saved, and the uncertainty of the storage space size caused by the uncertain barcode format can be avoided.
[0089] In addition, in this embodiment, when the test process of the tested product marked by the virtual barcode is completed, the virtual barcode can be recycled into the virtual barcode library, and the barcodes in the virtual barcode library can be reused, saving barcode resources. A barcode clearing bit is also set in the virtual barcode. When the corresponding tested product is detected to be lost, the lower computer can write a preset value in the barcode clearing bit, so that the upper computer can clear the invalid information in the database according to the barcode clearing bit to avoid affecting the testing of other products.
[0090] In an exemplary embodiment, Figure 5 As shown, the product inbound process includes the following steps: Step 501: The host computer obtains the code scanning parameters.
[0091] The barcode scanning parameters include a preset barcode length a and a first preset number threshold b.
[0092] Step 502: The lower computer detects the presence of the product to be tested in the loading area through a sensor.
[0093] Step 503: the lower computer sends a material loading signal to the upper computer.
[0094] Step 504: The host computer sends a scanning signal to the barcode reader in the upper material area.
[0095] Step 505: The host computer updates the number of repeated code scanning times.
[0096] That is, the scan code is repeated for the number of times + 1.
[0097] Step 506, the host computer determines whether the number of repeated code scanning is less than or equal to the first preset number threshold b, if so, execute step 507, if not, execute step 508.
[0098] Step 507: The host computer obtains the barcode length x of the product barcode.
[0099] When the number of repeated code scanning is within a first preset number threshold range, the code reader in the loading area can be controlled to scan the code repeatedly.
[0100] Step 508, controlling the lower computer to shut down and alarm.
[0101] Step 509 , the host computer determines whether the barcode length x of the product barcode is equal to the preset barcode length a. If so, execute step 510 ; if not, execute step 504 .
[0102] In step 510 , the host computer searches the database to see whether the first real barcode exists. If so, step 515 is executed. If not, step 511 is executed.
[0103] When the barcode length x of the product barcode obtained by scanning is equal to the preset barcode length a, the product barcode can be determined as the first real barcode of the tested product.
[0104] Step 511: extract a target barcode from the virtual barcode library as the virtual barcode of the product under test.
[0105] Step 512: Bind and store the first real barcode and the virtual barcode in a database.
[0106] Step 513, updating the virtual barcode library.
[0107] After the target barcode is extracted from the virtual barcode library as the virtual barcode of the tested product, the target barcode in the virtual barcode library can be deleted; after the test result corresponding to the first real barcode is obtained, the test result can be sent to the lower computer, and the virtual barcode bound to the first real barcode can be recycled to the virtual barcode library.
[0108] Step 514: Send an inbound test signal including a virtual barcode to the lower computer, so that the lower computer executes the inbound test process.
[0109] Step 515: Obtain the test result corresponding to the first real barcode.
[0110] Step 516, sending the test result to the lower computer, and controlling the lower computer to move the tested product to the corresponding classification area.
[0111] Step 517, deleting the corresponding barcode information and test information in the database, and recycling the virtual barcode corresponding to the first real barcode to the virtual barcode library.
[0112] When the first real barcode exists in the database, the test result corresponding to the first real barcode, that is, the test result of the tested product, can be obtained from the database. Afterwards, the barcode information (the first real barcode and its bound virtual barcode) and test information (including the test result) corresponding to the first real barcode in the database can be deleted, and the virtual barcode bound to the first real barcode can be recycled to the virtual barcode library.
[0113] It should be noted that the execution sequence of step 516 and step 517 can be executed sequentially or in parallel, which is not limited in this embodiment.
[0114] The specific implementation of this embodiment can refer to the above embodiment and will not be described in detail here.
[0115] In an exemplary embodiment, the lower computer is used to record the virtual barcode in the corresponding register address based on the location area of the tested product during the process of controlling the inbound test of the tested product, and different location areas correspond to different register addresses.
[0116] The lower computer is set with register addresses corresponding to different location areas. During the inbound test of the tested product, it needs to go through different location areas. The lower computer can record the current location area of the tested product based on the virtual barcode. Figure 3As shown, N test stations can be set, and each test station can test the product under test, where N is an integer greater than or equal to 1. Optionally, a corresponding register address can be set for each test station. Optionally, there can be a loading position, a clamping position, and a test position in a test station, and the register addresses corresponding to the loading position, the clamping position, and the test position can be set respectively. When the lower computer receives the inbound test signal, the product under test is moved to a test station, and moves in sequence according to the loading position, the clamping position, and the test position. When it moves to the test position, the product under test is tested. When moving to a test station, the lower computer can write a virtual barcode into the register address corresponding to the test station. In the test station, when moving to the loading position, the lower computer can write the virtual barcode into the register address corresponding to the loading position; when moving out of the loading position, the virtual barcode in the register address corresponding to the loading position can be deleted; when moving to the clamping position, the lower computer can write the virtual barcode into the register address corresponding to the clamping position; when moving out of the clamping position, the virtual barcode in the register address corresponding to the clamping position can be deleted; when moving to the test position, the lower computer can write the virtual barcode into the register address corresponding to the test position; when moving out of the test position, the virtual barcode in the register address corresponding to the test position can be deleted.
[0117] When the upper computer obtains the test information of the tested product from the lower computer based on the virtual barcode, it can read the virtual barcode in at least one register address respectively, and determine the location area of the current tested product according to the register address where the read virtual barcode is located.
[0118] Optionally, the host computer may poll to obtain the storage values in different register addresses. In combination with the above embodiment, for a test station, the host computer may poll to obtain the storage values in the register addresses corresponding to the loading position, the clamping position and the test position, and when it is determined that a virtual barcode is stored in the register address corresponding to the loading position, it is determined that the product under test is currently in the loading position.
[0119] In a possible implementation, the virtual barcode in at least one register address is read respectively, and the first real barcode bound to the virtual barcode is queried. When the first real barcode is queried, the test position information of the tested product is determined based on the register address; when the test position information indicates that the tested product is in the test position, the test data information is obtained from the lower computer, and the test position information and the test data information belong to the test information. When the first real barcode is not queried, an alarm message is generated.
[0120] When a virtual barcode contained in a register address is read, the first real barcode bound to the virtual barcode can be queried. If the first real barcode is queried, it can be determined that the barcode is correct, and the test position information of the tested product can be determined based on the register address. When it is determined that the tested product is in the test position (when the register address corresponding to the test position contains a virtual barcode), the corresponding test data information can be obtained from the lower computer. The test data information is the data information used and generated during the test of the tested product. The upper computer can determine the test results based on the test data information. The test data information may include at least one of the test station information, test item information, product measurement data, and test failure information.
[0121] If the first real barcode corresponding to the read virtual barcode is not found, there may be omissions in the virtual barcode transported by the lower computer, and an alarm message is generated to avoid risks and correct the problem in time.
[0122] After the host computer obtains the test information of the tested product, it determines the test result of the tested product according to the test data information included in the test information, and the test result includes one of the following: test pass, test fail, and retest. The test information, test result, and barcode information of the tested product are bound and stored in the database.
[0123] When the upper computer controls the lower computer to unload the tested products based on the test results, the test results of the tested products can be sent to the lower computer so that the lower computer can move the tested products to the corresponding classification area based on the test results of the tested products. The classification area includes at least one of the test passed area, the test failed area and the retest area.
[0124] In an exemplary embodiment, Figure 6 As shown, the product testing process includes the following steps 601-610, which can be executed by the host computer: Step 601: Send an inbound test signal to the lower computer, so that the lower computer moves the product to be tested to the test position.
[0125] Step 602, determine whether the lower computer successfully obtains the test item parameters, if so, execute step 603, if not, execute step 604.
[0126] Step 603, check whether there is a real barcode corresponding to the test bit virtual barcode, if it can be found, then execute step 605, if not, then execute step 604.
[0127] The test bit virtual barcode refers to the virtual barcode read from the register address corresponding to the test bit. After the host computer reads the virtual barcode in the register address corresponding to the test bit, it queries the database for the real barcode corresponding to the virtual barcode.
[0128] Step 604, generate alarm information.
[0129] Step 605: Bind the test location information, test item information and barcode information.
[0130] If it is found that the virtual barcode has a corresponding real barcode, the test location information of the product under test (such as the current test station and the specific test position), the test item information that the lower computer will currently execute for the product under test can be bound to the barcode information. The barcode information includes the bound virtual barcode and the real barcode.
[0131] Step 606, controlling the lower computer to execute the test process.
[0132] Step 607, save the test result according to the test bit virtual barcode.
[0133] The test information obtained by the lower computer test is obtained, and the test information and the corresponding test results are bound and stored with the test bit virtual barcode.
[0134] Step 608, sending the test result to the lower computer, so that the lower computer can unload the tested product.
[0135] Step 609 , detecting whether the barcode clearing bit of the virtual barcode has a preset value, deleting the barcode data corresponding to the virtual barcode, and recycling the virtual barcode to the virtual barcode library.
[0136] The barcode data includes the barcode information corresponding to the virtual barcode and the bound test information.
[0137] Step 610, control the lower computer to enter the state of waiting for the next test.
[0138] The specific implementation of steps 601 - 610 may refer to the above embodiments and will not be described in detail here.
[0139] During the product exit process, the real barcode of the tested product in the unloading area can be re-acquired, and the test result can be queried based on the real barcode to ensure the accuracy of the test result. In an exemplary embodiment, in response to receiving the unloading signal of the tested product sent by the lower computer, the second real barcode of the tested product in the unloading area is obtained; the second real barcode is queried from the stored barcode information to obtain the query result.
[0140] Optionally, when the query result indicates that the second real barcode is successfully queried, and the virtual barcode bound to the second real barcode matches the virtual barcode of the tested product, a test result bound to the second real barcode is obtained.
[0141] After obtaining the second real barcode of the tested product in the unloading area, the second real barcode can be queried from the database. If the second real barcode is found, the virtual barcode bound to the second real barcode in the database can be matched with the virtual barcode of the tested product, wherein the virtual barcode of the tested product can be read from the register corresponding to the barcode reader position in the unloading area. If the virtual barcode bound to the second real barcode matches the virtual barcode of the tested product, the test result of the second real barcode binding is obtained.
[0142] Optionally, when the query result indicates that the second authentic barcode is not found, an alarm message is generated. When the second authentic barcode is not found, there may be a control loophole, which needs to be found and corrected in time.
[0143] Optionally, when the query result indicates that the virtual barcode bound to the queried second real barcode does not match the virtual barcode of the tested product, an alarm message is generated. When the queried second real barcode does not match the virtual barcode of the tested product, the stored barcode information corresponding to the second real barcode and the test information can be deleted to ensure data information security.
[0144] When obtaining the second real barcode of the measured product in the unloading area, the barcode reader in the unloading area can be controlled to scan the barcode.
[0145] In an exemplary embodiment, the upper computer is also used to send a scanning signal to the unloading area reader in response to receiving a unloading signal of a tested product sent by the lower computer, so as to obtain a second real barcode of the tested product fed back by the unloading area reader; based on the second real barcode of the tested product, obtain the test result of the tested product; send the test result of the tested product to the lower computer; the lower computer is also used to receive the test result of the tested product, and move the tested product to a corresponding classification area based on the test result of the tested product, the classification area including at least one of a test passed area, a test failed area and a retest area; the unloading area reader is used to receive the scanning signal sent by the upper computer, scan the tested product in the unloading area, and obtain the second real barcode of the tested product; and send the second real barcode to the upper computer.
[0146] Among them, the scanning process of the upper computer controlling the code reader in the unloading area can refer to the scanning process of the upper computer controlling the code reader in the loading area in the above embodiment, which will not be repeated here.
[0147] In an exemplary embodiment, Figure 7 As shown, the product testing process includes the following steps: Step 701: The lower computer detects that there is a product to be tested in the loading area, and sends a loading signal to the upper computer.
[0148] Step 702: The host computer controls the barcode reader in the loading area to scan the barcode.
[0149] After receiving the feeding signal, the upper computer controls the barcode reader in the feeding area to scan the code.
[0150] Step 703: the host computer executes the barcode query and virtual barcode generation process.
[0151] After the first real barcode is successfully scanned and obtained, the first real barcode is searched in the database. If the first real barcode is not found, a virtual barcode of the tested product is generated.
[0152] Step 704: the upper computer sends an inbound test signal to the lower computer, so that the lower computer executes the inbound test process for the product under test.
[0153] When the first real barcode is not found, it is determined that the tested product has not been tested, and an inbound test signal may be sent to the lower computer.
[0154] Send an inbound test signal containing a dummy barcode to the downstream computer.
[0155] Step 705: The host computer controls the barcode reader in the unloading area to scan the barcodes of the tested products in the unloading area.
[0156] After the test is completed, the tested product will be moved to the unloading area. When the upper computer receives the unloading signal sent by the lower computer, it controls the barcode reader in the unloading area to scan the tested product in the unloading area. If the scanning is successful, the second real barcode corresponding to the tested product is obtained.
[0157] Step 706: The host computer indexes the test information in the database to obtain the test results.
[0158] The corresponding test result is queried in the database based on the second real barcode.
[0159] Step 707: the upper computer sends the test result to the lower computer, so that the lower computer can send the tested products out of the station to the corresponding classification area.
[0160] The upper computer sends the test results to the lower computer to send the tested products to the corresponding classification area.
[0161] Step 708: The upper computer controls the lower computer to move the tested product to the loading and scanning NG area.
[0162] After the barcode reader in the loading area fails to scan the code, the upper computer controls the lower computer to move the tested product to the loading and scanning NG area.
[0163] Step 709: The upper computer controls the lower computer to move the tested product to the unloading and code scanning NG area.
[0164] After the barcode reader in the unloading area fails to scan the code, the upper computer controls the lower computer to move the tested product to the unloading scanning NG area.
[0165] Among them, products in the loading and scanning NG area and the unloading and scanning NG area need to be reloaded and retested.
[0166] The specific implementation method of the embodiment of the present disclosure can refer to the above embodiment and will not be repeated here.
[0167] like Figure 8 As shown, it shows a structural block diagram of a product testing device provided by an exemplary embodiment of the present disclosure, which can be used for the above-mentioned host computer, and the device includes: The barcode generation module 801 is used to obtain the first real barcode of the tested product in response to receiving the material loading signal of the tested product sent by the lower computer, and generate a virtual barcode in a preset format for the tested product, wherein the virtual barcode is used to uniquely identify the tested product; The inbound test module 802 is used to send an inbound test signal including the virtual barcode to the lower computer, so that the lower computer monitors and records the inbound test process of the tested product based on the virtual barcode to obtain test information; An information acquisition module 803 is used to acquire test information of the tested product from the lower computer based on the virtual barcode, and to bind and store the test information, the test result corresponding to the test information and the barcode information of the tested product, wherein the barcode information includes the first real barcode and the virtual barcode; The product unloading module 804 is used to respond to the unloading signal of the tested product sent by the lower computer, obtain the test result bound to the second real barcode of the tested product based on the second real barcode of the tested product, and control the lower computer to unload the tested product based on the test result.
[0168] In an exemplary embodiment, the lower computer is used to record the virtual barcode in the corresponding register address based on the location area of the tested product during the process of controlling the inbound test of the tested product, and different location areas correspond to different register addresses; The information acquisition module 803 is further used for: Read the virtual barcode in at least one register address respectively, and query the first real barcode bound to the virtual barcode; When the first real barcode is queried, the test position information of the tested product is determined based on the register address; when the test position information indicates that the tested product is in the test position, the test data information is obtained from the lower computer, and the test position information and the test data information belong to the test information; The device also includes: The information generation module is used to generate an alarm message when the first real barcode is not found.
[0169] In an exemplary embodiment, the product unloading module 804 is further used to: In response to receiving a material unloading signal of the measured product sent by the lower computer, acquiring the second real barcode of the measured product in the unloading area; Querying the second real barcode from the stored barcode information to obtain a query result; When the query result indicates that the second real barcode is successfully queried, and the virtual barcode bound to the second real barcode matches the virtual barcode of the tested product, obtaining a test result bound to the second real barcode; The information generation module is also used for: When the query result indicates that the second real barcode is not found, generating an alarm message; When the query result indicates that the virtual barcode bound to the queried second real barcode does not match the virtual barcode of the tested product, an alarm message is generated.
[0170] In an exemplary embodiment, the apparatus further comprises: A result determination module, used to determine the test result of the tested product based on the test information; The product unloading module 804 is also used for: The test result of the tested product is sent to the lower computer so that the lower computer moves the tested product to a corresponding classification area based on the test result of the tested product, wherein the classification area includes at least one of a test pass area, a test fail area and a retest area.
[0171] In an exemplary embodiment, the apparatus further comprises: A result query module, used for querying whether a test result corresponding to the first real barcode is stored based on the first real barcode; A result sending module, configured to send the test result to the lower computer when the test result corresponding to the first real barcode is queried, so that the lower computer moves the tested product to a corresponding classification area, wherein the classification area includes at least one of a test pass area, a test fail area, and a retest area; The barcode generation module 801 is further used for: When the test result corresponding to the first real barcode is not found, a virtual barcode conforming to a preset format is generated.
[0172] In an exemplary embodiment, the apparatus further comprises: An information deletion module, used to delete the stored barcode information and test information of the tested product after controlling the lower computer to move the tested product to the retest area; The product retest module is used to generate a virtual new barcode for the tested product that needs to be retested, and send a retest signal including the virtual new barcode to the lower computer, so that the lower computer can monitor and record the retest process of the tested product that needs to be retested based on the virtual new barcode to obtain test information.
[0173] In an exemplary embodiment, the barcode generation module 801 is further used to: Obtaining a product barcode obtained by scanning the tested product in the loading area; Matching the barcode length of the product barcode with a preset barcode length to obtain a length matching result; When the length matching result indicates that the lengths are the same, determining the product barcode as the first real barcode of the tested product; When the length matching result indicates that the lengths are different and the number of repeated scans does not reach a first preset number threshold, a repeated scan instruction is generated, and the repeated scan instruction is used to instruct repeated scanning of the tested product in the loading area.
[0174] In an exemplary embodiment, the apparatus further comprises: A times updating module, used for updating the number of consecutive scan failures when the real barcode of the tested product is not obtained, wherein the number of consecutive scan failures is the number of times different products are scanned continuously without obtaining the real barcode; The information generation module is further configured to generate abnormal information of the code scanning device when the number of consecutive code scanning failures reaches a second preset number threshold.
[0175] In an exemplary embodiment, the barcode generation module 801 is further used to: Randomly extracting a target barcode from a virtual barcode library, and using the extracted target barcode as the virtual barcode of the tested product, wherein the barcodes in the virtual barcode library conform to the preset format; Delete the extracted target barcode in the virtual barcode library.
[0176] In an exemplary embodiment, the apparatus further comprises: A barcode recovery module is used to recover the virtual barcode of the tested product to the virtual barcode library after sending the test result of the tested product to the lower computer; and / or, when the barcode clear bit of the virtual barcode monitored contains a preset value, recover the virtual barcode to the virtual barcode library, and the preset value in the barcode clear bit is written by the lower computer when it is detected that the tested product corresponding to the virtual barcode is lost.
[0177] The product testing device in the embodiment of the present disclosure corresponds to the embodiment of the product testing method in the present disclosure, and the relevant contents can be referenced to each other, which will not be repeated here. The beneficial technical effects corresponding to the product testing device in the embodiment of the present disclosure can refer to the corresponding beneficial technical effects of the corresponding exemplary method part above, which will not be repeated here.
[0178] In addition, an embodiment of the present disclosure further provides an electronic device, including: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the product testing method described in any of the above embodiments of the present disclosure is implemented.
[0179] Fig. 9 is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure, such as Fig. 9 As shown, the electronic device includes one or more processors and memory.
[0180] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0181] The memory may store one or more computer program products, and the memory may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program product to implement the product testing method of each embodiment of the present disclosure described above and / or other desired functions.
[0182] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0183] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
[0184] The output device can output various information to the outside, including determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0185] Of course, to simplify, Fig. 9Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0186] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the product testing method according to various embodiments of the present disclosure described in the above part of this specification.
[0187] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0188] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the product testing method according to various embodiments of the present disclosure described in the above part of this specification.
[0189] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0190] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0191] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0192] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0193] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0194] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0195] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0196] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A product testing method, characterized in that: The method is used for a host computer, and the host computer establishes a communication connection with a slave computer, and the method includes: In response to receiving a loading signal of the tested product sent by the lower computer, obtaining a first real barcode of the tested product, and generating a virtual barcode in a preset format for the tested product, wherein the virtual barcode is used to uniquely identify the tested product; Sending an inbound test signal including the virtual barcode to the lower computer, so that the lower computer monitors and records the inbound test process of the tested product based on the virtual barcode to obtain test information; Based on the virtual barcode, obtaining test information of the tested product from the lower computer, and binding and storing the test information, the test result corresponding to the test information and the barcode information of the tested product, wherein the barcode information includes the first real barcode and the virtual barcode; In response to receiving a material unloading signal of the tested product sent by the lower computer, based on the second real barcode of the tested product, a test result bound to the second real barcode is obtained, and based on the test result, the lower computer is controlled to unload the tested product.
2. The method according to claim 1, characterized in that: The lower computer is used to record the virtual barcode in the corresponding register address based on the location area of the tested product during the process of controlling the inbound test of the tested product, and different location areas correspond to different register addresses; The step of obtaining the test information of the tested product from the lower computer based on the virtual barcode includes: Read the virtual barcode in at least one register address respectively, and query the first real barcode bound to the virtual barcode; When the first real barcode is queried, the test position information of the tested product is determined based on the register address; when the test position information indicates that the tested product is in the test position, the test data information is obtained from the lower computer, and the test position information and the test data information belong to the test information; The method further comprises: When the first authentic barcode is not found, an alarm message is generated.
3. The method according to claim 1, characterized in that: The step of obtaining the test result bound to the second real barcode based on the second real barcode of the tested product in response to receiving the unloading signal of the tested product sent by the lower computer includes: In response to receiving a material unloading signal of the measured product sent by the lower computer, acquiring the second real barcode of the measured product in the unloading area; Querying the second real barcode from the stored barcode information to obtain a query result; When the query result indicates that the second real barcode is successfully queried, and the virtual barcode bound to the second real barcode matches the virtual barcode of the tested product, obtaining a test result bound to the second real barcode; The method further comprises: When the query result indicates that the second real barcode is not found, generating an alarm message; When the query result indicates that the virtual barcode bound to the queried second real barcode does not match the virtual barcode of the tested product, an alarm message is generated.
4. The method according to any one of claims 1 to 3, characterized in that: After obtaining the test information of the tested product from the lower computer, the method further includes: Determining a test result of the tested product based on the test information; The controlling the lower machine to unload the tested product based on the test result includes: The test result of the tested product is sent to the lower computer so that the lower computer moves the tested product to a corresponding classification area based on the test result of the tested product, wherein the classification area includes at least one of a test pass area, a test fail area and a retest area.
5. The method according to any one of claims 1 to 3, characterized in that: After obtaining the first real barcode of the tested product, the method further includes: Based on the first real barcode, query whether a test result corresponding to the first real barcode is stored; When the test result corresponding to the first real barcode is queried, the test result is sent to the lower computer so that the lower computer moves the tested product to a corresponding classification area, wherein the classification area includes at least one of a test pass area, a test fail area, and a retest area; The generating of a virtual barcode conforming to a preset format comprises: When the test result corresponding to the first real barcode is not found, a virtual barcode conforming to a preset format is generated.
6. The method according to any one of claims 1 to 3, characterized in that: After controlling the lower machine to unload the tested product based on the test result, the method further includes: After controlling the lower computer to move the tested product to the retest area, deleting the stored barcode information and test information of the tested product; For the tested products that need to be retested, a virtual new barcode is generated, and a retest signal including the virtual new barcode is sent to the lower computer, so that the lower computer monitors and records the retest process of the tested products that need to be retested based on the virtual new barcode to obtain test information.
7. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the first real barcode of the tested product includes: Obtaining a product barcode obtained by scanning the tested product; Matching the barcode length of the product barcode with a preset barcode length to obtain a length matching result; When the length matching result indicates that the lengths are the same, determining the product barcode as the first real barcode of the tested product; When the length matching result indicates that the lengths are different and the number of repeated code scanning times does not reach a first preset number threshold, a repeated code scanning instruction is generated, and the repeated code scanning instruction is used to instruct repeated code scanning of the tested product.
8. The method according to claim 7, characterized in that The method further comprises: When the real barcode of the tested product is not obtained, the number of consecutive scan failures is updated, where the number of consecutive scan failures is the number of times different products are scanned continuously without obtaining the real barcode; When the number of consecutive code scanning failures reaches a second preset number threshold, code scanning device abnormality information is generated.
9. The method according to any one of claims 1 to 3, characterized in that: The generating of a virtual barcode conforming to a preset format comprises: Randomly extracting a target barcode from a virtual barcode library, and using the extracted target barcode as the virtual barcode of the tested product, wherein the barcodes in the virtual barcode library conform to the preset format; Delete the extracted target barcode in the virtual barcode library.
10. The method according to claim 9, characterized in that The method further comprises: After sending the test result of the tested product to the lower computer, the virtual barcode of the tested product is recovered to the virtual barcode library; and / or, When the barcode clearing bit of the monitored virtual barcode contains a preset value, the virtual barcode is recycled to the virtual barcode library, and the preset value in the barcode clearing bit is written by the lower computer when it is detected that the tested product corresponding to the virtual barcode is lost.
11. A product testing device, characterized in that: The device comprises an upper computer and a lower computer, and a communication connection is established between the upper computer and the lower computer; The upper computer is used to obtain a first real barcode of the product under test in response to receiving a loading signal of the product under test sent by the lower computer, and generate a virtual barcode that conforms to a preset format for the product under test, wherein the virtual barcode is used to uniquely identify the product under test; send an inbound test signal including the virtual barcode to the lower computer; obtain test information of the product under test from the lower computer based on the virtual barcode, and bind and store the test information, the test result corresponding to the test information, and the barcode information of the product under test, wherein the barcode information includes the first real barcode and the virtual barcode; In response to receiving a material unloading signal of the tested product sent by the lower computer, based on the second real barcode of the tested product, obtaining a test result bound to the second real barcode, and sending a material unloading instruction for unloading the tested product to the lower computer based on the test result; The lower computer is used to send a loading signal of the tested product to the upper computer when the loading of the tested product is detected; control the inbound test of the tested product in response to the inbound test signal including the virtual barcode sent by the upper computer, and monitor and record the inbound test process of the tested product based on the virtual barcode to obtain test information; and control the unloading of the tested product in response to the unloading instruction sent by the upper computer.
12. The device according to claim 11, characterized in that The product testing equipment also includes a barcode reader in the loading area, and the host computer establishes a communication connection with the barcode reader in the loading area; The upper computer is further used to send a scanning signal to the barcode reader in the loading area in response to receiving a loading signal of the tested product sent by the lower computer, so as to obtain a first real barcode of the tested product fed back by the barcode reader in the loading area; bind the first real barcode of the tested product with the virtual barcode of the tested product to obtain the barcode information of the tested product; and bind the test information and test results of the tested product with the barcode information of the tested product and store them in a database; The barcode reader in the loading area is used to receive the scanning signal sent by the host computer, scan the product to be tested in the loading area, and obtain the first real barcode of the product to be tested; Send the first real barcode to the host computer.
13. The device according to claim 11, characterized in that The product testing equipment also includes a barcode reader in the material unloading area, and the host computer establishes a communication connection with the barcode reader in the material unloading area; The upper computer is further used to send a scanning signal to the barcode reader in the unloading area in response to receiving a unloading signal of the tested product sent by the lower computer, so as to obtain a second real barcode of the tested product fed back by the barcode reader in the unloading area; obtain a test result of the tested product based on the second real barcode of the tested product; and send the test result of the tested product to the lower computer; The lower computer is further used to receive the test result of the tested product, and move the tested product to a corresponding classification area based on the test result of the tested product, wherein the classification area includes at least one of a test pass area, a test fail area, and a retest area; The barcode reader in the unloading area is used to receive the scanning signal sent by the host computer, scan the tested product in the unloading area, and obtain the second real barcode of the tested product; Send the second real barcode to the host computer.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the product testing method described in any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Electronic product reliability test system
CN110426585A
Server input test information detection system and method
CN112465081A
Server safety regulation automatic test device and method
CN114281619A
Server production test system and method and medium
CN118445128A
Circuit board automatic test method, system and device and storage medium
CN119044738A