Code table generating method
Code table generating method
 CN 101,872,412 A
 Filed: 06/01/2010
 Published: 10/27/2010
 Est. Priority Date: 06/01/2010
 Status: Active Application
First Claim
1. a code table generating method is characterized in that, described code table generating method comprises:
 A. generate first Serial No. and second Serial No.;
B. utilize the described second Serial No. generated codeword;
C. utilize described first Serial No. to generate sign character, and described sign character is carried out legitimacy judge;
D. determine to judge the legal described sign character and the corresponding relation of described code word.
Chinese PRB Reexamination
Abstract
The invention discloses a code table generating method, which comprises the following steps: generating a first digit sequence and a second digit sequence; using the second digit sequence to generate code words; using the first digit sequence to generate sign characters, and carrying out legality judgment on the sign characters; and determining the corresponding relationship of the sign characters which are judged to be legalized and the code words. Through the method, the first digit sequence and the second digit sequence are respectively used for generating the sign characters and the code words, and the corresponding relationship of different sign characters and code words can be obtained through respectively changing the first digit sequence and the second digit sequence, so code tables can be directly generated when being required without storing code tables in advance, and the requirement on ROM by a system is reduced.

5 Citations
A kind of method of freshair purifying equipment automatic identification/verification  
Patent #
CN 108,809,779 A
Filed 06/19/2018

Current Assignee

Method and device for coading, decoding and transmitting information, using sourcecontrolled channel decoding  
Patent #
CN 1,285,986 A
Filed 11/25/1998

Current Assignee

Simple decoding method and apparatus  
Patent #
CN 1,599,981 A
Filed 11/26/2002

Current Assignee

Decoding method and device  
Patent #
CN 101,093,998 A
Filed 08/15/2007

Current Assignee

Quasicyclic lowdensity paritycheck code decoder and decoding method  
Patent #
CN 101,534,166 A
Filed 03/10/2008

Current Assignee

23 Claims

1. a code table generating method is characterized in that, described code table generating method comprises:

A. generate first Serial No. and second Serial No.; B. utilize the described second Serial No. generated codeword; C. utilize described first Serial No. to generate sign character, and described sign character is carried out legitimacy judge; D. determine to judge the legal described sign character and the corresponding relation of described code word.


2. code table generating method according to claim 1 is characterized in that, described code table is 929 code tables of PDF417 bar code.

3. code table generating method according to claim 2 is characterized in that, described step a comprises:
 the senary that generates five is counted M=y _{1}y _{2}y _{3}y _{4}y _{5}As described first Serial No., the decimal number N that generates three is as described second Serial No., and M and N are carried out initialization.

4. code table generating method according to claim 3 is characterized in that, comprises at described step b:
 with N directly as described code word.

5. code table generating method according to claim 4 is characterized in that, described step c comprises:

C1. utilize bunch number formula;
(y _{0}y _{1}+ y _{4}y _{5}) mod 9=0 calculates y _{0}C2. utilize sum formula;
(y _{0}+ y _{2}+ y _{4}+ y _{6}Y is calculated in)=9 _{6}C3. utilize following formula;
y _{0}=x _{0}+ x _{1}, y _{1}=x _{1}+ x _{2}, y _{2}=x _{2}+ x _{3}, y _{3}=x _{3}+ x _{4}, y _{4}=x _{4}+ x _{5}, y _{5}=x _{5}+ x _{6}And y _{6}=x _{6}+ x _{7}Determine x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}


6. code table generating method according to claim 5 is characterized in that described step c1 further comprises y _{0}Carry out legitimacy and judge, if y _{0}Illegal, then M is added 1, and repeating said steps c1.

7. code table generating method according to claim 6 is characterized in that, in described step c1, to y _{0}Carry out the legitimacy judgement and comprise judgement y _{0}Whether smaller or equal to 5 and more than or equal to 0, if y _{0}Smaller or equal to 5 and more than or equal to 0, y then _{0}Legal, otherwise, y _{0}Illegal.

8. code table generating method according to claim 7 is characterized in that described step c2 further comprises y _{6}Carry out legitimacy and judge, if y _{6}Illegal, then M is added 1, and return described step c1.

9. code table generating method according to claim 8 is characterized in that, in described step c2, to y _{6}Carry out the legitimacy judgement and comprise judgement y _{6}Whether smaller or equal to 8 and more than or equal to 0, if y _{6}Smaller or equal to 8 and more than or equal to 0, y then _{6}Legal, otherwise, y _{6}Illegal.

10. code table generating method according to claim 9 is characterized in that, in described step c, with y _{0}y _{1}y _{2}y _{3}y _{4}y _{5}y _{6}As described sign character.

11. code table generating method according to claim 10 is characterized in that, described step c further comprises:
C4. judge x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}Whether smaller or equal to 5 and more than or equal to 0, if there is one group of x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}All smaller or equal to 5 and more than or equal to 0, then described sign character is legal, otherwise described sign character is illegal.

12. code table generating method according to claim 11 is characterized in that, described step c further comprises:
C5. judge that whether described sign character is corresponding to the current fiducial value in the exception list.

13. code table generating method according to claim 12, it is characterized in that, in described step c5, current fiducial value in a plurality of fiducial values of sequential storage in N and the described exception list is compared, if the identical then described sign character with current fiducial value of N is illegal, and,, and keep current fiducial value constant if N and current fiducial value then described sign character inequality are legal with the current fiducial value that next fiducial value in described a plurality of fiducial values compared as next time.

14. code table generating method according to claim 2 is characterized in that, described step a comprises:
 generate one five octal numeral M=y _{1}y _{2}y _{3}y _{4}y _{5}As described first Serial No., the decimal number N that generates three is as described second Serial No., and M and N are carried out initialization.

15. code table generating method according to claim 14 is characterized in that, described step c comprises:

C1. utilize bunch number formula;
(y _{0}y _{1}+ y _{4}y _{5}) mod 9=3 or 6 calculating y _{0}C2. utilize sum formula (y _{0}+ y _{2}+ y _{4}+ y _{6}Y is calculated in)=9 _{6} C3. utilize following formula;
y _{0}=x _{0}+ x _{1}, y _{1}=x _{1}+ x _{2}, y _{2}=x _{2}+ x _{3}, y _{3}=x _{3}+ x _{4}, y _{4}=x _{4}+ x _{5}, y _{5}=x _{5}+ x _{6}And y _{6}=x _{6}+ x _{7}Determine x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}


16. code table generating method according to claim 15 is characterized in that, described step c1 further comprises y _{0}Carry out legitimacy and judge, if y _{0}Illegal, then M is added 1, and repeating said steps c1.

17. code table generating method according to claim 16 is characterized in that, in described step c1, to y _{0}Carry out the legitimacy judgement and comprise judgement y _{0}Whether smaller or equal to 7 and more than or equal to 0, if y _{0}Smaller or equal to 7 and more than or equal to 0, y then _{0}Legal, otherwise, y _{0}Illegal.

18. code table generating method according to claim 17 is characterized in that, described step c2 further comprises judgement y _{6}Legitimacy, if y _{6}Illegal, then M is added 1, and return described step c1.

19. code table generating method according to claim 18 is characterized in that, in described step c2, to y _{6}Carry out the legitimacy judgement and comprise judgement y _{6}Whether smaller or equal to 8 and more than or equal to 0, if y _{6}Smaller or equal to 8 and more than or equal to 0, y then _{6}Legal, otherwise, y _{6}Illegal.

20. code table generating method according to claim 19 is characterized in that, comprises at described step b:
 with N directly as described code word, in described step c, with y _{0}y _{1}y _{2}y _{3}y _{4}y _{5}y _{6}As described sign character.

21. code table generating method according to claim 20 is characterized in that, described step c further comprises:
C4. judge x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}Whether smaller or equal to 5 and more than or equal to 0, if there is one group of x _{0}, x _{1}, x _{2}, x _{3}, x _{4}, x _{5}, x _{6}And x _{7}All smaller or equal to 5 and more than or equal to 0, then described sign character is legal, otherwise described sign character is illegal.

22.
22., it is characterized in that described code table generating method further comprises according to claim 5 or 15 described code table generating methods: E. judge whether N equals predetermined value,, then finish described code table generating method if N equals predetermined value, otherwise, N and M are added 1 and return step c1 respectively.

23. code table generating method according to claim 1 is characterized in that, described steps d comprises that further the described sign character sequential storage that described judgement is legal is in storer.
Specification(s)