6.5.3 DecoderKey generation
6.5.3.1 PANBlock construction
MeterPAN MeterPrimaryAccountNumber
A unique identification number for each STS-compliant payment meter. It is shared between the payment meter and the POS. Encoding it into the DecoderKey enforces the association with the payment meter.
MeterPAN 仪表主账号
每个符合sts标准的付费表的唯一识别号码。它在付费表和POS之间共享。将它编码到DecoderKey中可以强制与付费表关联。
The 16 digit PANBlock is constructed from data elements extracted from the MeterPAN in the APDU as defined in Table 34 and Table 35.
16位PANBlock是从APDU中的MeterPAN中提取的数据元素,如表34和表35所示。
The most significant digit is in position 1 5 and the least significant digit in position 0.
最高有效位在位置15,最低有效位在位置0。
For DDTK and DUTK coded decoders, the following applies:
• Where the DRN is 11 digits long, the PANBlock is made up of the 5 least significant digits of the IIN and the 11 digits of the DRN. The 1 1 digits of the DRN take up positions 10 to 0 in the PANBlock and the 5 least significant digits of the IIN take up positions 15 to 11 in the PANBlock;
• Where the DRN is 13 digits long, the PANBlock is made up of the 3 least significant digits of the IIN and the 13 digits of the DRN. The 13 digits of the DRN take up positions 12 to 0 in the PANBlock and the 3 least significant digits of the IIN take up positions 15 to 13 in the PANBlock;
对于DDTK和DUTK编码的解码器,适用以下情况:
当DRN长度为11位时,PANBlock由IIN的5位最低有效数字和DRN的11位组成。DRN的11位1在PANBlock中占据10到0的位置,IIN的5位最低有效数字在PANBlock中占据15到11的位置;
当DRN长度为13位时,PANBlock由IIN的3位最低有效数字和DRN的13位组成。DRN的13位数字在PANBlock中占据12 ~ 0的位置,IIN的3位最低有效数字在PANBlock中占据15 ~ 13的位置;
If the IIN is of insufficient length to make up the 1 6 digits, the digits extracted are right justified within the block and padded on the left with zeroes (for example, for an IIN of 600727 and a DRN of 1 2345678903, the PANBlock is 007271 2345678903).
如果IIN的长度不足以填补16位数字,则提取的数字在块内右对齐,并在左侧填充零(例如,对于IIN的600727和DRN的1 2345678903,PANBlock是007271 2345678903)。
For a DDTK or DUTK the actual designated DRN is used, but for a DCTK the DRN digits are set to zeros in the PANBlock, thus it always uses a fixed value of 0072700000000000.
对于DDTK或DUTK,使用实际指定的DRN,但对于DCTK, PANBlock中的DRN数字被设置为零,因此它总是使用固定值0072700000000000。
标签:PANBlock,digits,13,预付费,STS,电能表,DRN,11,IIN From: https://blog.csdn.net/huaqianzkh/article/details/143418086