The content of the invention
It is an object of the invention to provide a kind of wheel hub to be traced with the two-dimensional matrix dot matrix encoded based on BCD and its generation side
Method, it is big for solving traditional QR Quick Response Codes area, matrix shape can only be used, moulding is inflexible, no flexibility, many wheelboss flanges
The problem of loss of weight nest and spoke loss of weight nest can not provide effective mark space, and the mark time is grown, and post-production code text is impaired.
In order to solve the above technical problems, embodiments of the present invention disclose a kind of wheel hub retrospect with being encoded based on BCD
The generation method of two-dimensional matrix dot matrix, comprises the following steps:
The tracing information of the wheel hub is encoded to and is combined including multiple digital numerals;
Multiple numerals in the numeral combination are subjected to BCD codings respectively, so as to generate multiple binary-coded decimals;
Multiple binary-coded decimals are respectively converted into the code text unit of 2 × 2 lattice structure set in advance, one of BCD
Code uniquely corresponds to 2 × 2 lattice structures;
There are 2 × 2 lattice structures of 4 points as direction code using one, and the direction is piled up in the two-dimensional matrix
The upper left corner of dot matrix;
The direction code and all yards of literary units are subjected to computing, obtain the check code of 2 × 2 lattice structures, and will
The check code is placed on last position of the two-dimensional matrix dot matrix;
The code text unit is successively placed in the rest position of the two-dimensional matrix dot matrix, so as to be formed complete described
Two-dimensional matrix dot matrix.
Embodiments of the present invention also disclose a kind of retrospect of wheel hub with the two-dimensional matrix dot matrix encoded based on BCD, including:
The literary unit of direction code, check code and multiple yards;
The direction code is located at the upper left corner of the two-dimensional matrix dot matrix, for representing the identification side of the code text unit
To;
The check code is located at last position of the two-dimensional matrix dot matrix, for detecting the correctness of the code text unit
Or correct the code text unit misread;
Multiple code text units are sequentially located in the rest position of the two-dimensional matrix dot matrix, for representing the wheel hub
Tracing information;
The code text unit is 2 × 2 lattice structures being converted into by binary-coded decimal, and the binary-coded decimal is carried out by numeral 0 to 9
BCD coding generations, and preset a binary-coded decimal uniquely corresponding 2 × 2 lattice structures;
The direction code is 2 × 2 lattice structures with 4 points;
The check code is 2 × 2 lattice structures obtained by the direction code and all yards of literary units progress computings.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
The tracing information of wheel hub is encoded to the two-dimensional matrix dot matrix based on BCD codings, simple in structure, identifiability is high;
It can according to the actual requirements increase and decrease, adjust and deform, the code text for being suitable for various complex conditions applies quarter, detection demand;Have
Check code, has certain mistake proofing error correcting capability.
Further, wheel hub retrospect is with the two-dimensional matrix dot matrix encoded based on BCD, has that flexibility is high, can be according to specific
Loss of weight nest shape size is deformed, and does not influence identification of the later stage to code text content.
Further, code text content is dot matrix, and due to being physics mode mark after mark, code text point is deep and clear, completely
Adapt to all process steps in wheel hub process of manufacture, all process steps all after the completion of, code text content still clear not damaged.
Further, coding rule is simple, low to points and code text shape need, it is only necessary to which the extremely short time can be complete
It is in dozen to be denoted as industry, and can be suitable for all kinds by way of deformation in the case where not carrying out Secondary Design to wheel hub
Wheel hub.
Embodiment
In the following description, many ins and outs are proposed in order to make reader more fully understand the application.But this
Even if the those of ordinary skill in field is appreciated that without these ins and outs and many variations based on following embodiment
And modification, it can also realize each claim of the application technical solution claimed.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with implementation of the attached drawing to the present invention
Mode is described in further detail.
First embodiment of the invention is related to a kind of generation side of wheel hub retrospect with the two-dimensional matrix dot matrix encoded based on BCD
Method.Fig. 5 is flow diagram of the wheel hub retrospect with the generation method of the two-dimensional matrix dot matrix encoded based on BCD.
Specifically, as shown in figure 5, the wheel hub traces the generation method bag with the two-dimensional matrix dot matrix encoded based on BCD
Include following steps:
In step 501, the tracing information of wheel hub is encoded to and is combined including multiple digital numerals.
Then into step 502, multiple numerals during word is combined carry out BCD codings respectively, so as to generate multiple BCD
Code.
Then into step 503, multiple binary-coded decimals are respectively converted into the code Wen Dan of 2 × 2 lattice structure set in advance
Member, one of binary-coded decimal uniquely correspond to 2 × 2 lattice structures.
2 × 2 lattice structure that the literary unit of code is converted into by binary-coded decimal, code text unit can represent metric digital 0 to
9。
, it is necessary to which 2 × 2 lattice structures corresponding with presetting binary-coded decimal, the two is one in the embodiments of the present invention
One-to-one correspondence.
Preferably, shown in Fig. 6 it is a kind of yard of literary unit and metric digital 0 to 9 correspondence.Need what is illustrated
It is in the embodiments of the present invention, to be illustrated by taking the correspondence shown in Fig. 6 as an example.
Certainly, this is a preferred embodiment, in other embodiments of the invention, code text unit and metric number
Word 0 to 9 can be other correspondence, be not limited thereto.
Then into step 504, there are 2 × 2 lattice structures of 4 points as direction code using one, and by direction code
It is placed on the upper left corner of two-dimensional matrix dot matrix.Direction code is used for the identification direction for representing the code text unit.
Therefore, direction code is clearly distinguishable from code text unit and check code, has uniqueness.Also, it is combined two codes
Literary unit, or one code text unit of combination and check code, cannot form the code text identical with upper left corner direction code, so that not
It can influence the identification direction of code text.
Then into step 505, direction code and all yards of literary units are subjected to computings, obtain 2 × 2 lattice structure
Check code, and verification is piled up in last position of two-dimensional matrix dot matrix.
In the present embodiment, it is preferable that check code is to carry out summation operation (and verification) by direction code and all yards of texts
Or odd even judges that (even-odd check) or cyclic redundancy calculate what (cyclic redundancy check) obtained, can with the correctness of detection code text or
Person corrects the code text misread part.
Then into step 506, code text unit is successively placed in the rest position of two-dimensional matrix dot matrix, so as to formed
Whole two-dimensional matrix dot matrix.
Hereafter this flow is terminated.
In conclusion wheel hub retrospect is with the two-dimensional matrix dot matrix encoded based on BCD, by direction code, check code and multiple
The literary unit composition of code.Code literary unit, direction code and check code are the lattice structure of one 2 × 2.
The literary content of code is dot matrix, and due to being physics mode mark after mark, code text point is deep and clear, adapts to wheel hub life completely
Produce all process steps in process, all process steps all after the completion of, code text content still clear not damaged.
It is low to points and code text shape need also, coding rule is simple, it is only necessary to which that the extremely short time can complete to beat
Industry is denoted as, and can be suitable for various types of wheels by way of deformation in the case where not carrying out Secondary Design to wheel hub
Hub.
Wheel hub retrospect is deformed into dot matrix with the two-dimensional matrix dot matrix encoded based on BCD by the corresponding binary-coded decimal of numeral, with minimum
Count out and illustrate 0 to 9 totally 10 numerals, it is simple in structure.Described horizontal and vertical parity check code averagely counting is 1.7, corresponding 7 digit numeric codes
Text, maximum number of points is 27 points, and the DataMatrix Quick Response Codes of same 7 digit numeric code text, and point horizontal and vertical parity check code averagely counting is 8.2, most
Big points are 84 points, therefore structure is simpler and more conducively mechanical marking.Since dot matrix has direction code, and direction code is in 2 × 2
Square formation, is easy to position, and morphological transformation is carried out further according to square formation length and width, so that alignment code text region;Grown further according to square formation unit
Width is split, and judges that elemental area can obtain code text bit stream and then parse code text in region, method is simple and applicable
It is high in various modifications, identity.
Fig. 7 is basic structure and layout of a kind of wheel hub retrospect with the two-dimensional matrix dot matrix encoded based on BCD.Wherein, 1.
Represent direction code, 2. represent code text unit, 3. represent check code.
2. code text that each code text unit can express is that ten's digit " 0 " is extremely digital " 9 ", corresponding by numeral
Binary-coded decimal correspondence as shown in Figure 6 is converted to.In addition, dot matrix blank in order to prevent, strengthens identifiability, can be with binary-coded decimal
The binary-coded decimal that calculating rule obtains " 10 " is 1010, with the digital " 0 " of this digitized representation reality.
As shown in fig. 7, code therein is literary " 1234579 ".Especially, if operation method using even-odd check:Very (1)
+ even (2)+strange (3)+even (4)+strange (5)+strange (7)+strange (9)=strange, it is strange to define 1, and 2 be even, then is verified as strange (1).
Especially, if the operation method for using and verifying for:In Fig. 7, code text " 1234579 ", then be with verification computing
For 1+2+3+4+5+7+9=31 (3+1)=4, itself and verification are 4, if code text is " 1111311 ", and verification is calculated as 1+1+1
+ 1+3+1+1=9.
The code text that check code can be misread with the correctness of detection code text or amendment part.Especially, if being verified as 6, school
Proved recipe formula is and verifies that current identification code text is " 3333332 ", and the verification obtained by code text is 3+3+3+3+3+3+2=14 (1+
4)=5, inconsistent with the check code of identification, therefore, code text is incorrect;For be verified as 6, with literary " 3333332 " most one of code
The code text of cause is " 3333333 ", thus, it is possible to which it is 3 to correct last yard of text 2, completes to correct.
Moreover it is preferred that direction code, code text unit and check code can be combined to the two-dimensional matrix dot matrix of arbitrary shape, with
The painting under complex environment is adapted to carve and detect.
For example, wheel hub retrospect is carved 7 digit numeric codes text to apply, is added with the two-dimensional matrix dot matrix encoded based on BCD
Upper direction code and check code totally 9, can carve the square matrix that region deformation is 3 × 3 according to actual apply, can be deformed into 2 × 5 or
5 × 2 rectangular matrix, also can be deformed into 1 × 9 or 9 × 1 stripe matrix.
Specifically, as shown in figure 8, Fig. 8 is wheel hub retrospect shown in Fig. 7 with the two-dimensional matrix dot matrix encoded based on BCD
A kind of deformation layout.Wherein, 5. represent direction code, 6. represent code text unit, 7. represent check code.As shown in Figure 73 × 3
Square matrix, be deformed into 1 × 9 stripe matrix.Simply form is changed, direction code, code text unit and school therein
Test code all not become, that is, the wheel hub tracing information represented by it does not become.
Fig. 9 is another deformation layout of the wheel hub retrospect shown in Fig. 7 with the two-dimensional matrix dot matrix encoded based on BCD.Its
In, 8. represent direction code, 9. represent code text unit, 10. represent check code, 11 represent filler code text unit.
Therefore, wheel hub retrospect with the two-dimensional matrix dot matrix encoded based on BCD can according to the actual requirements, according to mark location into
Row deformation, the code text painting quarter for adapting to complex condition requires, and does not influence identification of the later stage to code text content.
The tracing information of wheel hub is encoded to the two-dimensional matrix dot matrix based on BCD codings, pneumatically or electrically moving-needle type can be used
Marking machine directly carries out mark operation by physics mode on wheel hub loss of weight nest surface, and main mark location is in flange loss of weight nest
And in spoke loss of weight nest, simple in structure, identifiability is high;It can according to the actual requirements increase and decrease, adjust and deform, be suitable for various
The code text of complex condition applies quarter, detection demand;With check code, there is certain mistake proofing error correcting capability.
The present invention solves wheel hub traceability code in complex condition, the identifiability of code text, the time length for applying quarter code text, painting
The problem of carving position limitation code text size and form.
The each method embodiment of the present invention can be realized in a manner of software, hardware, firmware etc..No matter the present invention be with
Software, hardware or firmware mode realize that instruction code may be stored in any kind of computer-accessible memory
In (such as permanent either revisable volatibility is either non-volatile solid or non-solid, it is fixed or
Replaceable medium of person etc.).Equally, memory may, for example, be programmable logic array (Programmable Array
Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), programmable read-only deposit
Reservoir (Programmable Read Only Memory, referred to as " PROM "), read-only storage (Read-Only Memory, letter
Claim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as
" EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Second embodiment of the invention is related to a kind of wheel hub retrospect with the two-dimensional matrix dot matrix encoded based on BCD.Fig. 7 extremely schemes
9 be structure diagram of the wheel hub retrospect with the two-dimensional matrix dot matrix encoded based on BCD.
Specifically, as shown in Figure 7 to 9, wheel hub retrospect is included with the two-dimensional matrix dot matrix encoded based on BCD:Side
To the literary unit of code, check code and multiple yards;
Direction code is located at the upper left corner of two-dimensional matrix dot matrix, for representing the identification direction of code text unit.
Check code is located at last position of two-dimensional matrix dot matrix, is misread for the correctness of detection code text unit or amendment
Code text unit.
Multiple yards of literary units are sequentially located in the rest position of two-dimensional matrix dot matrix, for representing wheel hub tracing information.
The literary unit of code is 2 × 2 lattice structures being converted into by binary-coded decimal, and binary-coded decimal is to carry out BCD coding lifes by numeral 0 to 9
Into, and preset a binary-coded decimal uniquely corresponding 2 × 2 lattice structures;
Direction code is 2 × 2 lattice structures with 4 points;
Check code is 2 × 2 lattice structures obtained by the direction code and all yards of literary units progress computings.
Here computing can be that summation operation (and verification) or odd even judge (even-odd check) or cyclic redundancy computing
(cyclic redundancy check).Check code is used for the correctness of detection code text or corrects the code text misread part.
Wheel hub retrospect is simple with the two-dimensional matrix lattice structure encoded based on BCD, and identifiability is high;Can be according to reality
Demand increases and decreases, adjustment and deformation, the code text for being suitable for various complex conditions apply quarter, detection demand;With check code, have one
Fixed mistake proofing error correcting capability.
First embodiment is can to implement with the corresponding method embodiment of present embodiment, present embodiment with first
Mode is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to
Reduce and repeat, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the first implementation
In mode.
It should be noted that in the claim and specification of this patent, such as first and second or the like relation
Term is used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying
There are any actual relationship or order between these entities or operation.Moreover, term " comprising ", "comprising" or its
Any other variant is intended to non-exclusive inclusion so that process, method, article including a series of elements or
Equipment not only includes those key elements, but also including other elements that are not explicitly listed, or further include for this process,
Method, article or the intrinsic key element of equipment.In the absence of more restrictions, wanted by what sentence " including one " limited
Element, it is not excluded that also there are other identical element in the process, method, article or apparatus that includes the element.
Although by referring to some of the preferred embodiment of the invention, the present invention is shown and described,
It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair
Bright spirit and scope.