Product Testing Method, Device and Storage Medium

By using the binding storage method of virtual barcodes and real barcodes in an automated test system, the problem of confusion in binding test results and barcode information is solved, and the accurate storage and acquisition of test results is achieved.

CN119494355BActive Publication Date: 2025-06-13SHENZHEN YUANLICHUANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510072781.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-06-13
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

During the automated testing process, the product's test results and test data may be chaotic with the barcode information, affecting the accuracy of reading product test results.

Method used

By establishing a communication connection between the upper and lower computers, a virtual barcode conforming to the preset format is generated to uniquely identify the product under test, and to bind and store the test information and results with the real barcode and virtual barcode.

Benefits of technology

It realizes accurate binding and storage of product test results, avoids resource waste and storage errors caused by inconsistent barcode information, and improves the accuracy of obtaining test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119494355B_ABST
    Figure CN119494355B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a product testing method, device, and storage medium. Among them, the host computer, in response to receiving the loading signal of the product under test sent by the slave computer, obtains the first real barcode of the product under test, and generates a virtual barcode that conforms to a preset format for the product under test; sends an inbound test signal including the virtual barcode to the slave computer, so that the slave computer monitors and records the inbound test process of the product under test based on the virtual barcode to obtain test information; based on the virtual barcode, obtains the test information of the product under test from the slave computer, and binds and stores the test information, the test result corresponding to the test information, and the barcode information of the product under test, where the barcode information includes the first real barcode and the virtual barcode; in response to receiving the unloading signal of the tested product sent by the slave computer, based on the second real barcode of the tested product, obtains the test result bound to the second real barcode, and controls the slave computer to unload the tested product based on the test result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to testing technology and barcode management technology, and in particular to a product testing method, device, and storage medium. Background Art

[0002] In the process of automated testing, the test results and test data of a product need to be bound to the barcode of the product to mark good and defective products, so as to realize the whole-process tracking management of the product and ensure subsequent traceability work.

[0003] In the related art, the product carries barcode information. In the process of automated testing, the host computer controls the barcode reader to read the barcode information of the product to obtain the product barcode, and the test result of the product is identified based on the product barcode. However, in this way, there is no interaction between the host computer and the lower computer used to test the product, and there may be a situation where the test result is bound to the barcode in a chaotic manner, affecting the accuracy of reading the test result of the product. Summary of the Invention

[0004] 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 the embodiments of the present disclosure, a product testing method is provided. The method is used for a host computer that has established a communication connection with a lower computer. The method includes:

[0006] In response to receiving the feeding signal of the product to be tested sent by the lower computer, obtaining the first real barcode of the product to be tested, and generating a virtual barcode that conforms to a preset format for the product to be tested. The virtual barcode is used to uniquely identify the product to be tested;

[0007] 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 product to be tested based on the virtual barcode to obtain test information;

[0008] Based on the virtual barcode, obtaining the test information of the product to be tested 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 product to be tested. The barcode information includes the first real barcode and the virtual barcode;

[0009] In response to receiving the discharging signal of the tested product sent by the lower computer, obtaining the test result bound to the second real barcode based on the second real barcode of the tested product, and controlling the lower computer to discharge the tested product based on the test result.

[0010] Another aspect of the embodiments of the present disclosure provides a product testing device, which includes a host computer and a slave computer, and a communication connection is established between the host computer and the slave computer;

[0011] The host computer is configured to, in response to receiving the loading signal of the product under test sent by the slave computer, obtain the first real barcode of the product under test, and generate a virtual barcode conforming to a preset format for the product under test, where the virtual barcode is used to uniquely identify the product under test; send an inbound test signal including the virtual barcode to the slave computer; based on the virtual barcode, obtain the test information of the product under test from the slave computer, and bind and store the test information, the test result corresponding to the test information, and the barcode information of the product under test, where the barcode information includes the first real barcode and the virtual barcode; in response to receiving the unloading signal of the tested product sent by the slave 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 a unloading instruction for unloading the tested product to the slave computer based on the test result;

[0012] The slave computer is configured to, when detecting the loading of the product under test, send the loading signal of the product under test to the host computer; in response to the inbound test signal including the virtual barcode sent by the host 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; in response to the unloading instruction sent by the host computer, control the unloading of the tested product.

[0013] Another aspect of the embodiments of the present disclosure provides an electronic device, including: 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, implementing the product testing method described in any of the above embodiments.

[0014] Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implementing the product testing method described in any of the above embodiments.

[0015] 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, implementing the product testing method described in any of the above embodiments.

[0016] In the embodiments of the present disclosure, after the host computer receives the loading signal of the product under test sent by the slave 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 slave computer, so that the slave computer can record the inbound test process of the product under test based on the virtual barcode, and the host computer can obtain the test information of the product under test from the slave computer based on the virtual barcode, and can monitor the test process of the product under test in real time. The host computer and the slave computer interact through the virtual barcode. The virtual barcode is a barcode that conforms to a preset format, which can make the barcode formats of all products used by the slave computer unified. The slave computer can use a unified memory size to store the virtual barcodes of each product, avoiding the waste of resources or the situation of incorrect barcode storage caused by inconsistent barcode information.

[0017] In addition, the host computer can bind the first real barcode of the product under test with the virtual barcode to obtain the barcode information of the product under test, and establish a mapping relationship between the real barcode and the virtual barcode of the product. After the host computer obtains the test information of the product under test, it binds the test information, the corresponding test result with the barcode information of the product under test. When the host computer receives the unloading signal of the tested product sent by the slave computer, it obtains the second real barcode of the tested product, queries the corresponding test result based on the second real barcode. By binding the real barcode and the virtual barcode, it can avoid the situation of unequal information exchange between the host computer and the slave computer and chaotic test results, which helps to improve the accuracy of obtaining test results.

[0018] Next, through the drawings and embodiments, the technical solutions of the present disclosure will be further described in detail. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings constituting a part of the specification depict the embodiments of the present disclosure and, together with the description, are used to explain the principles of the present disclosure.

[0020] Referring to the drawings, the present disclosure can be more clearly understood according to the following detailed description, where:

[0021] Figure 1 is a schematic structural diagram of a product testing device provided by an exemplary embodiment of the present disclosure;

[0022] Figure 2 is a flowchart of a product testing method provided by an exemplary embodiment of the present disclosure;

[0023] Figure 3 is a schematic structural diagram of a product testing device provided by another exemplary embodiment of the present disclosure;

[0024] Figure 4 is a flowchart of a process for obtaining the first real barcode provided by an exemplary embodiment of the present disclosure;

[0025] Figure 5It is a flowchart of the product inbound process provided by an exemplary embodiment of the present disclosure;

[0026] Figure 6 It is a flowchart of the product testing process provided by an exemplary embodiment of the present disclosure;

[0027] Figure 7 It is a flowchart of the product testing method provided by another exemplary embodiment of the present disclosure;

[0028] Figure 8 It is a schematic structural diagram of the product testing device provided by an exemplary embodiment of the present disclosure;

[0029] Figure 9 It is a schematic structural diagram of the electronic device provided by an exemplary embodiment of the present disclosure. Detailed implementation manners

[0030] Now, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that: unless otherwise specifically stated, the relative arrangements, numerical expressions, and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.

[0031] Those skilled in the art can understand that the terms "first", "second", etc. 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 an inevitable logical order between them.

[0032] It should also be understood that in the embodiments of the present disclosure, "a plurality" may refer to two or more, and "at least one" may refer to one, two, or more.

[0033] It should also be understood that for any component, data, or structure mentioned in the embodiments of the present disclosure, unless otherwise clearly defined or given a contrary indication in the context, it is generally understood to be one or more.

[0034] In addition, the term "and / or" in the present disclosure is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present disclosure generally represents an "or" relationship between the associated objects before and after.

[0035] It should also be understood that the present disclosure emphasizes the differences between various embodiments, and their similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail one by one.

[0036] At the same time, it should be understood that for the sake of description, the sizes of the various parts shown in the drawings are not drawn in actual proportional relationships.

[0037] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way a limitation on the present disclosure, its application, or use.

[0038] Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods, and devices should be considered as part of the specification.

[0039] It should be noted that like reference numerals and letters denote like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.

[0040] Embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with numerous 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, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the above systems, and so on.

[0041] 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 a computer system. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. The computer system / server can be implemented in a distributed cloud computing environment where tasks are executed 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.

[0042] As Figure 1 shown, it shows a schematic structural diagram of a product testing device provided by an exemplary embodiment of the present disclosure. The product testing device includes a host computer 11 and a slave computer 12, and a communication connection is established between the host computer 11 and the slave computer 12.

[0043] The host computer 11 is used to control the slave computer 12 to execute the product testing process. The product to be tested can be an electronic product, such as an electronic device, a chip, a wafer, etc. The product testing process includes the product inbound process, the product testing process, and the product outbound process. The product inbound process refers to the process of moving the product to be tested in the loading area to the testing station. The product testing process refers to the process of testing the product to be tested at the testing station. The product outbound process is the process of moving the tested product to the corresponding classification area.

[0044] Optionally, the slave computer 12 includes a control unit and a testing unit. The control unit is used to interact and transmit signals with the host computer 11. Optionally, the control unit can receive the control signals issued by the host computer 11 and control the testing unit to execute the inbound, testing, and outbound processes of the product to be tested based on the control signals.

[0045] During the product testing process, a bar code is required to identify the product. The host computer 11 and the slave computer 12 can identify the testing information in the product testing process based on the bar code of the product. In a possible implementation, for a product to be tested, the host computer 11 can generate a virtual bar code for the product to be tested. The host computer 11 and the slave computer 12 perform the testing information interaction of the product to be tested based on the virtual bar code. The host computer 11 can also establish a mapping relationship between the real bar code and the virtual bar code of the product to be tested, and determine the product corresponding to the testing information identified by the virtual bar code through the real bar code, so as to avoid the situation of chaotic and unequal bar code information interaction between the host computer 11 and the slave computer 12.

[0046] In an exemplary embodiment, the slave computer 12 is used to send a loading signal of the product to be tested to the host computer when it detects that the product to be tested is loaded. The host computer 11 is used to, in response to receiving the loading signal of the product to be tested sent by the slave computer, obtain the first real bar code of the product to be tested, and generate a virtual bar code that conforms to a preset format for the product to be tested. The virtual bar code is used to uniquely identify the product to be tested; and send an inbound testing signal including the virtual bar code to the slave computer.

[0047] The slave computer 12 is used to, in response to the inbound testing signal including the virtual bar code sent by the host computer, control the inbound testing of the product to be tested, and monitor and record the inbound testing process of the product to be tested based on the virtual bar code to obtain the testing information; the host computer 11 is used to obtain the testing information of the product to be tested from the slave computer based on the virtual bar code, and bind and store the testing information, the test result corresponding to the testing information, and the bar code information of the product to be tested. The bar code information includes the first real bar code and the virtual bar code.

[0048] Specifically, the control unit in the lower computer 12 can receive the inbound test signal sent by the upper computer. After receiving the inbound test signal, it controls the test unit to execute the inbound test process for the product under test. The control unit can also monitor and record the process of the test unit testing the product under test based on the virtual barcode, obtain the 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.

[0049] The upper computer 11 is configured to, in response to receiving the discharging 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 a discharging instruction for discharging the tested product to the lower computer based on the test result; the lower computer 12 is configured to control the discharging of the tested product in response to the discharging instruction sent by the upper computer.

[0050] Specifically, when the control unit in the lower computer 12 detects that there is a tested product to be discharged, it sends a discharging signal to the upper computer 11, enabling the upper computer 11 to obtain the test result of the tested product. The control unit can receive the test result sent by the upper computer 11 and control the test unit to move the tested product to the corresponding classification area based on the test result.

[0051] As Figure 2 shown, it shows a flowchart of a product testing method provided by an exemplary embodiment of the present disclosure. This method can be used for the above-mentioned upper computer 11, and this method includes steps 210 - 240:

[0052] Step 210, in response to receiving the feeding signal of the product under test sent by the lower computer, obtain the first real barcode of the product under test, and generate a virtual barcode that conforms to a preset format for the product under test. The virtual barcode is used to uniquely identify the product under test.

[0053] The lower computer can use a sensor to monitor the feeding area. When it detects that there is a product under test in the feeding area, it can send a feeding signal to the upper computer, indicating that there is a product under test that has been fed in the feeding area. Optionally, the sensor can be an infrared sensor, an ultrasonic sensor, a pressure sensor, etc.

[0054] After the upper computer receives the feeding signal of the product under test sent by the lower computer, it can obtain the real barcode of the product under test in the feeding area, that is, the first real barcode.

[0055] In addition, for the product under test, a virtual barcode that conforms to a preset format can be generated. The preset format is a fixed format. Different products generate different virtual barcodes, but the formats are the same. Schematically, for different products under test, different virtual barcodes with the same length can be generated, or different virtual barcodes with a length range within a preset interval can be generated.

[0056] Step 220: Send an inbound test signal including a virtual barcode to the lower computer, so that the lower computer monitors and records the inbound test process of the product under test based on the virtual barcode to obtain test information.

[0057] After the upper 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 executes 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.

[0058] The lower computer can use the virtual barcode to mark the inbound test process of the product under test, that is, use the virtual barcode to mark the test information generated during the inbound test process of the product under test.

[0059] Optionally, the test information includes at least one of test location information and test data information. Among them, 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 the test data information generated during and / or after the test process of the product under test.

[0060] Step 230: Based on the virtual barcode, obtain the test information of the product under test 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 product under test. The barcode information includes the first real barcode and the virtual barcode.

[0061] In a possible implementation manner, after the upper computer generates a virtual barcode for the product under test, it binds the virtual barcode with the first real barcode of the product under test to form the barcode information of the product under test, and stores the barcode information of the product under test. After sending an inbound test signal including the virtual barcode to the lower computer, it can poll and obtain the corresponding test information from the lower computer based on the virtual barcode, and bind and store the obtained test information with the barcode information of the product under test.

[0062] After obtaining the test information, the upper computer can also determine the test result of the product under test according to the test information, and bind the test information, the test result corresponding to the test information, and the barcode information of the product under test for subsequent query.

[0063] 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, obtain the test result bound to the second real barcode, and control the lower computer to unload the tested product based on the test result.

[0064] After the test of the product under test is completed, the lower computer controls the product under test to leave the station. First, the lower computer moves the product under test to the blanking area to wait for the instruction from the upper computer, that is, the products that have passed the test are placed in the blanking area. When the lower computer detects that there are tested products placed in the blanking area, it sends a blanking signal of the tested products to the upper computer. The upper computer can obtain the true barcode of the tested products, that is, the second true barcode, and query the test results bound to the second true barcode from the stored test results based on the second true barcode. Based on the queried test results, the lower computer is controlled to blank the tested products, that is, move the tested products to the corresponding classification area.

[0065] During the blanking process, the true barcode (the second true barcode) of the blanked tested products is re-obtained, and the test results of the tested products are queried based on the true barcode of the tested products, which can avoid the situation of chaotic acquisition of test results 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 products.

[0066] In the embodiment of the present disclosure, after the upper computer receives the loading signal of the product under test sent by the lower computer, it obtains the first true 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 through the virtual barcode. The virtual barcode is a barcode that conforms to a preset format, which can make the barcode formats of each product used by the lower computer unified. The lower computer can use a unified memory size to store the virtual barcodes of each product, avoiding the waste of resources or the situation of incorrect barcode storage caused by inconsistent barcode information.

[0067] In addition, the upper computer can bind the first true barcode of the product under test with the virtual barcode to obtain the barcode information of the product under test, and establish a mapping relationship between the true barcode and the virtual barcode of the product. After the upper computer obtains the test information of the product under test, it binds the test information, the corresponding test results with the barcode information of the product under test. When the upper computer receives the blanking signal of the tested products sent by the lower computer, it obtains the second true barcode of the tested products, and queries the corresponding test results based on the second true barcode. By binding the true barcode and the virtual barcode, it can avoid the situation of unequal information exchange and chaotic test results between the upper computer and the lower computer, and help improve the accuracy of obtaining test results.

[0068] In an exemplary embodiment, as Figure 3 shown, the product testing device further includes a loading area barcode reader 13 and a blanking area barcode reader 14. Among them, the loading area barcode reader 13 and the blanking area barcode reader 14 are respectively in communication connection with the upper computer 11.

[0069] The host computer is further configured to, in response to receiving the feeding signal of the product under test sent by the slave computer, send a barcode scanning signal to the barcode reader in the feeding area, and obtain the first true barcode of the product under test fed back by the barcode reader in the feeding area; bind the first true barcode of the product under test with the virtual barcode of the product under test to obtain the barcode information of the product under test; bind and store the test information and test results of the product under test with the barcode information of the product under test in the database. The barcode reader in the feeding area is configured to receive the barcode scanning signal sent by the host computer, scan the product to be tested in the feeding area, obtain the first true barcode of the product under test; and send the first true barcode to the host computer.

[0070] In a possible implementation manner, when the slave computer detects that there is a product under test placed in the feeding area through a sensor, the control unit in the slave computer can control the mechanical arm to grab the product under test in the feeding area, move the product under test to the position of the barcode reader in the feeding area, and send the feeding signal of the product under test to the host computer. After receiving the feeding signal, the host computer sends a barcode scanning signal to the barcode reader in the feeding area, controls the barcode reader in the feeding area to scan the product under test at the position of the barcode reader in the feeding area, and after the barcode reader in the feeding area scans the code, it feeds back the scanning result to the host computer, and the host computer determines the first true barcode of the product under test according to the fed-back scanning result.

[0071] In an exemplary embodiment, as Figure 4 shown, the process for the host computer to obtain the first true barcode of the product under test includes steps 410-460:

[0072] Step 410, obtain the product barcode obtained by scanning the product under test in the feeding area.

[0073] The host computer can obtain the product barcode obtained by the barcode reader in the feeding area scanning the product under test (i.e., the barcode corresponding to the scanning result), and determine the true barcode of the product under test according to the product barcode.

[0074] Step 420, match the barcode length of the product barcode with a preset barcode length to obtain a length matching result.

[0075] The host computer is pre-set with the barcode length that the true barcode of the product should have, that is, the preset barcode length is stored. After the host computer receives the product barcode fed back by the barcode reader in the feeding area, it matches the barcode length of the product barcode with the preset barcode length to obtain a length matching result.

[0076] Step 430, when the length matching result indicates that the lengths are the same, determine the product barcode as the first true barcode of the product under test.

[0077] Step 440, when the length matching result indicates that the lengths are different and the number of repeated scans has not reached the first preset number threshold, generate a repeated scan instruction, and the repeated scan instruction is used to indicate repeating the scan of the product under test in the feeding area.

[0078] When the length matching result indicates that the lengths are the same, the product barcode can be determined as the first true barcode of the product to be measured. When the length matching result indicates that the lengths are different, there may be an error in barcode scanning. The barcode reader in the loading area can be instructed to rescan the product to be measured to obtain a new scanning result.

[0079] In a possible implementation, a first preset number threshold is preset in the host computer to limit the number of times the barcode reader in the loading area rescans the same product to be measured. When the length matching result indicates that the lengths are different and the number of repeated scans has not reached the first preset number threshold, a repeated scan instruction can be generated and sent to the barcode reader in the loading area. After that, the updated scanning result returned by the barcode reader in the loading area is received, and the barcode length of the product barcode corresponding to the updated scanning result is matched with the preset barcode length to determine whether the product barcode corresponding to the updated scanning result can be the first true barcode.

[0080] Step 450, when the true barcode of the product to be measured is not obtained, update the continuous barcode scanning failure count. The continuous barcode scanning failure count is the number of times of continuously scanning different products without obtaining the true barcode.

[0081] In a possible implementation, when the number of repeated scans reaches the first preset number threshold and the first true barcode cannot be successfully obtained, send a loading area barcode scanning failure message to the lower computer. After receiving the loading area barcode scanning failure message, the lower computer controls the manipulator to place the product to be measured in the area where loading area barcode scanning fails (NotGood, NG) so that the tester can check whether there is a situation of missing barcode printing or unrecognizable barcode.

[0082] In addition, when the true barcode of the product to be measured is not obtained, the continuous barcode scanning failure count can also be updated. The continuous barcode scanning failure count refers to the number of times that the scanning results obtained by scanning different products by the barcode reader in the loading area do not obtain the true barcode.

[0083] Optionally, the continuous barcode scanning failure count can be the number of times of continuously scanning different products without obtaining the true barcode within a preset time period. After reaching the preset time period, the continuous barcode scanning failure count can be cleared and recounted.

[0084] Exemplarily, when the barcode scanning of product A to be measured fails, the continuous barcode scanning failure count is 1. When the barcode scanning of product B to be measured fails, the continuous barcode scanning failure count is updated to 2.

[0085] Step 460, when the continuous barcode scanning failure count reaches the second preset number threshold, generate a barcode scanning device abnormality message.

[0086] The second preset number threshold is used to limit the number of consecutive barcode scanning failures allowed by the barcode reader in the loading area. When the number of consecutive barcode scanning failures reaches the second preset number threshold, there may be problems such as damage to the barcode reader, position deviation, or unreasonable configuration of the barcode reader. The host computer can generate abnormal information of the barcode scanning device, control the lower computer to stop and alarm, so as to detect the barcode reader in the loading area in time.

[0087] In this embodiment, the host computer can determine the first true barcode corresponding to the product under test according to the barcode scanning result obtained by the barcode reader in the loading area. If the first true barcode is not obtained, the host computer can also control the barcode reader in the loading area to scan the barcode repeatedly to avoid the situation that the first true barcode is not obtained due to barcode scanning errors. In addition, when the number of repeated barcode scanning reaches the first preset number threshold, the host computer can also control the lower computer to move the product under test to the NG area of barcode scanning in the loading area to indicate the tester to detect the barcode information carried by it in time, so as to avoid affecting the subsequent test process.

[0088] In the case that the barcode reader in the loading area fails to scan the barcode continuously for multiple times, the host computer can generate abnormal information of the barcode scanning device to avoid continuous influence on the barcode scanning process, so that the tester can check the device abnormality in time and reduce the influence on the test process.

[0089] In a possible implementation manner, after obtaining the first true barcode of the product under test, based on the first true barcode, query whether there is a test result corresponding to the first true barcode stored. When the test result corresponding to the first true barcode is queried, send the test result to the lower computer so that the lower computer can move the product under test to the corresponding classification area. The classification area includes at least one of a test passed area, a test failed area, and a retest area.

[0090] The first true barcode can be queried in the database used to store the bound barcode information, test information, and test results. If the first true barcode exists, it is determined that the product under test has entered the station for testing, the test result corresponding to the first true barcode can be obtained, and the test result can be sent to the lower computer, so that the lower computer can move the product under test to the corresponding classification area based on the test result. Among them, the test passed area is used to place the products that pass the test (Pass), the test failed area is used to place the products that fail the test (Fail), and the retest area is used to place the products that need to be retested. When the test result indicates that the product under test passes the test, the lower computer moves the product under test to the test passed area; when the test result indicates that the product under test fails the test, the lower computer moves the product under test to the test failed 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.

[0091] After obtaining the first real barcode of the product under test, if the test result corresponding to the first real barcode is not found in the storage, 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 the test result corresponding to the first real barcode is not found, a virtual barcode conforming to a preset format is generated.

[0092] In an exemplary embodiment, when generating a virtual barcode conforming to a preset format, a target barcode can be randomly selected from within the virtual barcode library, and the selected target barcode is used as the virtual barcode of the product under test. The barcodes in the virtual barcode library conform to the preset format; thereafter, the selected target barcode is deleted from the virtual barcode library.

[0093] A virtual barcode library is pre-set in the host computer. The virtual barcode library contains unused virtual barcodes conforming to the preset format. When generating a corresponding virtual barcode for a product under test, a target barcode can be randomly selected from the virtual barcode library as the virtual barcode of the product under test. After selection, the selected target barcode needs to be deleted from the virtual barcode library to avoid repeated use. Specifically, the lengths of the barcodes in the virtual barcode library are all within a preset length range.

[0094] Illustratively, there are barcodes 0 - 100 in the virtual barcode library. A target barcode can be randomly selected from them. If the selected target barcode is 3, the selected target barcode is used as the virtual barcode of the product under test, and the target barcode 3 in the virtual barcode library is deleted.

[0095] After generating the virtual barcode, the virtual barcode can be bound to the first real barcode of the product under test and stored in the database, and the lower computer is controlled to execute the inbound test process.

[0096] In a possible implementation manner, when the virtual barcode is no longer in use, it can be recycled back into the virtual barcode library.

[0097] Optionally, after sending the test result of the tested product to the lower computer, the virtual barcode of the tested product is recycled back into the virtual barcode library.

[0098] After sending the test result of the tested product to the lower computer, the lower computer moves the tested product to the corresponding classification area, and the test process of this product is completed. The virtual barcode of the tested product can be re-added to the virtual barcode library.

[0099] In a possible implementation manner, after controlling the lower computer to move the tested product to the retest area, the stored barcode information and test information of the tested product are deleted. Additionally, the virtual barcode of the tested product can be recycled back into the virtual barcode library.

[0100] The host computer generates a virtual new barcode for the measured products that need to be re-measured, and sends a re-measurement signal including the virtual new barcode to the slave computer, so that the slave computer can monitor and record the re-measurement process of the measured products that need to be re-measured based on the virtual new barcode, and obtain test information.

[0101] When generating a virtual new barcode for the measured products that need to be re-measured, it is possible to randomly select from the current virtual barcode library again, and use the randomly selected barcode as the virtual new barcode.

[0102] Optionally, 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 when the slave computer detects the loss of the measured product corresponding to the virtual barcode.

[0103] In a possible implementation manner, the virtual barcode contains a barcode clearing bit for indicating whether the virtual barcode needs to be cleared. After receiving the virtual barcode sent by the host computer, the slave computer records the product test process of the measured product based on the virtual barcode. If the measured product is detected to be lost during the test process, for example, the measured product should have moved to the test position but the test position does not detect the measured product, a preset value can be written and stored in the barcode clearing bit of the corresponding virtual barcode. The host computer can poll to obtain the virtual barcodes in the slave computer. When it is detected that a preset value (such as "1") is written on the barcode clearing bit of the virtual barcode, the barcode information corresponding to the virtual barcode stored in the database and the bound relevant test information can be deleted, so that the test information corresponding to the virtual barcode stored in the database becomes invalid, and the virtual barcode is recycled to the virtual barcode library for repeated use.

[0104] In a possible implementation manner, when there are multiple automated devices of the same model, the database and the virtual barcode library can be placed through the client intranet path, and barcode interconnection is achieved between the devices to prevent the judgment of the test results from being affected when the same product is tested at different workstations and different test devices.

[0105] In this embodiment, the target barcode is randomly selected from the preset virtual barcode library as the virtual barcode of the measured product. The barcode lengths of the barcodes in the virtual barcode library are all within the preset length range, so that when the slave computer records the test information based on the virtual barcode, the storage space occupied by the virtual barcode can be saved, and the uncertainty problem of the storage space size caused by the indefinite barcode format can also be avoided.

[0106] In addition, in this embodiment, after the test process of the product with the virtual barcode identification is completed, the virtual barcode can be recycled back to the virtual barcode library. 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 it is detected that the corresponding tested product is 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, avoiding the impact on the testing of other products.

[0107] In an exemplary embodiment, as Figure 5 shown, the product inbound process includes the following steps:

[0108] Step 501, the upper computer obtains the barcode scanning parameters.

[0109] The barcode scanning parameters include a preset barcode length a and a first preset number threshold b.

[0110] Step 502, the lower computer detects that there is a product to be tested in the feeding area through a sensor.

[0111] Step 503, the lower computer sends a feeding signal to the upper computer.

[0112] Step 504, the upper computer sends a barcode scanning signal to the barcode reader in the feeding area.

[0113] Step 505, the upper computer updates the repeated barcode scanning times.

[0114] That is, perform the operation of repeated barcode scanning times + 1.

[0115] Step 506, the upper computer determines whether the repeated barcode scanning times is less than or equal to the first preset number threshold b. If so, execute Step 507. If not, execute Step 508.

[0116] Step 507, the upper computer obtains the barcode length x of the product barcode.

[0117] When the repeated barcode scanning times is within the range of the first preset number threshold, the barcode reader in the feeding area can be controlled to perform repeated barcode scanning.

[0118] Step 508, control the lower computer to stop and alarm.

[0119] Step 509, the upper 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.

[0120] Step 510, the upper computer searches in the database to see if there is a first real barcode. If so, execute Step 515. If not, execute Step 511.

[0121] When the barcode length x of the product barcode obtained by scanning the code is equal to the preset barcode length a, the product barcode can be determined as the first true barcode of the product to be measured.

[0122] Step 511: Extract the target barcode from the virtual barcode library as the virtual barcode of the product to be measured.

[0123] Step 512: Bind and store the first true barcode and the virtual barcode in the database.

[0124] Step 513: Update the virtual barcode library.

[0125] After extracting the target barcode from the virtual barcode library as the virtual barcode of the product to be measured, the target barcode in the virtual barcode library can be deleted; after obtaining the test result corresponding to the first true barcode, the test result can be sent to the lower computer, and the virtual barcode bound to the first true barcode can be recycled to the virtual barcode library.

[0126] Step 514: Send an inbound test signal including the virtual barcode to the lower computer to make the lower computer execute the inbound test process.

[0127] Step 515: Obtain the test result corresponding to the first true barcode.

[0128] Step 516: Send the test result to the lower computer and control the lower computer to move the product to be measured to the corresponding classification area.

[0129] Step 517: Delete the corresponding barcode information and test information in the database, and recycle the virtual barcode corresponding to the first true barcode to the virtual barcode library.

[0130] When there is a first true barcode in the database, the test result corresponding to the first true barcode, that is, the test result of the product to be measured, can be obtained from the database. After that, the barcode information (the first true barcode and its bound virtual barcode) and test information (including the test result) corresponding to the first true barcode in the database can be deleted, and the virtual barcode bound to the first true barcode can be recycled to the virtual barcode library.

[0131] It should be noted that the execution sequence of Step 516 and Step 517 can be sequential execution or parallel execution, and this embodiment does not limit this.

[0132] For the specific implementation manners of this embodiment, reference can be made to the above embodiments, and details will not be described herein again.

[0133] In an exemplary embodiment, the lower computer is used to record the virtual barcode in the corresponding register address based on the position area where the product to be measured is located during the process of controlling the inbound test of the product to be measured, and different position areas correspond to different register addresses.

[0134] The slave computer is respectively provided with register addresses corresponding to different position areas. During the inbound test of the product under test, it needs to go through different position areas, and the slave computer can record the current position area of the product under test based on the virtual barcode. For example Figure 3 As shown, N test workstations can be set, and each test workstation can test the product under test, where N is an integer greater than or equal to 1. Optionally, corresponding register addresses can be set for each test workstation. Optionally, there can be a loading position, a gripper position, and a test position in a test workstation, and the register addresses corresponding to the loading position, the gripper position, and the test position can be set respectively. When the slave computer receives the inbound test signal, it moves the product under test into a test workstation and moves it successively according to the loading position, the gripper position, and the test position, and starts testing the product under test when it moves to the test position. When moving to a test workstation, the slave computer can write the virtual barcode into the register address corresponding to this test workstation. In the test workstation, when moving to the loading position, the slave 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 gripper position, the slave computer can write the virtual barcode into the register address corresponding to the gripper position. When moving out of the gripper position, the virtual barcode in the register address corresponding to the gripper position can be deleted. When moving to the test position, the slave 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.

[0135] When the host computer obtains the test information of the product under test from the slave computer based on the virtual barcode, it can respectively read the virtual barcodes in at least one register address, and determine the current position area of the product under test according to the register address where the read virtual barcode is located.

[0136] Optionally, the host computer can poll to obtain the stored values in different register addresses. Combining the above embodiments, for a test workstation, the host computer can poll to obtain the stored values in the register addresses corresponding to the loading position, the gripper position, and the test position respectively. When it is determined that there is a virtual barcode stored in the register address corresponding to the loading position, it is determined that the product under test is currently at the loading position.

[0137] In a possible implementation, the virtual barcodes in at least one register address are respectively read, and the first real barcode corresponding to the virtual barcode is queried. When the first real barcode is queried, the test position information of the product under test is determined based on the register address; when the test position information indicates that the product under test is at the test position, the test data information is obtained from the slave 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.

[0138] 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 product under test can be determined based on the register address. When it is determined that the product under test 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 testing process of the product under test. The upper computer can determine the test result based on the test data information. The test data information can include at least one of test station information, test item information, product measurement data, and test fault information.

[0139] If the first real barcode corresponding to the read virtual barcode is not queried, there may be an omission in the handling of the virtual barcode by the lower computer, and an alarm message is generated to avoid risks and correct problems in a timely manner.

[0140] After the upper computer obtains the test information of the product under test, the test result of the product under test is determined based on the test data information included in the test information. The test result includes one of pass the test, fail the test, and retest. The test information, test result, and barcode information of the product under test are bound and stored in the database.

[0141] When the upper computer controls the lower computer to unload the tested product based on the test result, the test result of the tested product can be sent to the lower computer so that the lower computer can move the tested product to the corresponding classification area based on the test result of the tested product. The classification area includes at least one of the passed test area, failed test area, and retest area.

[0142] In an exemplary embodiment, as Figure 6 shown, the product testing process includes the following steps 601-610, which can be executed by the upper computer:

[0143] Step 601: Send an inbound test signal to the lower computer to make the lower computer move the product under test to the test position.

[0144] Step 602: Determine whether the lower computer successfully obtains the test item parameters. If so, execute Step 603; if not, execute Step 604.

[0145] Step 603: Query whether there is a real barcode corresponding to the test position virtual barcode. If it can be queried, execute Step 605; if not, execute Step 604.

[0146] The test position virtual barcode refers to the virtual barcode read from the register address corresponding to the test position. After the upper computer reads the virtual barcode in the register address corresponding to the test position, it queries the real barcode corresponding to the virtual barcode in the database.

[0147] Step 604, generate an alarm message.

[0148] Step 605, bind the test location information, test item information, and barcode information.

[0149] If a corresponding real barcode is found for the virtual barcode, the test location information of the product under test (such as the current test station and the specific test position) and the test item information that the lower computer will execute for the product under test can be bound to the barcode information, where the barcode information includes the bound virtual barcode and real barcode.

[0150] Step 606, control the lower computer to execute the test process.

[0151] Step 607, save the test result according to the virtual barcode of the test position.

[0152] Obtain the test information obtained by the lower computer test, and bind and store the test information and the corresponding test result to the virtual barcode of the test position.

[0153] Step 608, send the test result to the lower computer to make the lower computer unload the product under test.

[0154] Step 609, detect that a preset value exists in the barcode clearing bit of the virtual barcode, delete the barcode data corresponding to the virtual barcode, and recycle the virtual barcode to the virtual barcode library.

[0155] The barcode data includes the barcode information corresponding to the virtual barcode and the bound test information.

[0156] Step 610, control the lower computer to enter the waiting state for the next test.

[0157] Among them, the specific implementation manners of steps 601 - 610 can refer to the above embodiments and will not be elaborated here.

[0158] During the process of the product leaving the station, the real barcode of the tested product in the unloading area can be retrieved again, 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 retrieved; the second real barcode is queried from the stored barcode information to obtain the query result.

[0159] 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, the test result bound to the second real barcode is retrieved.

[0160] After obtaining the second true barcode of the measured product in the blanking area, the second true barcode can be queried from the database. If the second true barcode is queried, the virtual barcode bound to the second true barcode in the database can be matched with the virtual barcode of the measured product. Among them, the virtual barcode of the measured product can be obtained by reading from the register corresponding to the barcode reader position in the blanking area. When the virtual barcode bound to the second true barcode matches the virtual barcode of the measured product, obtain the test result bound to the second true barcode.

[0161] Optionally, when the query result indicates that the second true barcode is not found, an alarm message is generated. When the second true barcode is not found, there may be a control vulnerability and it is necessary to find and correct it in time.

[0162] Optionally, when the query result indicates that the virtual barcode bound to the second true barcode found does not match the virtual barcode of the measured product, an alarm message is generated. When the second true barcode obtained does not match the virtual barcode of the measured product, the barcode information and test information corresponding to the stored second true barcode can be deleted to ensure the security of data information.

[0163] Among them, when obtaining the second true barcode of the measured product in the blanking area, the barcode scanning of the blanking area barcode reader can be controlled.

[0164] In an exemplary embodiment, the host computer is further configured to, in response to receiving the blanking signal of the measured product sent by the slave computer, send a barcode scanning signal to the blanking area barcode reader, obtain the second true barcode of the measured product fed back by the blanking area barcode reader; based on the second true barcode of the measured product, obtain the test result of the measured product; send the test result of the measured product to the slave computer; the slave computer is further configured to receive the test result of the measured product and move the measured product to the corresponding classification area based on the test result of the measured product. The classification area includes at least one of a passed test area, a failed test area, and a retest area; the blanking area barcode reader is configured to receive the barcode scanning signal sent by the host computer, scan the measured product in the blanking area to obtain the second true barcode of the measured product; and send the second true barcode to the host computer.

[0165] Among them, the process of the host computer controlling the barcode scanning of the blanking area barcode reader can refer to the process of the host computer controlling the barcode scanning of the feeding area barcode reader in the above embodiment and will not be elaborated here.

[0166] In an exemplary embodiment, as Figure 7 shown, the product test process includes the following steps:

[0167] Step 701, the slave computer detects that there is a product to be tested in the feeding area and sends a feeding signal to the host computer.

[0168] Step 702, the host computer controls the barcode scanning of the feeding area barcode reader.

[0169] After the host computer receives the feeding signal, it controls the barcode reader in the feeding area to scan the barcode.

[0170] Step 703, the host computer executes the barcode query and virtual barcode generation process.

[0171] After successfully scanning the barcode to obtain the first real barcode, query the first real barcode in the database. If the first real barcode is not found, generate a virtual barcode for the product under test.

[0172] Step 704, the host computer sends an inbound test signal to the slave computer to enable the slave computer to execute the inbound test process for the product under test.

[0173] In the case where the first real barcode is not found, it is determined that the product under test has not been tested, and an inbound test signal can be sent to the slave computer.

[0174] Send an inbound test signal containing the virtual barcode to the slave computer.

[0175] Step 705, the host computer controls the barcode reader in the discharging area to scan the barcode of the tested product in the discharging area.

[0176] After the test is completed, the product under test will be moved to the discharging area. When the host computer receives the discharging signal sent by the slave computer, it controls the barcode reader in the discharging area to scan the barcode of the tested product in the discharging area. If the barcode scanning is successful, the second real barcode corresponding to the tested product is obtained.

[0177] Step 706, the host computer performs test information indexing in the database to obtain the test result.

[0178] Query the corresponding test result in the database based on the second real barcode.

[0179] Step 707, the host computer sends the test result to the slave computer so that the slave computer can move the tested product out of the station to the corresponding classification area.

[0180] The host computer sends the test result to the slave computer to move the tested product out of the station to the corresponding classification area.

[0181] Step 708, the host computer controls the slave computer to move the product under test to the feeding barcode scanning NG area.

[0182] After the barcode scanning by the barcode reader in the feeding area fails, the host computer controls the slave computer to move the product under test to the feeding barcode scanning NG area.

[0183] Step 709, the host computer controls the slave computer to move the product under test to the discharging barcode scanning NG area.

[0184] After the barcode scanning by the barcode reader in the discharging area fails, the host computer controls the slave computer to move the product under test to the discharging barcode scanning NG area.

[0185] Among them, the products in the feeding code scanning NG area and the discharging code scanning NG area need to be re-fed and retested.

[0186] For the specific implementation manners of the embodiments of the present disclosure, reference may be made to the above embodiments, which will not be elaborated herein.

[0187] As Figure 8 shown, it shows a structural block diagram of a product testing device provided by an exemplary embodiment of the present disclosure. The device can be used for the above-mentioned host computer. The device includes:

[0188] A barcode generation module 801, configured to, in response to receiving a feeding signal of a product to be tested sent by the lower computer, obtain a first real barcode of the product to be tested, and generate a virtual barcode conforming to a preset format for the product to be tested, where the virtual barcode is used to uniquely identify the product to be tested;

[0189] An inbound testing module 802, configured to send an inbound testing signal including the virtual barcode to the lower computer, so that the lower computer monitors and records the inbound testing process of the product to be tested based on the virtual barcode to obtain test information;

[0190] An information acquisition module 803, configured to, based on the virtual barcode, obtain the test information of the product to be tested 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 product to be tested, where the barcode information includes the first real barcode and the virtual barcode;

[0191] A product discharging module 804, configured to, in response to receiving a discharging signal of a tested product sent by the lower computer, obtain the test result bound to the second real barcode based on the second real barcode of the tested product, and control the lower computer to discharge the tested product based on the test result.

[0192] In an exemplary embodiment, the lower computer is configured to record the virtual barcode in a corresponding register address based on the position area where the product to be tested is located during the process of controlling the inbound testing of the product to be tested, and different position areas correspond to different register addresses;

[0193] The information acquisition module 803 is further configured to:

[0194] Read the virtual barcodes in at least one register address respectively, and query the first real barcode corresponding to the virtual barcode;

[0195] When the first real barcode is queried, determine the test position information of the product under test based on the register address; when the test position information indicates that the product under test is in the test position, obtain test data information from the lower computer, and the test position information and the test data information belong to the test information;

[0196] The device further includes:

[0197] An information generation module, configured to generate an alarm information when the first real barcode is not queried.

[0198] In an exemplary embodiment, the product discharging module 804 is further configured to:

[0199] In response to receiving the discharging signal of the tested product sent by the lower computer, obtain the second real barcode of the tested product in the discharging area;

[0200] Query the second real barcode from the stored barcode information to obtain a query result;

[0201] 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, obtain the test result bound to the second real barcode;

[0202] The information generation module is further configured to:

[0203] Generate an alarm information when the query result indicates that the second real barcode is not queried;

[0204] Generate an alarm information 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.

[0205] In an exemplary embodiment, the device further includes:

[0206] A result determination module, configured to determine the test result of the product under test based on the test information;

[0207] The product discharging module 804 is further configured to:

[0208] Send the test result of the tested product to the lower computer, so that the lower computer moves the tested product to the corresponding classification area based on the test result of the tested product, and the classification area includes at least one of a passing test area, a failing test area, and a retest area.

[0209] In an exemplary embodiment, the device further includes:

[0210] A result query module, configured to query whether a test result corresponding to the first real barcode is stored based on the first real barcode;

[0211] 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 product under test to a corresponding classification area, where the classification area includes at least one of a passed test area, a failed test area, and a retest area;

[0212] The barcode generation module 801 is further configured to:

[0213] Generate a virtual barcode that conforms to a preset format when the test result corresponding to the first real barcode is not queried.

[0214] In an exemplary embodiment, the apparatus further includes:

[0215] An information deletion module, configured to delete the barcode information and test information of the measured product stored after controlling the lower computer to move the measured product to the retest area;

[0216] A product retest module, configured to generate a virtual new barcode for a measured 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 monitors and records the retest process of the measured product that needs to be retested based on the virtual new barcode to obtain test information.

[0217] In an exemplary embodiment, the barcode generation module 801 is further configured to:

[0218] Obtain a product barcode obtained by scanning the product under test in the loading area;

[0219] Match the barcode length of the product barcode with a preset barcode length to obtain a length matching result;

[0220] When the length matching result indicates that the lengths are the same, determine the product barcode as the first real barcode of the product under test;

[0221] When the length matching result indicates that the lengths are different and the number of repeated scans has not reached a first preset number threshold, generate a repeated scan instruction, where the repeated scan instruction is used to indicate repeated scanning of the product under test in the loading area.

[0222] In an exemplary embodiment, the apparatus further includes:

[0223] A number update module, configured to update the number of consecutive scan failures when the real barcode of the product under test is not obtained, where the number of consecutive scan failures is the number of times of continuously scanning different products without obtaining the real barcode;

[0224] The information generation module is further configured to generate abnormal information of the barcode scanning device when the number of consecutive barcode scanning failures reaches a second preset threshold.

[0225] In an exemplary embodiment, the barcode generation module 801 is further configured to:

[0226] Randomly extract a target barcode from the virtual barcode library, and use the extracted target barcode as the virtual barcode of the product to be tested, where the barcodes in the virtual barcode library conform to the preset format;

[0227] Delete the extracted target barcode from the virtual barcode library.

[0228] In an exemplary embodiment, the device further includes:

[0229] A barcode recycling module, configured to recycle 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 monitoring that the barcode clearing bit of the virtual barcode contains a preset value, recycle the virtual barcode to the virtual barcode library, where the preset value in the barcode clearing bit is written when the lower computer detects the loss of the product to be tested corresponding to the virtual barcode.

[0230] The product testing device in the embodiments of the present disclosure corresponds to the embodiments of the above-mentioned product testing method of the present disclosure, and the relevant content can be referred to each other, which will not be elaborated here. The beneficial technical effects corresponding to the product testing device in the embodiments of the present disclosure can be seen in the corresponding beneficial technical effects in the above-mentioned corresponding exemplary method part, which will not be elaborated here.

[0231] In addition, an embodiment of the present disclosure further provides an electronic device, including:

[0232] A memory for storing a computer program;

[0233] A processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the product testing method described in any one of the above embodiments of the present disclosure.

[0234] Figure 9 is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. As Figure 9 shown, the electronic device includes one or more processors and a memory.

[0235] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0236] The memory can store one or more computer program products. The memory can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory can include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program products can be stored on the computer-readable storage media, and the processor can run the computer program products to implement the product testing methods of various embodiments of the present disclosure described above and / or other desired functions.

[0237] In one example, the electronic device can further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).

[0238] In addition, the input device can further include, for example, a keyboard, a mouse, and so on.

[0239] The output device can output various information to the outside, including the determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, and so on.

[0240] Of course, for simplicity, Figure 9 only 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 scenarios, the electronic device can further include any other appropriate components.

[0241] In addition to the above methods and devices, embodiments of the present disclosure can also be computer program products, which include computer program instructions that, when run by a processor, cause the processor to execute the steps in the product testing methods according to various embodiments of the present disclosure described in the above part of this specification.

[0242] The computer program products can be written in any combination of one or more programming languages for programming code to perform the operations of the embodiments of the present disclosure. The programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as the "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, executed as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0243] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium storing computer program instructions, which, when run by a processor, cause the processor to execute the steps in the product testing method according to various embodiments of the present disclosure described in the foregoing part of this specification.

[0244] The computer-readable storage medium may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may, for example, include but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having 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 foregoing.

[0245] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, benefits, effects, etc. are essential for each embodiment of the present disclosure. In addition, the above-described specific details are only for illustrative purposes and for ease of understanding, and are not limitations. The above details do not limit the present disclosure to necessarily adopt the above specific details for implementation.

[0246] Each embodiment in this specification is described in a progressive manner, with the key point of each embodiment being the differences from other embodiments. For the same or similar parts among the embodiments, reference may be made to each other. For system embodiments, since they basically correspond to method embodiments, the description is relatively simple, and reference may be made to the relevant parts of the method embodiments for the relevant content.

[0247] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present disclosure are only illustrative examples and do not intend to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open-ended words, meaning "including but not limited to", and can be used interchangeably with each other. The word "or" and "and" used herein refer to the word "and / or", and can be used interchangeably with each other, 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 with each other.

[0248] The methods and apparatuses of the present disclosure can be implemented in many ways. For example, the methods and apparatuses of the present disclosure can be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the methods is for illustrative purposes only, and the steps of the methods of the present disclosure are not limited to the specific order described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure can also be implemented as a program recorded in a recording medium, and these programs include machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the methods according to the present disclosure.

[0249] It should also be noted that in the apparatuses, devices, and methods of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present disclosure.

[0250] 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 can 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 is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0251] The above description has been presented for purposes of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the form disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and subcombinations 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, obtaining a test result bound to the second real barcode, and controlling the lower computer to unload the tested product based on the test result; Wherein, the obtaining the test result bound to the second real barcode based on the second real barcode of the tested product includes: 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, the test result of the second real barcode binding is obtained, and the virtual barcode of the tested product is read from the register corresponding to the barcode reader position in the unloading area.

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 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; In the process of obtaining the test result bound to the second real barcode of the tested product based on the second real barcode of the tested product, the host computer is further used to: query the second real barcode from the stored barcode information to obtain the 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, obtain the test result bound to the second real barcode, and the virtual barcode of the tested product is read from the register corresponding to the barcode reader position in the unloading area; 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

  • Server production test system and method and medium

    CN118445128A

  • Circuit board automatic test method, system and device and storage medium

    CN119044738A