Logic board bar code automatic identification device and automatic identification method

By designing an automatic recognition device and method for logic board barcodes and using automatic code scanning recognition technology, the problems of low manual code scanning efficiency and poor accuracy in the existing technology are solved, and efficient and accurate logic board barcode recognition is achieved.

CN119337899APending Publication Date: 2025-01-21威海天力电源科技有限公司 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411262917.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The existing logical barcode recognition methods rely on manual scanning, which are inefficient, high cost and are prone to problems such as scan by mistake and multiple scanning.

Method used

Design a device and method for automatic identification of logic board barcodes, using the system to automatically scan codes for identification, and control the camera through the host computer program to take multiple photos and collections, combined with photoelectric sensors and relay modules, to achieve automatic identification of logic boards and accurate reading of barcodes .

Benefits of technology

It improves the recognition efficiency, reduces labor costs, avoids problems such as mis-scanning and multiple scans, and ensures the accuracy and consistency of recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119337899A_ABST
    Figure CN119337899A_ABST
Patent Text Reader

Abstract

The invention provides a logic board bar code automatic identification device and method, and the device comprises a serial port relay module, the serial port relay module is provided with a single-chip microcomputer module, a first optical coupling relay module, a second optical coupling relay module, and a DC24V-5V voltage reduction module, and the DC24V-5V voltage reduction module is located at the power input end of the serial port relay module. The first optocoupler relay module and the second optocoupler relay module are located at the output end of the serial port relay module. According to the logic board bar code automatic identification device and the automatic identification method, system automatic code scanning identification is adopted, the identification efficiency is high, the labor cost is reduced, and the technical problems of mistaken scanning, excessive scanning and the like caused by manual operation can be avoided. The method can be widely applied to automatic identification and registration of logic board bar codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic barcode recognition device, in particular to an automatic barcode recognition device and an automatic recognition method for a logic board. Background Art

[0003] The logic board, also known as the control board, plays a vital role in LCD TVs. Its main function is to process the LVDS or TTL image data signals and clock signals sent by the digital board, and then convert them into control signals that the screen can recognize, thereby controlling the distortion of the liquid crystal molecules and realizing image display.

[0004] Each logic board has a corresponding barcode, which plays an extremely important role. It assigns a unique identifier to each logic board through a unique code, which helps to track and manage the product throughout its life cycle. In addition, the barcode system helps to ensure product quality. Through barcodes, companies can track each link of product production, transportation, warehousing and sales, thereby ensuring product quality and consistency. At present, in the production and processing of logic boards, most of the identification and registration of logic board barcodes are done manually by using a handheld barcode scanner to scan and identify the completed logic boards, and then upload the information to the system for recording.

[0005] However, this identification method, because it relies on manual scanning, has low scanning efficiency and increases labor costs. More importantly, it is very easy to have problems such as mis-scanning and multiple scanning through manual scanning. Summary of the invention

[0007] In view of the above technical problems, the present invention provides a logic board barcode automatic recognition device and automatic recognition method. The logic board barcode automatic recognition device and automatic recognition method adopt system automatic scanning and recognition, which has high recognition efficiency, reduces labor costs, and can avoid problems such as mis-scanning and multiple scanning.

[0008] To this end, the technical solution of the present invention is a method for automatically identifying a logic board barcode, comprising the following steps: Step (1): Run the host computer program, click to open the camera in the host computer program interface, click to select the logic board model to be identified, and then click the start button in the host computer program to start automatic identification; Step (2): The host computer program sends a command to the serial port relay module through the 485 communication module. After the single-chip computer module parses the command, the first optical coupling relay module controls the solenoid valve to be attracted. After the solenoid valve is attracted, the cylinder is controlled to rise, so that the logic board to be identified is blocked within the camera's shooting angle of view. Step (3): The host computer program cyclically sends instructions to the single-chip microcomputer module, repeatedly detecting the voltage change of the photoelectric sensor. When the host computer program receives the feedback instruction from the single-chip microcomputer module, it indicates that the logic board has been blocked in place; Step (4): After the logic board is blocked in place, the host computer program delays for 2 seconds and then controls the camera to take multiple photos of the barcode on the logic board to be identified. Then, the host computer program processes the barcode image obtained after the photo collection, that is, removes useless colors in the barcode image and changes the barcode image to a black and white image, and then stores the processed barcode image in the register; The recognition system performs keyword comparison and image recognition on the barcode image stored in the register, sets the standard barcode image to be recognized and the model keyword on the corresponding barcode. When the barcode image is recognized correctly and the keyword comparison is correct, the barcode image is judged as a good product, otherwise it is judged as a defective product. Step (5): When the barcode image is determined to be a good product, the good product barcode is transmitted to the traceability system, and the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the second optical coupler relay module controls the alarm light to light up green. The host computer program transmits the good product barcodes identified by the camera to the traceability system in sequence. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the first optical coupler relay module controls the electromagnetic valve to disconnect, so that the cylinder is lowered, and the logic board that has been identified enters the next process; Step (6): When the barcode image is determined to be a defective product, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on red, and the buzzer alarms. The host computer program displays the defect information. The operator makes corresponding corrections based on the defective cause of the barcode image. After the correction is completed, the operator manually scans the barcode for confirmation. Then, the confirmation button on the host computer program interface is clicked. The host computer program transmits the good product barcode identified by manual scanning to the traceability system. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on green. The host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the first optical coupler relay module controls the solenoid valve to be disconnected, so that the cylinder is lowered, and the identified logic board enters the next process. Step (7): Steps (2) to (6) are repeated repeatedly to perform the logic board barcode automatic recognition operation on multiple sets of logic boards in sequence.

[0009] Preferably, in step (2), the number of cameras is three.

[0010] Preferably, in step (4), the camera performs multiple photo acquisitions ten times; In step (4), the recognition system adopts an OCR barcode recognition system.

[0011] Preferably, the above-mentioned logic board barcode automatic recognition method, the logic board barcode automatic recognition device used includes a serial port relay module, the serial port relay module is provided with a single-chip microcomputer module, a first optocoupler relay module, a second optocoupler relay module, and a DC24V-5V step-down module, the DC24V-5V step-down module is located at the power input end of the serial port relay module, and the first optocoupler relay module and the second optocoupler relay module are located at the output end of the serial port relay module; The single-chip computer module is respectively connected to the input end of the first optocoupler relay module, the input end of the second optocoupler relay module, and the DC5V positive and negative interfaces of the DC24V-5V step-down module by electrical signals; the DC24V positive and negative interfaces of the DC24V-5V step-down module are respectively connected to the positive and negative interfaces of the power supply on the serial port relay module by electrical signals; and the other end of the positive and negative interfaces of the power supply are connected to the DC24V power supply module; A photoelectric sensor is provided at the other end of the single-chip microcomputer module, the single-chip microcomputer module is electrically connected to the photoelectric sensor, and the other end of the photoelectric sensor is electrically connected to the DC24V power supply module; A host computer is provided at the other end of the single-chip microcomputer module, and the single-chip microcomputer module and the host computer are connected by electrical signals. A camera is provided at the other end of the host computer, and the host computer and the camera are connected by electrical signals. A solenoid valve is connected to the normally open interface NO of the first optocoupler relay module, the normally open interface NO of the first optocoupler relay module is electrically signal connected to the solenoid valve, the other end of the solenoid valve is electrically signal connected to the DC24V terminal on the DC24V power module, and the common interface COM0 of the first optocoupler relay module is electrically signal connected to the DC0V terminal on the DC24V power module; The other end of the solenoid valve is provided with a cylinder, and the solenoid valve and the cylinder are connected with electrical signals; An alarm light is connected to the normally open interface NO of the second optocoupler relay module, the normally open interface NO of the second optocoupler relay module is electrically connected to the alarm light, the other end of the alarm light is electrically connected to the DC24V end of the DC24V power supply module, and the common interface COM1 of the second optocoupler relay module is electrically connected to the DC0V end of the DC24V power supply module.

[0012] Preferably, the 23rd pin of the single-chip module is connected to a resistor R55, the other end of the resistor R55 is electrically connected to the signal interface BK of the photoelectric sensor through the XO interface of the input end of the serial port relay module, and the positive electrode interface BN and the negative electrode interface BU of the photoelectric sensor are electrically connected to the DC24V end and the DC0V end of the DC24V power supply module respectively; Pin 22 of the single-chip microcomputer module is connected to a resistor R56, and the other end of the resistor R56 is connected to the DC24V end electrical signal of the DC24V power supply module through the COM interface of the input end of the serial port relay module; The 29th pin of the single-chip microcomputer module is connected to the DC5V positive electrode interface electrical signal of the DC24V-5V step-down module, and the 16th pin of the single-chip microcomputer module is connected to the DC5V negative electrode interface electrical signal of the DC24V-5V step-down module; The 36th pin of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the first optocoupler relay module by electrical signal, and the negative electrode interface of the input end of the first optocoupler relay module is connected to the DC5V positive terminal; The 35th pin of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the second optocoupler relay module via an electrical signal, and the negative electrode interface of the input end of the second optocoupler relay module is connected to the DC5V positive terminal.

[0013] Preferably, the single-chip microcomputer module and the host computer are connected via the electrical signal of the 485 communication module, the 7th pin of the single-chip microcomputer module is connected to the 4th pin of the 485 communication module, and the 5th pin of the single-chip microcomputer module is connected to the 1st pin of the 485 communication module; Pins 6 and 7 of the 485 communication module are connected to the upper computer electrical signal.

[0014] A logic board barcode automatic recognition device comprises a serial port relay module, on which a single-chip computer module, a first optocoupler relay module, a second optocoupler relay module and a DC24V-5V step-down module are arranged, wherein the DC24V-5V step-down module is located at a power input end of the serial port relay module, and the first optocoupler relay module and the second optocoupler relay module are located at an output end of the serial port relay module; The single-chip computer module is respectively connected to the input end of the first optocoupler relay module, the input end of the second optocoupler relay module, and the DC5V positive and negative interfaces of the DC24V-5V step-down module by electrical signals; the DC24V positive and negative interfaces of the DC24V-5V step-down module are respectively connected to the positive and negative interfaces of the power supply on the serial port relay module by electrical signals; and the other end of the positive and negative interfaces of the power supply are connected to the DC24V power supply module; A photoelectric sensor is provided at the other end of the single-chip microcomputer module, the single-chip microcomputer module is electrically connected to the photoelectric sensor, and the other end of the photoelectric sensor is electrically connected to the DC24V power supply module; A host computer is provided at the other end of the single-chip microcomputer module, and the single-chip microcomputer module and the host computer are connected by electrical signals. A camera is provided at the other end of the host computer, and the host computer and the camera are connected by electrical signals. A solenoid valve is connected to the normally open interface NO of the first optocoupler relay module, the normally open interface NO of the first optocoupler relay module is electrically signal connected to the solenoid valve, the other end of the solenoid valve is electrically signal connected to the DC24V terminal on the DC24V power module, and the common interface COM0 of the first optocoupler relay module is electrically signal connected to the DC0V terminal on the DC24V power module; The other end of the solenoid valve is provided with a cylinder, and the solenoid valve and the cylinder are connected with electrical signals; The normally open interface NO of the second optocoupler relay module is connected to an alarm light, the normally open interface NO of the second optocoupler relay module is electrically connected to the alarm light, the other end of the alarm light is electrically connected to the DC24V terminal on the DC24V power module, and the common interface COM1 of the second optocoupler relay module is electrically connected to the DC0V terminal on the DC24V power module; The method for automatically identifying a logic board barcode using the above-mentioned logic board barcode automatic identification device comprises the following steps: Step (1): Run the host computer program, click to open the camera in the host computer program interface, click to select the logic board model to be identified, and then click the start button in the host computer program to start automatic identification; Step (2): The host computer program sends a command to the serial port relay module through the 485 communication module. After the single-chip computer module parses the command, the first optical coupling relay module controls the solenoid valve to be attracted. After the solenoid valve is attracted, the cylinder is controlled to rise, so that the logic board to be identified is blocked within the camera's shooting angle of view. Step (3): The host computer program cyclically sends instructions to the single-chip microcomputer module, repeatedly detecting the voltage change of the photoelectric sensor. When the host computer program receives the feedback instruction from the single-chip microcomputer module, it indicates that the logic board has been blocked in place; Step (4): After the logic board is blocked in place, the host computer program delays for 2 seconds and then controls the camera to take multiple photos of the barcode on the logic board to be identified. Then, the host computer program processes the barcode image obtained after the photo collection, that is, removes useless colors in the barcode image and changes the barcode image to a black and white image, and then stores the processed barcode image in the register; The recognition system performs keyword comparison and image recognition on the barcode image stored in the register, sets the standard barcode image to be recognized and the model keyword on the corresponding barcode. When the barcode image is recognized correctly and the keyword comparison is correct, the barcode image is judged as a good product, otherwise it is judged as a defective product. Step (5): When the barcode image is determined to be a good product, the good product barcode is transmitted to the traceability system, and the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the second optical coupler relay module controls the alarm light to light up green. The host computer program transmits the good product barcodes identified by the camera to the traceability system in sequence. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the first optical coupler relay module controls the electromagnetic valve to disconnect, so that the cylinder is lowered, and the logic board that has been identified enters the next process; Step (6): When the barcode image is determined to be a defective product, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on red, and the buzzer alarms. The host computer program displays the defect information. The operator makes corresponding corrections based on the defective cause of the barcode image. After the correction is completed, the operator manually scans the barcode for confirmation. Then, the confirmation button on the host computer program interface is clicked. The host computer program transmits the good product barcode identified by manual scanning to the traceability system. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on green. The host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the first optical coupler relay module controls the solenoid valve to be disconnected, so that the cylinder is lowered, and the identified logic board enters the next process. Step (7): Steps (2) to (6) are repeated repeatedly to perform the logic board barcode automatic recognition operation on multiple sets of logic boards in sequence.

[0015] Preferably, the 23rd pin of the single-chip module is connected to a resistor R55, the other end of the resistor R55 is electrically connected to the signal interface BK of the photoelectric sensor through the XO interface of the input end of the serial port relay module, and the positive electrode interface BN and the negative electrode interface BU of the photoelectric sensor are electrically connected to the DC24V end and the DC0V end of the DC24V power supply module respectively; Pin 22 of the single-chip microcomputer module is connected to a resistor R56, and the other end of the resistor R56 is connected to the DC24V end electrical signal of the DC24V power supply module through the COM interface of the input end of the serial port relay module; The 29th pin of the single-chip microcomputer module is connected to the DC5V positive electrode interface electrical signal of the DC24V-5V step-down module, and the 16th pin of the single-chip microcomputer module is connected to the DC5V negative electrode interface electrical signal of the DC24V-5V step-down module; The 36th pin of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the first optocoupler relay module by electrical signal, and the negative electrode interface of the input end of the first optocoupler relay module is connected to the DC5V positive terminal; The 35th pin of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the second optocoupler relay module via an electrical signal, and the negative electrode interface of the input end of the second optocoupler relay module is connected to the DC5V positive terminal.

[0016] Preferably, the single-chip microcomputer module and the host computer are connected via the electrical signal of the 485 communication module, the 7th pin of the single-chip microcomputer module is connected to the 4th pin of the 485 communication module, and the 5th pin of the single-chip microcomputer module is connected to the 1st pin of the 485 communication module; Pins 6 and 7 of the 485 communication module are connected to the upper computer electrical signal.

[0017] Preferably, in step (2), the number of cameras is three; In step (4), the camera takes multiple photos and collects data ten times; In step (4), the recognition system adopts an OCR barcode recognition system.

[0018] The beneficial effects of the present invention are: The barcode recognition device is provided with three cameras, two of which are main cameras and one is a backup camera. Since the specifications and sizes of different logic boards are different, when the field of view of the two cameras cannot fully cover the products to be recognized, the third camera can be enabled for supplementary recognition, thereby realizing the recognition of products of different specifications and sizes without changing the camera's viewing angle, with a wide range of applications and few limitations. In addition, when taking photos, by taking ten photos of the barcode on each logic board, the precision and accuracy of recognition can be increased, and a small amount of dirt, creases, and damage on the barcode can be avoided from not being discovered in time and entering the market, causing a bad impact; More importantly, when there is confusion between two barcode labels of similar models, it can be discovered and handled in time to avoid confusion over product models. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is the overall logic block diagram of the present invention; Figure 2 It is a logic circuit diagram of the connection relationship of the single chip microcomputer module part in the present invention; Figure 3 is the internal circuit diagram of the first optical coupler relay module of the present invention; Figure 4 is the internal circuit diagram of the second optical coupler relay module of the present invention; Figure 5 It is a logic block diagram of the automatic identification method of the present invention.

[0021] Explanation of symbols in the figure: 1. Serial port relay module; 2. Single chip microcomputer module; 3. First optocoupler relay module; 4. Second optocoupler relay module; 5. 485 communication module; 6. Host computer; 7. Camera; 8. Photoelectric sensor; 9. DC24V-5V step-down module; 10. DC24V power supply module; 11. Solenoid valve; 12. Warning light; 13. Photoelectric coupler module; 14. Relay module. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with embodiments.

[0024] pass Figure 1-Figure 5 It can be seen that the logic board barcode automatic recognition device includes a serial port relay module 1, on which a single-chip computer module 2, a first optocoupler relay module 3, a second optocoupler relay module 4, and a DC24V-5V step-down module 9 are provided. The DC24V-5V step-down module 9 is located at the power input end of the serial port relay module 1, and the first optocoupler relay module 3 and the second optocoupler relay module 4 are located at the output end of the serial port relay module 1.

[0025] The single-chip computer module 2 is respectively connected to the input end of the first optocoupler relay module 3, the input end of the second optocoupler relay module 4, and the DC5V positive and negative interfaces of the DC24V-5V step-down module 9 by electrical signals. The DC24V positive and negative interfaces of the DC24V-5V step-down module 9 are respectively connected to the positive and negative interfaces of the power supply on the serial port relay module 1 by electrical signals. The other end of the positive and negative interfaces of the power supply are connected to the DC24V power supply module 10.

[0026] A photoelectric sensor 8 is disposed at the other end of the single-chip computer module 2 , and the single-chip computer module 2 and the photoelectric sensor 8 are electrically connected, and the other end of the photoelectric sensor 8 is electrically connected to a DC24V power supply module 10 .

[0027] A host computer 6 is provided at the other end of the single-chip microcomputer module 2, and the single-chip microcomputer module 2 and the host computer 6 are electrically connected. A camera 7 is provided at the other end of the host computer 6, and the host computer 6 and the camera 7 are electrically connected.

[0028] Camera 7 uses a 16-megapixel industrial camera, which is designed for industrial visual inspection and automation applications. Compared with ordinary consumer-grade cameras, it has a series of unique and high-performance features to ensure stable and efficient operation in various industrial environments. The main advantages of industrial cameras are: 1. High resolution and high definition: Provides fine image details to facilitate accurate detection and measurement of logic board barcodes.

[0029] 2. High frame rate: It can take images quickly and continuously, and can capture the details of the barcode on the logic board in time, which is suitable for dynamic detection scenarios.

[0030] 3. Global shutter: Unlike the rolling shutter of some CMOS cameras, the global shutter can expose all pixels at the same time to avoid distortion when the logic board moves.

[0031] 4. High sensitivity and wide dynamic range: It can capture high-quality images in low-light environments or high-contrast conditions, improve imaging effects, and improve the accuracy of barcode recognition.

[0032] 5. High stability and durability: designed for continuous operation, high temperature resistance and vibration resistance, ensuring long-term reliable operation in harsh industrial environments.

[0033] 6. Flexible customizability: Whether it is hardware or software, industrial cameras usually provide a high degree of customization services to adapt to diverse application requirements. The software development kit (SDK) allows users to control camera parameters such as exposure time, trigger mode, region of interest (ROI), etc. through programming, so that the industrial camera can be better adapted to barcode recognition shooting applied to logic boards.

[0034] 7. Accurate clock and trigger function: Support external triggering and multi-camera synchronization to ensure the precise time and sequence of image acquisition.

[0035] 8. Low noise: Optimized image processing technology reduces image noise, improves image quality, and facilitates subsequent image analysis and processing.

[0036] The normally open interface NO of the first optocoupler relay module 3 is connected to the solenoid valve 11, the normally open interface NO of the first optocoupler relay module 3 is electrically signal connected to the solenoid valve 11, the other end of the solenoid valve 11 is electrically signal connected to the DC24V end of the DC24V power supply module 10, and the common interface COM0 of the first optocoupler relay module 3 is electrically signal connected to the DC0V end of the DC24V power supply module 10.

[0037] A cylinder is disposed at the other end of the solenoid valve 11, and the solenoid valve 11 and the cylinder are connected by electrical signals.

[0038] An alarm light 12 is connected to the normally open interface NO of the second optocoupler relay module 4, the normally open interface NO of the second optocoupler relay module 4 is electrically connected to the alarm light 12, the other end of the alarm light 12 is electrically connected to the DC24V end of the DC24V power supply module 10, and the common interface COM1 of the second optocoupler relay module 4 is electrically connected to the DC0V end of the DC24V power supply module 10.

[0039] Pin 23 of the single-chip computer module 2 is connected to a resistor R55, and the other end of the resistor R55 is electrically connected to the signal interface BK of the photoelectric sensor 8 through the XO interface of the input end on the serial port relay module 1, and the positive electrode interface BN and the negative electrode interface BU of the photoelectric sensor 8 are electrically connected to the DC24V end and the DC0V end of the DC24V power supply module 10 respectively.

[0040] Pin 22 of the single-chip microcomputer module 2 is connected to a resistor R56 , and the other end of the resistor R56 is connected to the DC24V end of the DC24V power supply module 10 via a COM interface at the input end of the serial port relay module 1 .

[0041] The 29th pin of the single-chip microcomputer module 2 is electrically connected to the DC5V positive interface of the DC24V-5V step-down module 9, and the 16th pin of the single-chip microcomputer module 2 is electrically connected to the DC5V negative interface of the DC24V-5V step-down module 9.

[0042] Pin 36 of the single-chip microcomputer module 2 is electrically connected to the positive electrode interface of the input end of the first optocoupler relay module 3 , and the negative electrode interface of the input end of the first optocoupler relay module 3 is connected to the DC5V positive terminal.

[0043] Pin 35 of the single-chip module 2 is electrically connected to the positive interface of the input end of the second optocoupler relay module 4, and the negative interface of the input end of the second optocoupler relay module 4 is connected to the positive terminal of DC5V.

[0044] The single-chip microcomputer module 2 and the host computer 6 are connected through the 485 communication module 5 electrical signal, the 7th pin of the single-chip microcomputer module 2 is connected to the 4th pin of the 485 communication module 5 electrical signal, and the 5th pin of the single-chip microcomputer module 2 is connected to the 1st pin of the 485 communication module 5 electrical signal.

[0045] Pins 6 and 7 of the 485 communication module 5 are connected to the host computer 6 for electrical signal connection.

[0046] The 485 communication module adopts differential signal transmission technology, has the characteristics of high anti-interference ability and long-distance transmission, and is mainly used to realize serial data communication. In this system, the host computer 6 and the serial port relay module 1 exchange data through the 485 communication module to realize the linkage of the whole system.

[0047] The host computer 6 and the camera 7 are connected via Ethernet electrical signals.

[0048] The second optocoupler relay module 4 includes a photoelectric coupler module 13 and a relay module 14. The anode end of the photoelectric coupler module 13 is connected to a resistor R21, and the other end of the resistor R21 is connected to the DC5V positive end. The cathode end of the photoelectric coupler module 13 is connected to a resistor R22, and the other end of the resistor R22 is connected to the 35-pin electrical signal of the single-chip module 2.

[0049] The emitter of the photocoupler module 13 is connected to the transistor Q1 and the resistor R25 respectively, the collector of the photocoupler module 13 is electrically connected to the base of the transistor Q1, the emitter of the transistor Q1 is electrically connected to the other end of the resistor R25, and the emitter of the transistor Q1 is grounded at the same time.

[0050] The collector of the photocoupler module 13 is connected to a resistor R23, the other end of which is connected to the DC12V positive terminal, and one end of the resistor R23 close to the DC12V positive terminal is also connected to a resistor R24, the other end of the resistor R24 ​​is connected to a light-emitting diode, and the other end of the light-emitting diode is electrically connected to the collector of the transistor Q1.

[0051] One end of the resistor R24 ​​away from the light emitting diode is connected to the diode D2, the other end of the diode D2 is electrically connected to the collector of the transistor Q1, and the collector of the transistor Q1 and one end of the diode D2 away from the collector of the transistor Q1 are electrically connected to the relay module 14 respectively.

[0052] The photoelectric coupler module 13 plays an isolation and protection role in the circuit. In this system, the photoelectric coupling module 13 can isolate the input signal of each product to avoid mutual interference.

[0053] The relay module 14 provides isolation between the control signal and the controlled circuit through electromagnetic principles, and plays an important role in improving the reliability and safety of the system. In this system, the relay module 14 realizes the switching action of the control circuit through electromagnetic attraction, controls the lifting and lowering of the cylinder, and switches the status of the alarm light.

[0054] A method for automatically identifying a logic board barcode comprises the following steps: Step (1): Run the host computer program, click to open the camera 7 in the host computer program interface, click to select the logic board model to be identified, and then click the start button in the host computer program to start automatic identification.

[0055] The host computer program uses the LabVIEW programming language, which has obvious core advantages, as follows: 1. Graphical programming: easy to understand and maintain.

[0056] 2. Integrated development environment: provides rich library support, covering all functions from basic mathematical operations to advanced signal processing.

[0057] 3. Strong scalability: Users can create custom VIs ​​(virtual instruments) and libraries, and can also call codes written in other programming languages ​​(such as C, C++, and .NET).

[0058] Step (2): The host computer program sends a command to the serial port relay module 1 through the 485 communication module 5. After the single-chip computer module 2 parses the command, the first optical coupling relay module 3 controls the solenoid valve 11 to be attracted. After the solenoid valve 11 is attracted, the cylinder is controlled to rise, so that the logic board to be identified is blocked within the shooting angle of the camera 7.

[0059] Step (3): The host computer program cyclically sends instructions to the single-chip computer module 2, repeatedly detecting the voltage change of the photoelectric sensor 8. When the host computer program receives the feedback instruction from the single-chip computer module, it indicates that the logic board has been blocked in place.

[0060] Step (4): After the logic board is blocked in place, the host computer program delays for 2 seconds and controls the camera 7 to take multiple photos of the barcode on the logic board to be identified. Then, the host computer program processes the barcode image obtained after the photo collection, that is, removes useless colors in the barcode image and changes the barcode image to a black and white image, and then stores the processed barcode image in the register.

[0061] The recognition system performs keyword comparison and image recognition on the barcode image stored in the register, sets the standard barcode image to be recognized and the model keyword on the corresponding barcode. When the barcode image is fully recognized and the keyword comparison is correct, the barcode image is judged as a good product, otherwise it is judged as a defective product.

[0062] Step (5): When the barcode image is determined to be a good product, the host computer program sends a command to the serial port relay module 1. After the single-chip computer module 2 analyzes the command, the second optical coupler relay module 4 controls the alarm light 12 to light up green. The host computer program transmits the good product barcodes identified by the camera 7 to the traceability system in sequence. After the transmission is completed, the host computer program sends a command to the serial port relay module 1. After the single-chip computer module 2 analyzes the command, the first optical coupler relay module 3 controls the solenoid valve 11 to disconnect, so that the cylinder descends, and the logic board that has been identified enters the next process.

[0063] Step (6): When the barcode image is determined to be a defective product, such as: the logic board has a barcode pasted on it, the barcode is incomplete, damaged, or there are repeated barcode information, etc., the host computer program sends a command to the serial port relay module 1. After the single-chip computer module 2 analyzes the command, the second optical coupler relay module 4 controls the alarm light 12 to light up red, and the buzzer alarms. The host computer program displays the defect information. The operator makes corresponding corrections based on the defective cause of the barcode image. After the correction is completed, the operator manually scans the barcode for confirmation. Then, the confirmation button on the host computer program interface is clicked. The host computer program transmits the good barcode identified by manual scanning to the traceability system. After the transmission is completed, the host computer program sends a command to the serial port relay module 1. After the single-chip computer module 2 analyzes the command, the second optical coupler relay module 4 controls the alarm light 12 to light up green. The host computer program sends a command to the serial port relay module 1. After the single-chip computer module 2 analyzes the command, the first optical coupler relay module 3 controls the solenoid valve 11 to be disconnected, so that the cylinder is lowered, and the identified logic board enters the next process.

[0064] Step (7): Steps (2) to (6) are repeated repeatedly to perform the logic board barcode automatic recognition operation on multiple sets of logic boards in sequence.

[0065] In step (2), there are three cameras 7, two of which are main cameras and one is a backup camera. Since the specifications and sizes of different logic boards are different, when the field of view of the two cameras cannot fully cover the products to be identified, the third camera can be enabled for supplementary identification, thereby achieving the ability to identify products of different specifications and sizes without changing the camera's viewing angle, with a wide range of applications and few limitations.

[0066] In step (4), the camera 7 takes ten photos. When taking photos, ten photos are taken of the barcode on each logic board to increase the precision and accuracy of recognition, and avoid a small amount of dirt, creases, or damage on the barcode that is not discovered in time and flows into the market, causing a bad impact. More importantly, when there is confusion between two barcode labels of similar models, it can be discovered and handled in time to avoid confusion over product models.

[0067] In step (4), the recognition system adopts an OCR barcode recognition system. The OCR barcode recognition system is a high-quality algorithm based on the Labview system vision. The OCR barcode recognition system can ensure high accuracy, high stability and high speed in the barcode recognition process.

[0068] Specifically, OCR technology can accurately extract text from images, reduce manual input errors, and improve the accuracy of data processing.

[0069] In addition, OCR technology provides a flexible SDK development package and calling interface, which is easy to use, highly compatible, and easy to integrate into different applications. At the same time, OCR technology can quickly recognize and process large amounts of text and image information, greatly improving the speed and efficiency of information input.

[0070] Furthermore, the OCR barcode recognition system supports multiple languages ​​and has few application limitations. More importantly, OCR technology can perfectly realize automated operations and increase work efficiency. The logic board barcode automatic recognition device is powered by a DC24V switching power supply and consists of one input signal and two output signals.

[0071] The input signal is the photoelectric trigger of the product. In the assembly line, when the product flows through the photoelectric sensor 8, the photoelectric signal is triggered. The photoelectric sensor 8 outputs a low-level signal to the serial port relay module 1, and forms a loop with the high-level signal at the COM end. When the upper computer 6 inquires about the input status, the lower computer will feed back the input signal status to the upper computer 6. When the upper computer 6 receives the input status, it will stop inquiring about the input signal status of the lower computer, and instead send an instruction to the lower computer to close the Y0 output signal. The COM end 0v is closed with the normally open end, and the 24v and 0v of the solenoid valve 11 coil are connected to form a loop, and the solenoid valve 11 is The air pressure direction is changed electrically, and then the cylinder rises. When the product flows through this position, the product is blocked at this position. When the camera recognizes the MARK point on the product, it will take 10 photos in succession. When all ten photos are recognized as defective, a signal will be sent to the lower computer to turn on the alarm light, prompting the operator to perform manual correction. When the manual processing is completed, click the OK button to cancel the alarm signal, disconnect the signal of the solenoid valve 11, and the cylinder will descend. The product will flow to the next process. When the program recognizes that a certain photo is a good product, it will stop taking the remaining photos, and use this photo as the final processing standard.

[0072] However, what is described above is only a specific embodiment of the present invention and should not be used to limit the scope of implementation of the present invention. Therefore, the replacement of equivalent components, or equivalent changes and modifications made according to the scope of protection of the present invention should still fall within the scope covered by the claims of the present invention.

Claims

1. A method for automatically identifying a logic board barcode, characterized in that: The steps include: Step (1): Run the host computer program, click to open the camera in the host computer program interface, click to select the logic board model to be identified, and then click the start button in the host computer program to start automatic identification; Step (2): The host computer program sends a command to the serial port relay module through the 485 communication module. After the single-chip computer module parses the command, the first optical coupling relay module controls the solenoid valve to be attracted. After the solenoid valve is attracted, the cylinder is controlled to rise, so that the logic board to be identified is blocked within the camera's shooting angle of view. Step (3): The host computer program cyclically sends instructions to the single-chip microcomputer module, repeatedly detecting the voltage change of the photoelectric sensor. When the host computer program receives the feedback instruction from the single-chip microcomputer module, it indicates that the logic board has been blocked in place; Step (4): After the logic board is blocked in place, the host computer program delays for 2 seconds and then controls the camera to take multiple photos of the barcode on the logic board to be identified. Then, the host computer program processes the barcode image obtained after the photo collection, that is, removes useless colors in the barcode image and changes the barcode image to a black and white image, and then stores the processed barcode image in the register; The recognition system performs keyword comparison and image recognition on the barcode image stored in the register, sets the standard barcode image to be recognized and the model keyword on the corresponding barcode. When the barcode image is recognized correctly and the keyword comparison is correct, the barcode image is judged as a good product, otherwise it is judged as a defective product. Step (5): When the barcode image is determined to be a good product, the good product barcode is transmitted to the traceability system, and the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the second optical coupler relay module controls the alarm light to light up green. The host computer program transmits the good product barcodes identified by the camera to the traceability system in sequence. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the first optical coupler relay module controls the electromagnetic valve to disconnect, so that the cylinder is lowered, and the logic board that has been identified enters the next process; Step (6): When the barcode image is determined to be a defective product, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on red, and the buzzer alarms. The host computer program displays the defect information. The operator makes corresponding corrections based on the defective cause of the barcode image. After the correction is completed, the operator manually scans the barcode for confirmation. Then, the confirmation button on the host computer program interface is clicked. The host computer program transmits the good product barcode identified by manual scanning to the traceability system. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on green. The host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the first optical coupler relay module controls the solenoid valve to be disconnected, so that the cylinder is lowered, and the identified logic board enters the next process. Step (7): Steps (2) to (6) are repeated repeatedly to perform the logic board barcode automatic recognition operation on multiple sets of logic boards in sequence.

2. The method for automatically identifying a logic board barcode according to claim 1, characterized in that: In step (2), the number of cameras is three.

3. The method for automatically identifying a logic board barcode according to claim 1, characterized in that: In step (4), the camera takes multiple photos and collects data ten times; In the step (4), the recognition system adopts an OCR barcode recognition system.

4. The method for automatically identifying a logic board barcode according to any one of claims 1 to 3, characterized in that: The logic board barcode automatic recognition method and the logic board barcode automatic recognition device used therein include a serial port relay module, on which a single-chip microcomputer module, a first optocoupler relay module, a second optocoupler relay module, and a DC24V-5V step-down module are arranged, wherein the DC24V-5V step-down module is located at the power input end of the serial port relay module, and the first optocoupler relay module and the second optocoupler relay module are located at the output end of the serial port relay module; The single-chip computer module is respectively connected to the input end of the first optocoupler relay module, the input end of the second optocoupler relay module, and the DC5V positive and negative interfaces of the DC24V-5V step-down module by electrical signals, and the DC24V positive and negative interfaces of the DC24V-5V step-down module are respectively connected to the positive and negative interfaces of the power supply on the serial port relay module by electrical signals, and the other end of the positive and negative interfaces of the power supply are connected to the DC24V power supply module; The other end of the single-chip microcomputer module is provided with a photoelectric sensor, the single-chip microcomputer module and the photoelectric sensor are electrically connected by signal, and the other end of the photoelectric sensor is electrically connected by signal to a DC24V power supply module; The other end of the single-chip microcomputer module is provided with a host computer, and the single-chip microcomputer module and the host computer are electrically connected by signal. The other end of the host computer is provided with a camera, and the host computer and the camera are electrically connected by signal. The normally open interface NO of the first optocoupler relay module is connected to a solenoid valve, the normally open interface NO of the first optocoupler relay module is electrically signal connected to the solenoid valve, the other end of the solenoid valve is electrically signal connected to the DC24V terminal on the DC24V power supply module, and the common interface COM0 of the first optocoupler relay module is electrically signal connected to the DC0V terminal on the DC24V power supply module; The other end of the solenoid valve is provided with a cylinder, and the solenoid valve and the cylinder are connected with electrical signals; An alarm light is connected to the normally open interface NO of the second optocoupler relay module, the normally open interface NO of the second optocoupler relay module is electrically connected to the alarm light, the other end of the alarm light is electrically connected to the DC24V end of the DC24V power supply module, and the common interface COM1 of the second optocoupler relay module is electrically connected to the DC0V end of the DC24V power supply module.

5. The method for automatically identifying a logic board barcode according to claim 4, characterized in that: Pin 23 of the single-chip module is connected to a resistor R55, the other end of the resistor R55 is electrically connected to the signal interface BK of the photoelectric sensor through the XO interface of the input end of the serial relay module, and the positive electrode interface BN and the negative electrode interface BU of the photoelectric sensor are electrically connected to the DC24V end and the DC0V end of the DC24V power supply module respectively; Pin 22 of the single-chip microcomputer module is connected to a resistor R56, and the other end of the resistor R56 is connected to the DC24V end of the DC24V power supply module through the COM interface of the input end of the serial port relay module. The 29th pin of the single-chip microcomputer module is connected to the DC5V positive electrode interface electrical signal of the DC24V-5V step-down module, and the 16th pin of the single-chip microcomputer module is connected to the DC5V negative electrode interface electrical signal of the DC24V-5V step-down module; The 36th pin of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the first optocoupler relay module by electrical signal, and the negative electrode interface of the input end of the first optocoupler relay module is connected to the DC5V positive terminal; Pin 35 of the single-chip microcomputer module is connected to the positive electrode interface of the input end of the second optocoupler relay module via an electrical signal, and the negative electrode interface of the input end of the second optocoupler relay module is connected to the DC5V positive terminal.

6. The method for automatically identifying a logic board barcode according to claim 4, characterized in that: The single-chip microcomputer module and the host computer are connected via the 485 communication module electrical signal, the 7th pin of the single-chip microcomputer module is connected to the 4th pin of the 485 communication module, and the 5th pin of the single-chip microcomputer module is connected to the 1st pin of the 485 communication module; The 6th and 7th pins of the 485 communication module are connected to the upper computer electrical signal.

7. A logic board bar code automatic recognition device, characterized by: It includes a serial port relay module, on which a single-chip microcomputer module, a first optocoupler relay module, a second optocoupler relay module, and a DC24V-5V step-down module are provided, wherein the DC24V-5V step-down module is located at the power input end of the serial port relay module, and the first optocoupler relay module and the second optocoupler relay module are located at the output end of the serial port relay module; The single-chip computer module is respectively connected to the input end of the first optocoupler relay module, the input end of the second optocoupler relay module, and the DC5V positive and negative interfaces of the DC24V-5V step-down module by electrical signals. The DC24V positive and negative interfaces of the DC24V-5V step-down module are respectively connected to the positive and negative interfaces of the power supply on the serial port relay module by electrical signals. The other end of the positive and negative interfaces of the power supply are connected to the DC24V power supply module; The other end of the single-chip microcomputer module is provided with a photoelectric sensor, the single-chip microcomputer module is electrically connected to the photoelectric sensor, and the other end of the photoelectric sensor is electrically connected to a DC24V power supply module; The other end of the single-chip microcomputer module is provided with a host computer, and the single-chip microcomputer module and the host computer are electrically connected by signal. The other end of the host computer is provided with a camera, and the host computer and the camera are electrically connected by signal. A solenoid valve is connected to the normally open interface NO of the first optocoupler relay module, the normally open interface NO of the first optocoupler relay module is electrically signal connected to the solenoid valve, the other end of the solenoid valve is electrically signal connected to the DC24V terminal on the DC24V power supply module, and the common interface COM0 of the first optocoupler relay module is electrically signal connected to the DC0V terminal on the DC24V power supply module; The other end of the solenoid valve is provided with a cylinder, and the solenoid valve and the cylinder are connected with electrical signals; The normally open interface NO of the second optocoupler relay module is connected to an alarm light, the normally open interface NO of the second optocoupler relay module is electrically signal connected to the alarm light, the other end of the alarm light is electrically signal connected to the DC24V terminal on the DC24V power supply module, and the common interface COM1 of the second optocoupler relay module is electrically signal connected to the DC0V terminal on the DC24V power supply module; The method for automatically identifying a logic board barcode using the logic board barcode automatic identification device comprises the following steps: Step (1): Run the host computer program, click to open the camera in the host computer program interface, click to select the logic board model to be identified, and then click the start button in the host computer program to start automatic identification; Step (2): The host computer program sends a command to the serial port relay module through the 485 communication module. After the single-chip computer module parses the command, the first optical coupling relay module controls the solenoid valve to be attracted. After the solenoid valve is attracted, the cylinder is controlled to rise, so that the logic board to be identified is blocked within the camera's shooting angle of view. Step (3): The host computer program cyclically sends instructions to the single-chip microcomputer module, repeatedly detecting the voltage change of the photoelectric sensor. When the host computer program receives the feedback instruction from the single-chip microcomputer module, it indicates that the logic board has been blocked in place; Step (4): After the logic board is blocked in place, the host computer program delays for 2 seconds and then controls the camera to take multiple photos of the barcode on the logic board to be identified. Then, the host computer program processes the barcode image obtained after the photo collection, that is, removes useless colors in the barcode image and changes the barcode image to a black and white image, and then stores the processed barcode image in the register; The recognition system performs keyword comparison and image recognition on the barcode image stored in the register, sets the standard barcode image to be recognized and the model keyword on the corresponding barcode. When the barcode image is recognized correctly and the keyword comparison is correct, the barcode image is judged as a good product, otherwise it is judged as a defective product. Step (5): When the barcode image is determined to be a good product, the good product barcode is transmitted to the traceability system, and the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the second optical coupler relay module controls the alarm light to light up green. The host computer program transmits the good product barcodes identified by the camera to the traceability system in sequence. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module parses the command, the first optical coupler relay module controls the electromagnetic valve to disconnect, so that the cylinder is lowered, and the logic board that has been identified enters the next process; Step (6): When the barcode image is determined to be a defective product, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on red, and the buzzer alarms. The host computer program displays the defect information. The operator makes corresponding corrections based on the defective cause of the barcode image. After the correction is completed, the operator manually scans the barcode for confirmation. Then, the confirmation button on the host computer program interface is clicked. The host computer program transmits the good product barcode identified by manual scanning to the traceability system. After the transmission is completed, the host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the second optical coupler relay module controls the alarm light to turn on green. The host computer program sends a command to the serial port relay module. After the single-chip computer module analyzes the command, the first optical coupler relay module controls the solenoid valve to be disconnected, so that the cylinder is lowered, and the identified logic board enters the next process. Step (7): Steps (2) to (6) are repeated repeatedly to perform the logic board barcode automatic recognition operation on multiple sets of logic boards in sequence.

8. The logic board barcode automatic recognition device according to claim 7, characterized in that: Pin 23 of the single-chip module is connected to a resistor R55, the other end of the resistor R55 is electrically connected to the signal interface BK of the photoelectric sensor through the XO interface of the input end of the serial port relay module, and the positive electrode interface BN and the negative electrode interface BU of the photoelectric sensor are electrically connected to the DC24V end and the DC0V end of the DC24V power supply module respectively; Pin 22 of the single-chip module is connected to a resistor R56, and the other end of the resistor R56 is connected to the DC24V end of the DC24V power supply module through the COM interface of the input end of the serial port relay module; The 29th pin of the single-chip microcomputer module is connected to the DC5V positive electrode interface of the DC24V-5V step-down module by electrical signal, and the 16th pin of the single-chip microcomputer module is connected to the DC5V negative electrode interface of the DC24V-5V step-down module by electrical signal; The 36th pin of the single-chip microcomputer module is electrically connected to the positive electrode interface of the input end of the first optocoupler relay module, and the negative electrode interface of the input end of the first optocoupler relay module is connected to the DC5V positive terminal; Pin 35 of the single-chip microcomputer module is electrically connected to the positive interface of the input end of the second optocoupler relay module, and the negative interface of the input end of the second optocoupler relay module is connected to the DC5V positive terminal.

9. The logic board barcode automatic recognition device according to claim 7, characterized in that: The single-chip microcomputer module and the host computer are connected via the 485 communication module electrical signal, the 7th pin of the single-chip microcomputer module is connected to the 4th pin of the 485 communication module, and the 5th pin of the single-chip microcomputer module is connected to the 1st pin of the 485 communication module; The 6th and 7th pins of the 485 communication module are connected to the upper computer electrical signal.

10. The logic board barcode automatic recognition device according to claim 7, characterized in that: In step (2), the number of cameras is three; In step (4), the camera takes multiple photos and collects data ten times; In the step (4), the recognition system adopts an OCR barcode recognition system.