How do I calculate the shipping container check codes?
The standard number constitute the basic concept: by ISO6346 (1995) standard. The standard container number by 11 bit encoding, consists of three parts:1. The first part is composed of 4 English letters. The first three bits of code (Owner, Code) illustrate the main box, the operator, and the fourth bit code indicating the type of container. Such as the CBHU standard container at the beginning of the show box main and operator for coscon.The 2 and second parts are made up of 6 digits. Is the box registration code (Registration Code), used for a container container holds the only identification. The 3 and third parts are check codes (Check, Digit), which are obtained by checking the first 4 letters and the 6 bit digits by checking rules, and are used to identify errors in the verification. That is, the eleventh digit number. According to the corresponding rules check number each letters and numbers have an operational value. The corresponding number of the first 10 letters and numbers from 0 to 0 Z corresponding values to 38, 11, 22, 33 cannot get the modulus on the 11, so to get rid of. .
Check rule of container check code:Container number consists of 4 company codes and 7 bit numbers (such as CBHU3202732), in which the seventh digit is the check code. First, convert the company code to numbers, remove 11 and its multiples, add 11 by the remainder, and the remainder as check bits. A=10, B=12, C=13, D=14, E=15, F=16, G=17, H=18, I=19, J=20,, K=21, L=23, M=24N=25, O=26, P=27, Q=28, R=29, S=30, T=31, U=32, V=34, W=35,, X=36, Y=37, Z=38
The number of N bits corresponding value multiplied by 2 (N 1) time (N = 1, 2, 3......... ..10)For example: the number of CBHU3202732 containers it first digit code for C,The code value corresponding to the code value = 2 * (1-1) a = 13 x 1 = 13.By analogy, the second bit code is BThe code value corresponding to the code value = 2 * (2 - 1) a = 12 x 2 = 24 and so on 10 bit code number before the code value, will be one of the top 10 after the 11 plus code value accumulation modulo number = 4061 to 10 cumulative number of CBHU3202732 code before the container value, take 11. After 2, this number is the numerical identification code of Eleventh bits.And so on, you can get the check code.