Está en la página 1de 1

Codificacion TLV 1.

Tamao del TAG 1 o ms bytes dependiendo de: = 1 si el primer nible es par o el segundo no es F (es decir b5b4b3b2b1 != 11 111) = 2 si el primer nible es impar, el segundo es F y el tercero menor que 8 (es to es b5b4b3b2b1 = 11111 del primer byte y b8 = 0 del segundo byte) = 3 si el primer nible es impar, el segundo es F, el tercero mayor o igual 8 y el quinto menor que 8 (en general apartir del segundo byte b8 = 1 indica que h ay otro byte) 2. Tamao de L When bit b8 of the most significant byte of the length field is set to 0, the length field consists of only one byte. Bits b7 to b1 code the number of bytes of the value field. The length field is within the range 1 to 127. When bit b8 of the most significant byte of the length field is set to 1, the subsequent bits b7 to b1 of the most significant byte code the number of subsequent bytes in the length field. The subsequent bytes code an integer representing the number of bytes in the va lue field. Two bytes are necessary to express up to 255 bytes in the value field: (81FF AO V)

También podría gustarte