CN109886711A - A kind of bar code coding method and device - Google Patents

A kind of bar code coding method and device Download PDF

Info

Publication number
CN109886711A
CN109886711A CN201910134287.XA CN201910134287A CN109886711A CN 109886711 A CN109886711 A CN 109886711A CN 201910134287 A CN201910134287 A CN 201910134287A CN 109886711 A CN109886711 A CN 109886711A
Authority
CN
China
Prior art keywords
code
manufacturer
bar code
cognizance
biased exponent
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
CN201910134287.XA
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910134287.XA priority Critical patent/CN109886711A/en
Publication of CN109886711A publication Critical patent/CN109886711A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention discloses a kind of bar code coding method and devices, are related to product coding, product sale, bar code coding techniques field, wherein bar code coding method, comprising: obtain the manufacturer's cognizance code and commodity item code of user's input;In the case of manufacturer's cognizance code and commodity item code meet preset condition, biased exponent is set, according to biased exponent, manufacturer's cognizance code, commodity item code building check code;Bar code symbol is generated according to biased exponent, manufacturer's cognizance code, commodity item code, check code.Bar code coding method provided by the invention, in such a way that biased exponent is set, the data length for expanding code, in the case where not changing bar code full size, by implying coding techniques, retail bar code is set to increase to 14, in the case where not increasing cost, existing bar code distribution resource is set to be expanded, further, biased exponent is set as 0, so that the bar code that this coding method generates is compatible with EAN-13 bar code.

Description

A kind of bar code coding method and device
Technical field
The present embodiments relate to product codings, product sale, bar code coding techniques field, and in particular to Yi Zhongshang Product barcode encoding method and device.
Background technique
Bar code be by as defined in International Article Numbering Association (GS1), for indicate Retail commodity, non-Retail commodity, The bar code mark of the codes such as Logistic Unit, participant position.Specifically, bar code is by one group of regularly arranged item, idle pattern And its corresponding label that character composition is identified for people.In bar code, idle pattern part be known as bar code symbol, it is right That answers identifies commodity sign code represented by character namely bar code symbol for people.Bar code symbol has easy to operate, letter Breath acquisition speed is fast, information collection amount is big, high reliablity, it is low in cost the features such as.
Currently, common code system has EAN bar code, UPC bar code, two or five bar codes, intersects two or five bar codes, codabar bar code, three Nine bar codes and 128 bar codes etc., and most-often used on commodity is exactly EAN bar code.
EAN bar code is also known as general commodity bar code, is formulated by International Article Numbering Association, is common to all over the world, is Most popular a kind of bar code in the world.What China carried out using at home is also this bar code.EAN commodity item Code is divided into two kinds of EAN-13 (standard edition) and EAN-8 (shortening version).The inventors discovered that in the prior art, with bar code application Increasing for user member and type of merchandize, is limited, bar code resource is more and more nervous by a code bit number.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of bar code coding method and device, to solve to exist in the prior art The problem of.
To achieve the goals above, embodiments of the present invention provide the following technical solutions:
In the first aspect of embodiments of the present invention, a kind of bar code coding method is provided, comprising:
Obtain the manufacturer's cognizance code and commodity item code of user's input;
In the case of manufacturer's cognizance code and the commodity item code meet preset condition, biased exponent, root are set According to the biased exponent, manufacturer's cognizance code and the commodity item code building check code;
A code symbol is generated according to the biased exponent, manufacturer's cognizance code, the commodity item code, the check code Number.
In another embodiment, manufacturer's cognizance code and commodity item code meet preset condition, comprising:
Manufacturer's cognizance code is made of 7 to 10 bit digitals, and the commodity item code is made of 5 to 2 bit digitals, and And manufacturer's cognizance code and the commodity item code totally 12 bit digital.
In another embodiment, the setting biased exponent, comprising:
From 0, a, b, c, d, e, f, g, h obtain any one character as biased exponent in i.
In another embodiment, the biased exponent is 0, represents data 0, and biased exponent is a to i, successively represents data 10 to 18.
In another embodiment, described according to the biased exponent, manufacturer's cognizance code, the commodity item code building Check code, comprising:
It by commodity item code, manufacturer's cognizance code and biased exponent, is arranged by the sequence of right-to-left, increases by one in right end The unknown number in position is used as check code, and right-to-left is numbered in sequence since the check code, by the number on even number bit number Word does add operation, and obtained operation result and preset data do multiplying, obtains the first calculated result, is 3 from number Odd bits start, and the number on each odd number bit number is done add operation, and obtained operation result and described first are calculated and tied Fruit is cooked add operation, obtains the second calculated result, and acquisition is more than or equal to second calculated result and is 10 integral multiple Minimum number does subtraction with second calculated result, and obtained calculated result is as check code.
In another embodiment, described according to the biased exponent, manufacturer's cognizance code, the commodity item code, institute It states check code and generates bar code symbol, comprising:
By the check code, the commodity item code, manufacturer's cognizance code and the biased exponent, according to right-to-left Sequential concatenation generate bar code code, according to the bar code code building bar code symbol.
It is in another embodiment, described according to the bar code code building bar code symbol, comprising:
From the bar code code, right side data symbols numerical value, left data symbol numerical value are obtained, before left data symbol is corresponding Set yardage value and the corresponding preamble numerical value of right side data symbols;
Corresponding preamble numerical value is accorded with according to the left data, according to preset left data symbol bar code character Collect alternation rule, converts left data symbol for left data symbol numerical value;
According to the corresponding preamble numerical value of the right side data symbols, according to preset right side data symbol bar code character Collect alternation rule, converts right side data symbols for the right side data symbols numerical value;
Corresponding binary data is converted by the check code, as check character;
According to left data symbol, the right side data symbols, the check character, according to left side blank area, starting character, a left side Side data symbol, central seperating character, right side data symbols, check character, full stop, right side blank area, worker identify that the sequence of character is raw At bar code symbol.
In the second aspect of embodiments of the present invention, a kind of bar code code device is provided, comprising:
Module is obtained, for obtaining the manufacturer's cognizance code and commodity item code of user's input;
Correction verification module, for meeting the situation of preset condition in manufacturer's cognizance code and the commodity item code Under, biased exponent is set, according to the biased exponent, manufacturer's cognizance code and the commodity item code building check code;
Bar code symbol generation module, for according to the biased exponent, manufacturer's cognizance code, the commodity item code, The check code generates bar code symbol.
In another embodiment, the correction verification module is made of for manufacturer's cognizance code 7 to 10 bit digitals, institute It states commodity item code to be made of 5 to 2 bit digitals, and manufacturer's cognizance code and the commodity item code totally 12 digit In the case of word, biased exponent is set, is verified according to the biased exponent, manufacturer's cognizance code and the commodity item code building Code.
In the third aspect of embodiments of the present invention, a kind of computer readable storage medium, the calculating are provided Program is stored in machine readable storage medium storing program for executing, described program is for realizing the bar code coding staff as described in claim 1 to 7 Method.
Embodiment according to the present invention has the advantages that bar code coding method provided by the invention, by setting The mode for setting biased exponent expands the data length of code, in the case where not changing bar code full size, by implying coding techniques, So that retail bar code is increased to 14, in the case where not increasing cost, so that existing bar code distribution resource is expanded, further Biased exponent is set as 0 by ground, so that the bar code that this coding method generates is compatible with EAN-13 bar code.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Fig. 1 is a kind of bar code coding method flow chart that one embodiment of the invention provides;
Fig. 2 is a kind of bar code code device structural block diagram that another embodiment of the present invention provides.
In figure: 401 be obtain module, 402 be correction verification module, 403 be bar code symbol generation module.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
In the first aspect of the present invention, a kind of bar code coding method is provided, as shown in Figure 1, comprising:
Step 201: obtaining the manufacturer's cognizance code and commodity item code of user's input;
In embodiments of the present invention, it obtains and the manufacturer's cognizance code for distributing and managing is responsible for by Article Numbering Center of China, Manufacturer's cognizance code is 7 to 10 bit digitals composition.It obtains and is worked out by manufacturer or establishment is responsible for by Article Numbering Center of China Commodity item code, wherein commodity item code is made of 5 to 2 bit digitals.Manufacturer's cognizance code and commodity item code are total 12 bit digitals.
Step 202: in the case of manufacturer's cognizance code and commodity item code meet preset condition, biased exponent, root are set According to biased exponent, manufacturer's cognizance code and commodity item code building check code;
In embodiments of the present invention, manufacturer's cognizance code and commodity item code are judged respectively, is identified in manufacturer Code is made of 7 to 10 bit digitals, and commodity item code is made of 5 to 2 bit digitals, and manufacturer's cognizance code and commodity item Code in the case of totally 12 bit digitals, determines that manufacturer's cognizance code and commodity item code meet preset condition.
Biased exponent is a character, can be 0, a, b, c, d, e, f, g, h, any one in i.Check code is one digit number Word is arranged commodity item code, manufacturer's cognizance code and biased exponent by the sequence of right-to-left, increases by one not in right end Number is known as check code, and right-to-left is numbered in sequence since check code, and the number on even number bit number is done addition Operation, obtained operation result and preset data do multiplying, obtain the first calculated result, wherein preset data 3.Increase Code is 0, represents data 0, and biased exponent is a to i, successively represents data 10 to 18.Since the odd bits that number is 3, by each odd number Number on bit number does add operation, and obtained operation result and the first calculated result are done add operation, obtain the second meter It calculates as a result, acquisition does subtraction with the second calculated result more than or equal to the second calculated result and the minimum number of the integral multiple for 10 Operation, obtained calculated result is as check code.
In embodiments of the present invention, with biased exponent for 0, manufacturer's cognizance code is 6901234, and commodity item code is 56789 It illustrates, commodity item code 56789, manufacturer's cognizance code 6901234, biased exponent 0 is arranged by the sequence of right-to-left, Increase a unknown number in right end and is used as check bit X1, right-to-left number 1 to 14 in sequence, obtains since check bit It is 0690123456789X to sequence1, the number on even number bit number is done into add operation i.e. 9+7+5+3+1+9=34, will To operation result 34 and preset data 3 do multiplying, obtain the first calculated result 102.It is opened from the odd bits that number is 3 Begin, the number on each odd number bit number is done into add operation i.e. 8+6+4+2+0+6, obtained operation result 26 and first are calculated As a result 102 add operation is done, obtains the second calculated result 128, obtain the integer for being more than or equal to the second calculated result and being 10 Minimum number 130 again, does subtraction with the second calculated result 128, and obtained calculated result 2 is used as check code.
Step 203: bar code symbol is generated according to biased exponent, manufacturer's cognizance code, commodity item code, check code.
In embodiments of the present invention, by check code, commodity item code, manufacturer's cognizance code and biased exponent according to right-to-left Sequential concatenation generate bar code code specifically included according to bar code code building bar code symbol: bar code code is divided, Using the first bit digital of right side as check code, five digit number is obtained since the second-order digit of right side, as right side data Numerical value is accorded with, the 7th bit digital of right side is started to obtain six bit digitals, numerical value is accorded with as left data, obtains right side the 13rd Position, the tenth four figures evidence, as preamble numerical value, wherein the 13rd bit digital of right side is obtained, as left data Corresponding preamble numerical value is accorded with, the tenth four figures evidence of right side is obtained, as the corresponding preamble numerical value of right side data symbols.Root Corresponding preamble numerical value is accorded with according to left data, according to left data symbol bar code character set alternation rule, by left-hand digit It is converted into left data symbol according to symbol numerical value, according to the corresponding preamble numerical value of right side data symbols, according to right side data symbol commodity Right side data symbols numerical value is converted right side data symbols by bar code character set alternation rule.By check code be converted into corresponding two into Data processed.By the corresponding binary number of data each in bar code code, according to left side blank area, starting character, left data symbol, centre Separator, right side data symbols, check character, full stop, right side blank area, worker identify that character is sequentially generated bar code symbol.
In embodiments of the present invention, by check code 2, commodity item code 56789, manufacturer's cognizance code 6901234 and increasing Code 0 generates bar code code 06901234567892 according to the sequential concatenation of right-to-left, by bar code code 06901234567892 It is divided, using the first bit digital of right side as check code, five digit number 56789 is obtained since the second-order digit of right side, it will It is used as right side data symbols numerical value, the 7th bit digital of right side is started to obtain six bit digitals 901234, as left data Numerical value is accorded with, right side the 13rd and the tenth four figures evidence are obtained, as preamble numerical value, wherein the 13rd digit of right side Word 6 accords with corresponding preamble numerical value as left data, and the tenth four figures of right side is according to 0, as right side data symbols pair The preamble numerical value answered.Corresponding preamble numerical value 6 is accorded with according to left data, from left data symbol bar code character set In alternation rule such as table 1, selection is corresponding to be arranged as ABBBAA.
The alternation rule of 1 left data of table symbol bar code character set
According to arrangement ABBBAA from bar code character set binary representation such as table 2, obtains left data and accord with numerical value 901234 In the corresponding binary data of each character, wherein 9 corresponding 0001011 be represented in binary as in A subset, 0 corresponding two into 0100111,1 corresponding 0110011 be represented in binary as in B subset that tabulation is shown as in B subset, 2 corresponding binary forms 0011011 be shown as in B subset, 3 corresponding 0111101 be represented in binary as in A subset, 4 corresponding are represented in binary as A 0100011 in subset, each binary data is combined into left data symbol.
The binary representation of 2 bar code character set of table
According to the corresponding preamble numerical value 0 of right side data symbols, advised from the selection of right side data symbol bar code character set It then is arranged as CCCCCC as in table 3, selection is corresponding, according to arrangement CCCCCC from bar code character set binary representation such as table 2, The corresponding binary data of each character in right side data symbols numerical value 56789 is obtained, right side data symbols are obtained.Check code is used into C Subset indicates, obtains corresponding binary data.The corresponding binary data of data each in bar code code is generated into bar code symbol.
The alternation rule of 3 right side data symbols bar code character set of table
In second aspect of the present invention, a kind of bar code code device is provided, as shown in Figure 2, comprising:
Module 401 is obtained, for obtaining the manufacturer's cognizance code and commodity item code of user's input;
In embodiments of the present invention, module 401 is obtained, for obtaining manufacturer's cognizance code of user's input, manufacturer's identification Code is responsible for distributing and be managed by Article Numbering Center of China, which is 7 to 10 bit digitals composition.Obtain user The commodity item code of input, commodity item code are worked out by manufacturer or are responsible for establishment by Article Numbering Center of China, In, commodity item code is made of 5 to 2 bit digitals.Manufacturer's cognizance code and commodity item code totally 12 bit digital.
Correction verification module 402, for being arranged in the case of manufacturer's cognizance code and commodity item code meet preset condition Biased exponent, according to the biased exponent, manufacturer's cognizance code, the commodity item code building check code;
In embodiments of the present invention, correction verification module 402, for being made of in manufacturer's cognizance code 7 to 10 bit digitals, commodity Item code is made of 5 to 2 bit digitals, and manufacturer's cognizance code and commodity item code be in the case of totally 12 bit digitals, if Biased exponent is set, according to the biased exponent, manufacturer's cognizance code and the commodity item code building check code.
One character is set as biased exponent, can be 0, a, b, c, d, e, f, g, h, any one in i.Check code is one Bit digital is arranged commodity item code, manufacturer's cognizance code and biased exponent by the sequence of right-to-left, increases by one in right end The unknown number in position is used as check code, and right-to-left is numbered in sequence since check code, and the number on even number bit number is done Add operation, obtained operation result and preset data do multiplying, obtain the first calculated result, wherein preset data is 3.Biased exponent is 0, represents data 0, and biased exponent is a to i, successively represents data 10 to 18.It, will be each since the odd bits that number is 3 Number on odd number bit number does add operation, and obtained operation result and the first calculated result are done add operation, obtains Two calculated results obtain the minimum number for being more than or equal to the second calculated result and the integral multiple for 10, do with the second calculated result Subtraction, obtained calculated result is as check code.
In embodiments of the present invention, with biased exponent for 0, manufacturer's cognizance code is 6901234, and commodity item code is 56789 It illustrates, commodity item code 56789, manufacturer's cognizance code 6901234, biased exponent 0 is arranged by the sequence of right-to-left, Increase a unknown number in right end and is used as check bit X1, right-to-left number 1 to 14 in sequence, obtains since check bit It is 0690123456789X to sequence1, the number on even number bit number is done into add operation i.e. 9+7+5+3+1+9=34, will To operation result 34 and preset data 3 do multiplying, obtain the first calculated result 102.It is opened from the odd bits that number is 3 Begin, the number on each odd number bit number is done into add operation i.e. 8+6+4+2+0+6, obtained operation result 26 and first are calculated As a result 102 add operation is done, obtains the second calculated result 128, obtain the integer for being more than or equal to the second calculated result and being 10 Minimum number 130 again, does subtraction with the second calculated result 128, and obtained calculated result 2 is used as check code.
Bar code symbol generation module 403, for according to the biased exponent, manufacturer's cognizance code, the commodity item generation Code, the check code generate bar code symbol.
In embodiments of the present invention, bar code symbol generation module 403, for knowing check code, commodity item code, manufacturer Other code and biased exponent generate bar code code according to the sequential concatenation of right-to-left, according to bar code code building bar code symbol, specifically It include: to divide bar code code, using the first bit digital of right side as check code, the acquisition five since the second-order digit of right side Bit digital starts the 7th bit digital of right side to obtain six bit digitals, as left-hand digit as right side data symbols numerical value According to symbol numerical value, right side the 13rd, the tenth four figures evidence are obtained, as preamble numerical value, wherein obtain right side the 13rd Bit digital accords with corresponding preamble numerical value as left data, the tenth four figures evidence of right side is obtained, as right-hand component According to the corresponding preamble numerical value of symbol.Corresponding preamble numerical value is accorded with according to left data, according to left data symbol bar code Character set alternation rule converts left data symbol for left data symbol numerical value, according to the corresponding preposition yardage of right side data symbols Value converts right side data symbols for right side data symbols numerical value according to right side data symbol bar code character set alternation rule.It will Check code is converted into corresponding binary data.By the corresponding binary number of data each in bar code code, according to left side blank area, Starting character, left data symbol, central seperating character, right side data symbols, check character, full stop, right side blank area, worker identify character Be sequentially generated bar code symbol.
In embodiments of the present invention, by check code 2, commodity item code 56789, manufacturer's cognizance code 6901234 and increasing Code 0 generates bar code code 06901234567892 according to the sequential concatenation of right-to-left, by bar code code 06901234567892 It is divided, using the first bit digital of right side as check code, five digit number 56789 is obtained since the second-order digit of right side, it will It is used as right side data symbols numerical value, the 7th bit digital of right side is started to obtain six bit digitals 901234, as left data Numerical value is accorded with, right side the 13rd and the tenth four figures evidence are obtained, as preamble numerical value, wherein the 13rd digit of right side Word 6 accords with corresponding preamble numerical value as left data, and the tenth four figures of right side is according to 0, as right side data symbols pair The preamble numerical value answered.Corresponding preamble numerical value 6 is accorded with according to left data, from left data symbol bar code character set In alternation rule such as table 3, selection is corresponding to be arranged as ABBBAA.
The alternation rule of 3 left data of table symbol bar code character set
According to arrangement ABBBAA from bar code character set binary representation such as table 4, obtains left data and accord with numerical value 901234 In the corresponding binary data of each character, wherein 9 corresponding 0001011 be represented in binary as in A subset, 0 corresponding two into 0100111,1 corresponding 0110011 be represented in binary as in B subset that tabulation is shown as in B subset, 2 corresponding binary forms 0011011 be shown as in B subset, 3 corresponding 0111101 be represented in binary as in A subset, 4 corresponding are represented in binary as A 0100011 in subset, each binary data is combined into left data symbol.
The binary representation of 4 bar code character set of table
Numerical character A subset B subset C subset D subset
0 0001101 0100111 1110010 1011000
1 0011001 0110011 1100110 1001100
2 0010011 0011011 1101100 1100100
3 0111101 0100001 1000010 1011110
4 0100011 0011101 1011100 1100010
5 0110001 0111001 1001110 1000110
6 0101111 0000101 1010000 1111010
7 0111011 0010001 1000100 1101110
8 0110111 0001001 1001000 1110110
9 0001011 0010111 1110100 1101000
According to the corresponding preamble numerical value 0 of right side data symbols, advised from the selection of right side data symbol bar code character set It then is arranged as CCCCCC as in table 5, selection is corresponding, according to arrangement CCCCCC from bar code character set binary representation such as table 4, The corresponding binary data of each character in right side data symbols numerical value 56789 is obtained, right side data symbols are obtained.Check code is used into C Subset indicates, obtains corresponding binary data.The corresponding binary data of data each in bar code code is generated into bar code symbol.
The alternation rule of 5 right side data symbols bar code character set of table
The method used through the invention, by implying coding techniques, makes zero in the case where not changing bar code full size Selling bar code increases to 14, in the case where not increasing cost, has expanded resource, and existing bar code distribution resource can be made to be delayed Solution.First be 0 when, it is compatible with EAN-13 bar code, first respectively A, B, C, D, E, F, G, H, I when, extendible resource, expansion Fill coded character set.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore, These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.

Claims (10)

1. a kind of bar code coding method characterized by comprising
Obtain the manufacturer's cognizance code and commodity item code of user's input;
In the case of manufacturer's cognizance code and the commodity item code meet preset condition, biased exponent is set, according to institute State biased exponent, manufacturer's cognizance code and the commodity item code building check code;
Bar code symbol is generated according to the biased exponent, manufacturer's cognizance code, the commodity item code, the check code.
2. the method as described in claim 1, which is characterized in that manufacturer's cognizance code and the commodity item code meet Preset condition, comprising:
Manufacturer's cognizance code is made of 7 to 10 bit digitals, and the commodity item code is made of 5 to 2 bit digitals, and institute State manufacturer's cognizance code and the commodity item code totally 12 bit digital.
3. the method as described in claim 1, which is characterized in that the setting biased exponent, comprising:
From 0, a, b, c, d, e, f, g, h obtain any one character as biased exponent in i.
4. method as claimed in claim 3, which is characterized in that the biased exponent is 0, represents data 0, and biased exponent is a to i, successively Represent data 10 to 18.
5. the method as described in claim 1, which is characterized in that it is described according to the biased exponent, it is manufacturer's cognizance code, described Commodity item code building check code, comprising:
It by commodity item code, manufacturer's cognizance code and biased exponent, is arranged by the sequence of right-to-left, increases by one not in right end Number is known as check code, and right-to-left is numbered in sequence since the check code, and the number on even number bit number is done Add operation, obtained operation result and preset data do multiplying, obtain the first calculated result, the odd number for being 3 from number Position starts, and the number on each odd number bit number is done add operation, obtained operation result and first calculated result are done Add operation obtains the second calculated result, obtains the minimum for being more than or equal to second calculated result and the integral multiple for 10 Number, does subtraction with second calculated result, obtained calculated result is as check code.
6. the method as described in claim 1, which is characterized in that it is described according to the biased exponent, it is manufacturer's cognizance code, described Commodity item code, the check code generate bar code symbol, comprising:
By the check code, the commodity item code, manufacturer's cognizance code and the biased exponent, according to the suitable of right-to-left Sequence splicing generates bar code code, according to the bar code code building bar code symbol.
7. method as claimed in claim 6, which is characterized in that described according to the bar code code building bar code symbol, comprising:
From the bar code code, right side data symbols numerical value is obtained, left data accords with numerical value, the corresponding preamble of left data symbol Numerical value and the corresponding preamble numerical value of right side data symbols;
Corresponding preamble numerical value is accorded with according to the left data, is selected according to preset left data symbol bar code character set With rule, left data symbol is converted by left data symbol numerical value;
According to the corresponding preamble numerical value of the right side data symbols, selected according to preset right side data symbol bar code character set With rule, right side data symbols are converted by the right side data symbols numerical value;
Corresponding binary data is converted by the check code, as check character;
According to left data symbol, the right side data symbols, the check character, according to left side blank area, starting character, left-hand digit Identify that character is sequentially generated item according to symbol, central seperating character, right side data symbols, check character, full stop, right side blank area, worker Code sign.
8. a kind of bar code code device characterized by comprising
Module is obtained, for obtaining the manufacturer's cognizance code and commodity item code of user's input;
Correction verification module, in the case of manufacturer's cognizance code and the commodity item code meet preset condition, if Biased exponent is set, according to the biased exponent, manufacturer's cognizance code and the commodity item code building check code;
Bar code symbol generation module, for according to the biased exponent, manufacturer's cognizance code, the commodity item code, described Check code generates bar code symbol.
9. device as claimed in claim 8, which is characterized in that the correction verification module is used in manufacturer's cognizance code by 7 It is formed to 10 bit digitals, the commodity item code is made of 5 to 2 bit digitals, and manufacturer's cognizance code and the quotient In the case of totally 12 bit digitals, biased exponent is arranged, according to the biased exponent, manufacturer's cognizance code and the commodity in product item code Item code generates check code.
10. a kind of computer readable storage medium, which is characterized in that it is stored with program in the computer readable storage medium, Described program is for realizing the bar code coding method as described in claim 1 to 7.
CN201910134287.XA 2019-02-22 2019-02-22 A kind of bar code coding method and device Pending CN109886711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910134287.XA CN109886711A (en) 2019-02-22 2019-02-22 A kind of bar code coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910134287.XA CN109886711A (en) 2019-02-22 2019-02-22 A kind of bar code coding method and device

Publications (1)

Publication Number Publication Date
CN109886711A true CN109886711A (en) 2019-06-14

Family

ID=66928922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910134287.XA Pending CN109886711A (en) 2019-02-22 2019-02-22 A kind of bar code coding method and device

Country Status (1)

Country Link
CN (1) CN109886711A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889479A (en) * 2019-11-20 2020-03-17 中国物品编码中心 Commodity anti-counterfeiting method based on six-code integration
CN112990404A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Method and device for generating sample identification code pattern, acquisition method and electronic equipment
CN113837823A (en) * 2021-08-16 2021-12-24 上海漫集信息科技有限公司 Commodity code generation method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055614A (en) * 2007-05-31 2007-10-17 王杰夫 Method and system for identifying agricultural product by code bar
CN103258182A (en) * 2013-05-24 2013-08-21 深圳市检验检疫科学研究院 Conversion method and system for article bar code and electronic tag
CN105631502A (en) * 2016-02-26 2016-06-01 金少军 Novel bar code
CN106709542A (en) * 2015-11-18 2017-05-24 广西职业技术学院 Six-coding element article bar code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055614A (en) * 2007-05-31 2007-10-17 王杰夫 Method and system for identifying agricultural product by code bar
CN103258182A (en) * 2013-05-24 2013-08-21 深圳市检验检疫科学研究院 Conversion method and system for article bar code and electronic tag
CN106709542A (en) * 2015-11-18 2017-05-24 广西职业技术学院 Six-coding element article bar code
CN105631502A (en) * 2016-02-26 2016-06-01 金少军 Novel bar code

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘鼎铭等: "《集装箱化与现代物流辞典 第2版》", 30 September 2010, 大连海运学院出版社 *
安立华等: "《物流信息系统》", 31 December 2013, 沈阳:东北财经大学出版社 *
张磊等: "《商品学》", 31 August 2018, 北京:中国铁道出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889479A (en) * 2019-11-20 2020-03-17 中国物品编码中心 Commodity anti-counterfeiting method based on six-code integration
CN110889479B (en) * 2019-11-20 2023-08-29 中国物品编码中心 Commodity anti-counterfeiting method based on six-code combination
CN112990404A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Method and device for generating sample identification code pattern, acquisition method and electronic equipment
CN113837823A (en) * 2021-08-16 2021-12-24 上海漫集信息科技有限公司 Commodity code generation method and system

Similar Documents

Publication Publication Date Title
CN103400174B (en) The coded method of a kind of Quick Response Code, coding/decoding method and system
CN109886711A (en) A kind of bar code coding method and device
CN102592160B (en) Character two-dimension code encoding and decoding method for short message
CN104579360B (en) A kind of method and apparatus of data processing
CN109450596A (en) Coding method, coding/decoding method, encoding device, decoding device, storage medium and terminal
CN101515335A (en) Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method
CN103279544A (en) Method and device for storing and inquiring tree structure data in relational database
WO2017198189A1 (en) Generation and reading method and device for colour identified colour two-dimensional figure code
US20190266474A1 (en) Systems And Method For Character Sequence Recognition
US20130026240A1 (en) Two-dimensional code, code generation system, program, and printed medium
CN104794619B (en) Anti-channel conflict digital information mapping code method for commodity packaging
CN110489466B (en) Method and device for generating invitation code, terminal equipment and storage medium
CN102842052B (en) A kind of identity code generating method
CN103577861B (en) Bar code structure and bar code encoding method
CN106557553B (en) Data matching method and device
CN105593876B (en) Validation in serialized streams
US7953975B2 (en) Method of generating anti-collusion fingerprint codes using (na,n2a−2,na−1,n,0,1) GD-PBIBD
US20140337984A1 (en) Verification of serialization codes
CN110097159A (en) A kind of QR code safety certifying method and system based on Hamming code
CN108446753A (en) Commodity two dimension code encoding method and system
Feng et al. Design and realization of 2D color barcode with high compression ratio
CN106130566A (en) A kind of 72 bit status information big data traceability system can error correction coding/decoding method
US9530028B2 (en) Identifiers for mass serialization
CN106533450B (en) PMS code compression method and device
CN104573782B (en) A kind of bar code encoding and decoding method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614