6. POSToTokenCarrierInterface 应用层协议
6.1 APDU: ApplicationProtocolDataUnit 应用协议数据单元
6.1 .1 Data elements in the APDU
The APDU is the data interface between the POSApplicationProcess and the application layer protocol and comprises the data elements given in Table 1 .
Table 1 – Data elements in the APDU
MeterPAN
Identification MeterPrimaryAccountNumber for the payment meter.
用于付费电表并兼容 ISO 标识 MeterPrimaryAccountNumber
TCT
Directs which TokenCarrierType should be used in the physical layer protocol to carry the token to the payment meter
指引应用哪个 TokenCarrierType 于物理层协议使令牌送到电表上。
DKGA
Directs which DecoderKeyGenerationAlgorithm is to be used for generating the DecoderKey
指引用哪个 DecoderKeyGenerationAlgorithm 以产生 DecoderKey。
EA
Directs which encryption algorithm is to be used for encrypting the token data
指引用哪个加密算法对令牌数据加密。
SGC
Directs which SupplyGroupCode the payment meter is allocated to.
指引分配哪个 SupplyGroupCode 给付费电表
TI
Directs which TariffIndex the payment meter is linked to.
指引连接哪个 TariffIndex(费率指标)到付费电表
KRN
Directs which KeyRevisionNumber the DecoderKey is on (as inherited from VendingKey)
指引 DecoderKey 在哪个 KeyRevisionNumber 上
KT Directs which KeyType the DecoderKey is on.
指引 DecoderKey 在哪个 KeyType 上
KEN
A number associated with the VendingKey and a DecoderKey that determines the time period, during which the key will remain valid.
KeyExpiryNumber VendingKey 和 DecoderKey 相关的号码。此号码可确定钥匙保持有
效的时间。
BaseDate
The starting date and time from which a TID is calculated.
Token
The actual token data that is to be transferred to the payment meter prior to encryption and processing
实际令牌数据。加密和处理以前,此数据被传输到付费电表。
IDRecord
Optional identification data intended to be encoded onto a payment meter ID card or onto a token carrier together with the token.
可选身份数据。该数据被编码到付费电表 IC 卡或令牌载波器上(带令牌)
PRNRecord
Optional print data intended to be printed at the same time as the coding of the token onto the TokenCarrier. Certain token carriers such as paper-based magnetic card devices allow printing to be done onto the card surface itself and this operation may be integrated with the magnetic card encoding device. The content and format is not specified and is left to each system to define according to its particular requirements.
可选打印数据。在令牌被编码到载波器上的同时,该数据可打印。有些令牌载波器,例如纸质磁卡设备,可允许在卡表面上打印,并且这种操作可集成于磁卡编码设备上。内容和格式不作规定。系统可根据具体要求来规定。
The optional IDRecord comprises the data elements given in Table 2.
可选的 IDRecord 由表 2 中的数据元素构成。