6.4 TCDUGeneration functions TCDU生成函数
6.4.1 Definition of the TCDU TCDU的定义
The TCDU may be different for each TokenCarrierType and is therefore defined separately for each physical layer protocol standard relevant to each part of the IEC 62055-5x series.
TCDU可能对每个令牌载体类型不同,因此为与IEC 62055-5x系列的每个部分相关的每个物理层协议标准单独定义。
6.4.2 Transposition of the Class bits 类位的调换
This function is used by other TCDUGeneration functions (see 6.4.3 to 6.4.5). It inserts the 2 Class bits into the 64-bit data stream to make a 66-bit number according to the method outlined below.
其他TCDUGeneration函数使用该函数(参见6.4.3 ~ 6.4.5)。它按照下面的方法将2类比特插入到64位数据流中,得到66位数字。
The 64-bit number has its least significant bit in bit position 0 and its most significant bit in bit position 63. The 64-bit binary number string is modified to include the unencrypted token Class The 2-bit token Class value is inserted to occupy bit positions 28 and 27. The original values of bit positions 28 and 27 are relocated to bit positions 65 and 64. The most significant bit of the token Class now occupies bit position 28. The process is shown in Figure 6.
64位数字的最低有效位在位0,最高有效位在位63。修改64位二进制数字字符串,使其包含未加密的令牌类,插入2位令牌类值,占据比特位置28和27。第28和27位的原始值被重新定位到第65和64位。令牌类的最高有效位现在占据位28。流程如图6所示。
Example: Insertion of the token Class = 01 (binary).
示例:插入令牌Class = 01(二进制)。
The 64-bit binary number grouped in nibbles (Bits 27 and 28 highlighted in bold):
分组的64位二进制数(第27位和第28位以粗体突出显示):
0110 0101 0100 0011 0010 0001 0000 1001 100'0 0'111 0110 0101 0100 0011 0010 0001
Copy bits 28 and 27 into bit positions 65 and 64, creating a 66-bit number:
将第28位和第27位复制到第65位和第64位,创建一个66位的数字:
'00' 0110 0101 0100 0011 0010 0001 0000 1001 1000 0111 0110 0101 0100 0011 0010 0001
Replace bits 28 and 27 with the 2 Class bits:
将第28位和第27位替换为2个类别位:
'00' 0110 0101 0100 0011 0010 0001 0000 1001 100'0 1'111 0110 0101 0100 0011 0010 0001
标签:27,预付费,17,28,电能表,6.4,64,bit,Class From: https://blog.csdn.net/huaqianzkh/article/details/143166471