ETC代码参数使用

psamSolt/psamSoltWrite

 Psam卡卡槽号
//PSAMA卡复位
PsamReset(psamSolt);

//向第N个卡槽发送消息
PsamCmd(psamSolt, "00A4000002DF01", null, null, null);

 DecryptKeyType 解密车辆时

操作PSAM卡时密钥分散的类型,有39和59

if (KeyType.equals("59"))
			strSendCmd2 = "801A590310" + GetOBUSerialNumber() + GetOBUArea()
					+ GetOBUArea();
		else
			strSendCmd2 = "801A390308" + GetOBUSerialNumber();

WriteKeyType 写卡时候

操作PSAM卡时密钥分散的类型,有46 48 26 28

KeyID 写卡时候

PSAM卡密钥分散时的参数  801A

// 4、PSAM密钥分散
		if (KeyType.substring(0, 1).equals("4"))
			strSendCmd = "801A" + KeyType + KeyID + "10" + GetOBUSerialNumber()
					+ GetOBUArea() + GetOBUArea();
		else
			strSendCmd = "801A" + KeyType + KeyID + "08" + GetOBUSerialNumber();

WritePsamDir 写卡时

PSAM选应用目录  00A4000002 

// 3、PSAM选应用目录
		try {
			PsamCmd(psamSoltWrite, "00A4000002" + PsamDir, null, null, null);
		} catch (Exception e) {
			throw new NumberFormatException("选" + PsamDir + ",PSAM"
					+ psamSoltWrite + e.getMessage());
		}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值