Calculation method for check code in bar code, and bar code verification method

A calculation method and barcode technology, which is applied in the field of calculation of check codes in barcodes, can solve problems such as the inapplicability of barcodes combining letters and characters, and achieve the effect of not being easy to copy/imitate, high accuracy, and simple steps

Active Publication Date: 2017-08-29
LENS TECH CHANGSHA
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method is only suitable for pure digital barcodes, b

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Calculation method for check code in bar code, and bar code verification method
  • Calculation method for check code in bar code, and bar code verification method
  • Calculation method for check code in bar code, and bar code verification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] A calculation method of a check code in a barcode, the barcode is 123568448569A45! (The last digit! Represents the inspection code that needs to be calculated), the number of digits of the barcode is 17 digits, and its coding rules are: the 1st-2nd digit is the part identification code, the 3rd-9th digit is the supplier code, and the 10th digit It is the production year, the 11th digit is the production month, the 12th-13th digit is the four-digit production date, the 14th digit is the part model, the 15th-17th digit is the production serial number (the 17th digit is the check code ). In addition, other coding methods recognized in the industry can also be used.

[0027] The calculation method of the check code in this barcode specifically includes the following steps:

[0028] Step 1: generate the first lookup table, see Table 1 for details, in the first lookup table: the barcode digits 0-9 in the barcode correspond to the values ​​0-9 in turn, and in the barcode dig...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A first purpose of the present invention is to provide a calculation method for the check code in a bar code. The calculation method comprises: 1, generating a first lookup table and a second lookup table; 2, after removing a check code bit from a bar code, marking odd-numbered bits and even odd-numbered bits from left to right, and replacing the odd-numbered bits and the even odd-numbered bits with numerical values of 0-33 according to the first lookup table in the step 1; 3, summing the numerical values of all the odd-numbered bits in the step 2, multiplying the sum by 3, and plusing the obtained result to the sum of the numerical values of all the even odd-numbered bits in the step 2 to obtain a total sum; 4, dividing the total sum by 34 to obtain a remainder; 5, subtracting 34 from the remainder obtained in the step 4 to obtain a difference; and 6, converting the difference obtained in the step 5 into a corresponding check code bit according to the second lookup table in the step 1. A second purpose of the present invention is to provide a verification method for the bar code obtained through the calculation method, wherein the verification process is simple, and the accuracy is high.

Description

technical field [0001] The invention relates to the technical field of bar codes, in particular to a calculation method of a check code in a bar code and a verification method of the bar code. Background technique [0002] Bar codes are now widely used in various fields of life. As an important symbol technology, barcode plays a very important role in the cross-industry information flow process such as electronic data interchange (EDI) and supply chain. [0003] At present, the barcodes of products on the market are composed of multiple numbers and letters, one of which is a checksum (Checksum / anti-counterfeiting code). In the prior art, a method for calculating a check code of a barcode is disclosed, which includes the following steps: the first step: number the barcode from right to left; the second step: start from the serial number 2 to find the sum of the numbers on the even digits; Step 3: Find the sum of the numbers on odd digits starting from serial number 3; Step ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06C3/00G06K7/14
CPCG06C3/00G06K7/1413
Inventor 周群飞饶桥兵谭珍勇
Owner LENS TECH CHANGSHA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products