CN113033237A - Product detection code scanning method - Google Patents

Product detection code scanning method Download PDF

Info

Publication number
CN113033237A
CN113033237A CN202110390670.9A CN202110390670A CN113033237A CN 113033237 A CN113033237 A CN 113033237A CN 202110390670 A CN202110390670 A CN 202110390670A CN 113033237 A CN113033237 A CN 113033237A
Authority
CN
China
Prior art keywords
code scanning
data
control box
code
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110390670.9A
Other languages
Chinese (zh)
Inventor
许映山
吴刚
万品成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Weidazhi Electronic Technology Co Ltd
Original Assignee
Suzhou Weidazhi Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Weidazhi Electronic Technology Co Ltd filed Critical Suzhou Weidazhi Electronic Technology Co Ltd
Priority to CN202110390670.9A priority Critical patent/CN113033237A/en
Publication of CN113033237A publication Critical patent/CN113033237A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Factory Administration (AREA)

Abstract

The invention provides a product detection code scanning method, which comprises the following steps: s1, the code scanning equipment executes the code scanning instruction and uploads a data packet acquired by code scanning to a QueryMES; s2, the QueryMES judges according to the received data packet and returns the judgment result to the control box; and S3, if the control box receives the unqualified data, the code scanning equipment prompts that the product is unqualified, the serial port transmits back an NG instruction, and if the control box receives the qualified data, the serial port transmits back an OK instruction, and an MES uploading mode is selected. The invention is based on the control boxes distributed at each node and station in the actual production process, the product is scanned by the corresponding modes to meet different code scanning detection requirements, a data packet formed by code scanning data is uploaded, and detection and judgment can be carried out according to the received data packet. In addition, the code scanning time comparison can record the testing time of each product in each work station, and when the testing time of the work station is overtime or less than the standard time, an alarm is given and recorded so as to search for a work station causing a bottleneck problem.

Description

Product detection code scanning method
Technical Field
The invention relates to the technical field of product detection, in particular to a code scanning method for product detection.
Background
At present, in the production process of certain products, two-dimensional codes on the products need to be scanned through a code scanning gun in the product detection link so as to read the information of the products and judge the quality and other conditions of the products. Therefore, it is necessary to provide a further solution for how to implement code scanning detection on a product and upload data to determine whether the product meets the detection standard.
Disclosure of Invention
The invention aims to provide a product detection code scanning method to overcome the defects in the prior art.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a product detection code scanning method comprises the following steps:
s1, the code scanning equipment executes the code scanning instruction and uploads a data packet acquired by code scanning to a QueryMES;
s2, the QueryMES judges according to the received data packet and returns the judgment result to the control box;
and S3, if the control box receives the unqualified data, the code scanning equipment prompts that the product is unqualified, the serial port transmits back an NG instruction, if the control box receives the qualified data, the serial port transmits back an OK instruction, and the MES uploading mode is selected through the dial switch.
As an improvement of the product detection code scanning method of the present invention, the step S1 includes: and receiving a code scanning request, sending a code scanning instruction to code scanning equipment by the control box, starting code scanning by the code scanning equipment, and uploading the first data packet to a QueryMES after code scanning.
As an improvement of the product detection code scanning method of the present invention, the first data includes: barcode data, control box device ID data, code scanning device ID data, and operator ID data.
As an improvement of the product detection code scanning method of the present invention, the step S1 includes: and triggering a button on the code scanning equipment, starting code scanning by the code scanning equipment, and uploading the second data packet to the QueryMES after code scanning.
As an improvement of the product detection code scanning method of the present invention, the second data includes: bar code data, control box device ID data, and code scanning device ID data.
As an improvement of the product detection code scanning method of the present invention, the step S1 includes: and triggering a button on the code scanning equipment, starting code scanning by the code scanning equipment, uploading a third data packet to GetSN after the code scanning equipment scans the jig bar code, judging by the GetSN according to the third data packet, returning a judgment result to the control box, prompting that the code scanning equipment is an unqualified product if the control box receives unqualified data, and uploading a fourth data packet to QueryMES if the control box receives the product bar code SN.
As an improvement of the product detection code scanning method of the present invention, the third data packet includes: the fixture bar code data, the control box equipment ID data and the code scanning equipment ID data; the fourth packet includes: bar code data, control box device ID data, and code scanning device ID data.
As an improvement of the product detection code scanning method of the present invention, the code scanning device prompting the unqualified product to be a defective product includes: and the red light corresponding to the code scanning equipment is turned off after being turned on for two seconds, and the buzzer makes a three-sound drop.
As an improvement of the product detection code scanning method of the present invention,
when the MES uploading mode is a serial port instruction waiting mode, the serial port receives an instruction from the code scanning equipment, a data packet formed by the bar code data, the control box equipment ID data and the code scanning equipment ID data is transmitted to the AddMES interface, the AddMES interface judges according to the received data packet, and returns a judgment result to the control box;
and when the MES uploading mode is a direct uploading mode, directly taking a data packet formed by the bar code data, the control box equipment ID data, the code scanning equipment ID data and the operator ID data as a parameter and calling an AddMES interface, wherein the AddMES interface judges according to the received data packet and returns a judgment result to the control box.
As an improvement of the product detection code scanning method of the present invention,
if the control box receives the qualified data, the green light corresponding to the code scanning device is turned off after being turned on for two seconds, the buzzer makes a sound, and the process is ended;
if the control box receives the error data, the yellow lamp corresponding to the code scanning device is turned off after being turned on for two seconds, and the buzzer makes two sounds, so that the flow is ended;
and if the control box receives the unqualified data, the red light corresponding to the code scanning device is turned off after being turned on for two seconds, the buzzer makes a three-tone sound, and the process is ended.
Compared with the prior art, the invention has the beneficial effects that: the invention is based on the control boxes distributed at each node and station in the actual production process, the product is scanned by the modes of automatic code scanning, manual code scanning or manual jig scanning, different code scanning detection requirements are met, a data packet formed by code scanning data is uploaded, and detection and judgment can be carried out according to the received data packet. In addition, the code scanning time comparison can record the testing time of each product in each work station, and when the testing time of the work station is overtime or less than the standard time, an alarm is given and recorded so as to search for a work station causing a bottleneck problem.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method of detecting and scanning a code according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention further provides a product detection code scanning method, which can manage code scanning data collected at each node position, and support distributed cooperative work of multiple electronic control boxes. Meanwhile, an electric control box at a node can be added or cancelled according to actual requirements, so that system management and data acquisition function expansion are realized.
As shown in fig. 1, the product detection code scanning method of the present example includes:
and S1, the code scanning equipment executes the code scanning instruction and uploads the data packet acquired by code scanning to the QueryMES.
Code scanning devices can be divided into left code scanning devices and right code scanning devices, which can operate synchronously or asynchronously. According to different code scanning detection requirements, codes can be scanned according to an automatic code scanning mode, a code scanning request is received at the moment, a code scanning instruction is sent by a control box to code scanning equipment, the code scanning equipment starts to scan the codes, and a first data packet is uploaded to a QueryMES after the codes are scanned. The first data specifically includes: barcode data, control box device ID data, code scanning device ID data, and operator ID data. QueryMES represents a module for looking up a corresponding barcode in an MES (production execution System).
According to different code scanning detection requirements, codes can be scanned according to a manual code scanning mode, a button on code scanning equipment is triggered at the moment, the code scanning equipment starts to scan the codes, and a second data packet is uploaded to a QueryMES after the codes are scanned. Wherein the second data specifically includes: bar code data, control box device ID data, and code scanning device ID data.
According to different code scanning detection requirements, codes can be scanned according to a mode of manually scanning a jig, a button on code scanning equipment is triggered at the moment, the code scanning equipment starts to scan the codes, a third data packet is uploaded to GetSN after the codes of the jig are scanned, the GetSN judges according to the third data packet, and a judgment result is returned to the control box, if the control box receives unqualified data, the code scanning equipment prompts that the data are unqualified products, and if the control box receives a product code SN, the fourth data packet is uploaded to QueryMES. GetSN represents a module for looking up in MES (manufacturing execution System) to obtain whether there is a corresponding serial number of the corresponding barcode.
When the code scanning device prompts that the product is unqualified, the product can be prompted to be unqualified in a mode that a red light corresponding to the code scanning device is turned off after two seconds, and a buzzer drips three sounds, and the process is finished. The third data packet specifically includes: the fixture bar code data, the control box equipment ID data and the code scanning equipment ID data; the fourth packet specifically includes: bar code data, control box device ID data, and code scanning device ID data.
And S2, the QueryMES judges according to the received data packet and returns the judgment result to the control box.
And the QueryMES decodes the received data packet, compares the decoded data with pre-stored data, generates and returns a judgment result. The returned judgment result comprises a BAD/PASS instruction.
And S3, if the control box receives the unqualified data, the code scanning equipment prompts that the product is unqualified, the serial port transmits back an NG instruction, if the control box receives the qualified data, the serial port transmits back an OK instruction, and the MES uploading mode is selected through the dial switch.
In one embodiment, the code scanning device prompting the unqualified product comprises: and the red light corresponding to the code scanning equipment is turned off after being turned on for two seconds, and the buzzer makes a three-sound drop.
And when the MES uploading mode is selected, if the MES uploading mode is the serial port instruction waiting mode. At the moment, the serial port receives an instruction from the code scanning device, a data packet formed by the bar code data, the control box device ID data and the code scanning device ID data is transmitted to the AddMES interface, the AddMES interface judges according to the received data packet, and a judgment result is returned to the control box. AddMES represents a module for adding string numbers and operator job numbers to an MES (production execution System).
If the MES uploading mode is the direct uploading mode. At the moment, a data packet formed by the bar code data, the control box equipment ID data, the code scanning equipment ID data and the operator ID data is directly used as a parameter, an AddMES interface is called, the AddMES interface judges according to the received data packet, and a judgment result is returned to the control box.
When the AddMES interface judges according to the received data packet, the AddMES interface unscrambles the received data packet, compares the unscrambled data with pre-stored data, generates and returns a judgment result. The returned judgment result comprises a PASS/BAD/ERROR instruction.
According to the received PASS/BAD/ERROR instruction, if the control box receives qualified data, a green light corresponding to the code scanning device is turned on for two seconds, then the green light is turned off, a buzzer makes a sound, and the process is ended; if the control box receives the error data, the yellow lamp corresponding to the code scanning device is turned off after being turned on for two seconds, and the buzzer makes two sounds, so that the flow is ended; and if the control box receives the unqualified data, the red light corresponding to the code scanning device is turned off after being turned on for two seconds, the buzzer makes a three-tone sound, and the process is ended.
In summary, the invention scans the code of the product through the mode of automatic code scanning, manual code scanning or manual jig scanning based on the control boxes distributed at each node and station in the actual production process, meets different code scanning detection requirements, uploads the data packet formed by the code scanning data, and can perform detection and judgment according to the received data packet. In addition, the code scanning time comparison can record the testing time of each product in each work station, and when the testing time of the work station is overtime or less than the standard time, an alarm is given and recorded so as to search for a work station causing a bottleneck problem.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A product detection code scanning method is characterized by comprising the following steps:
s1, the code scanning equipment executes the code scanning instruction and uploads a data packet acquired by code scanning to a QueryMES;
s2, the QueryMES judges according to the received data packet and returns the judgment result to the control box;
and S3, if the control box receives the unqualified data, the code scanning equipment prompts that the product is unqualified, the serial port transmits back an NG instruction, if the control box receives the qualified data, the serial port transmits back an OK instruction, and the MES uploading mode is selected through the dial switch.
2. The method for detecting and scanning code according to claim 1, wherein the step S1 includes: and receiving a code scanning request, sending a code scanning instruction to code scanning equipment by the control box, starting code scanning by the code scanning equipment, and uploading the first data packet to a QueryMES after code scanning.
3. The product detection code scanning method of claim 2, wherein the first data comprises: barcode data, control box device ID data, code scanning device ID data, and operator ID data.
4. The method for detecting and scanning code according to claim 1, wherein the step S1 includes: and triggering a button on the code scanning equipment, starting code scanning by the code scanning equipment, and uploading the second data packet to the QueryMES after code scanning.
5. The product detection code scanning method of claim 4, wherein the second data comprises: bar code data, control box device ID data, and code scanning device ID data.
6. The method for detecting and scanning code according to claim 1, wherein the step S1 includes: and triggering a button on the code scanning equipment, starting code scanning by the code scanning equipment, uploading a third data packet to GetSN after the code scanning equipment scans the jig bar code, judging by the GetSN according to the third data packet, returning a judgment result to the control box, prompting that the code scanning equipment is an unqualified product if the control box receives unqualified data, and uploading a fourth data packet to QueryMES if the control box receives the product bar code SN.
7. The product detection code scanning method of claim 6, wherein the third data packet comprises: the fixture bar code data, the control box equipment ID data and the code scanning equipment ID data; the fourth packet includes: bar code data, control box device ID data, and code scanning device ID data.
8. The product detection code scanning method according to claim 1, wherein the code scanning device prompts that the product is a defective product comprises: and the red light corresponding to the code scanning equipment is turned off after being turned on for two seconds, and the buzzer makes a three-sound drop.
9. The product detecting and code scanning method of claim 1,
when the MES uploading mode is a serial port instruction waiting mode, the serial port receives an instruction from the code scanning equipment, a data packet formed by the bar code data, the control box equipment ID data and the code scanning equipment ID data is transmitted to the AddMES interface, the AddMES interface judges according to the received data packet, and returns a judgment result to the control box;
and when the MES uploading mode is a direct uploading mode, directly taking a data packet formed by the bar code data, the control box equipment ID data, the code scanning equipment ID data and the operator ID data as a parameter and calling an AddMES interface, wherein the AddMES interface judges according to the received data packet and returns a judgment result to the control box.
10. The product detecting and code scanning method of claim 9,
if the control box receives the qualified data, the green light corresponding to the code scanning device is turned off after being turned on for two seconds, the buzzer makes a sound, and the process is ended;
if the control box receives the error data, the yellow lamp corresponding to the code scanning device is turned off after being turned on for two seconds, and the buzzer makes two sounds, so that the flow is ended;
and if the control box receives the unqualified data, the red light corresponding to the code scanning device is turned off after being turned on for two seconds, the buzzer makes a three-tone sound, and the process is ended.
CN202110390670.9A 2021-04-12 2021-04-12 Product detection code scanning method Pending CN113033237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110390670.9A CN113033237A (en) 2021-04-12 2021-04-12 Product detection code scanning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110390670.9A CN113033237A (en) 2021-04-12 2021-04-12 Product detection code scanning method

Publications (1)

Publication Number Publication Date
CN113033237A true CN113033237A (en) 2021-06-25

Family

ID=76456346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110390670.9A Pending CN113033237A (en) 2021-04-12 2021-04-12 Product detection code scanning method

Country Status (1)

Country Link
CN (1) CN113033237A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756002A (en) * 2022-04-08 2022-07-15 苏州威达智电子科技有限公司 Multifunctional detection equipment adopting microcontroller and control system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639620A (en) * 2015-01-14 2015-05-20 深圳市赛格导航科技股份有限公司 Automatic ID (Identity) management method and system
CN105930760A (en) * 2016-04-22 2016-09-07 歌尔声学股份有限公司 Packing method based on automatic code scanning and packing system thereof
CN112052695A (en) * 2020-07-10 2020-12-08 蔚复来(浙江)科技股份有限公司 Method for acquiring scanned data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639620A (en) * 2015-01-14 2015-05-20 深圳市赛格导航科技股份有限公司 Automatic ID (Identity) management method and system
CN105930760A (en) * 2016-04-22 2016-09-07 歌尔声学股份有限公司 Packing method based on automatic code scanning and packing system thereof
CN112052695A (en) * 2020-07-10 2020-12-08 蔚复来(浙江)科技股份有限公司 Method for acquiring scanned data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756002A (en) * 2022-04-08 2022-07-15 苏州威达智电子科技有限公司 Multifunctional detection equipment adopting microcontroller and control system thereof

Similar Documents

Publication Publication Date Title
EP0774876B1 (en) Cell testing in cellular telecommunication network
CN106707988A (en) MES system for engine online assembly control
CN109548057B (en) Method and system for monitoring and maintaining base station
CN109669705B (en) Method and system for programming firmware
CN113033237A (en) Product detection code scanning method
CN106950937A (en) Production status monitoring method and system
CN111126530A (en) Ann lamp control system based on WeChat
CN114281619A (en) Automatic testing device and method for safety of server
CN110676191B (en) LED wafer test disassembly group combining and collecting method based on MES system
CN112598814A (en) Method for checking positions of power distribution network patrolmen
CN112867024A (en) Test method, system and communication equipment
CN216285536U (en) Automatic detection system
CN112073715B (en) Equipment, detection method thereof, production line and storage medium
KR20160109432A (en) Apparatus and method for remote management of part manufacturing using vision inspection
KR20230078729A (en) Printed circuit board remote optical maintenance method and system
CN112286157A (en) Order generation and product assembly method and device and electronic equipment
CN114218430A (en) Remote cooperative equipment operation and maintenance system, method and device
CN103150641B (en) Implementation method and the system of the quick quality judging of parts logistics
CN111391516A (en) Bar code printing system
CN109685170A (en) Equipment identification device, method and system
CN110365972A (en) A kind of web camera upgrades the method, apparatus and system of configuration, detection automatically
CN110446029A (en) Automated inspection method, system and the computer readable storage medium of electronic equipment
CN114398270A (en) Sample testing system and method for electronic product
CN109635967A (en) A kind of method and apparatus lifting machine overhauling
US11356331B2 (en) Wireless configuration diagnosis framework

Legal Events

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