Constructor
new CpuCosTypeA(rfReader)
构造CpuCosTypeA操作对象
Parameters:
Name | Type | Description |
---|---|---|
rfReader | RfReader | 读卡器设备对象 |
- Source
Methods
(async) apdu(cla, ins, p1, p2, lcData, incLe, le, safe) → {Promise}
自定义APDU指令发送
Parameters:
Name | Type | Default | Description |
---|---|---|---|
cla | number | 类别码 参考芯片命令说明 | |
ins | number | 指令码 参考芯片命令说明 | |
p1 | number | 参数P1 参考芯片命令说明 | |
p2 | number | 参数P2 参考芯片命令说明 | |
lcData | string | Lc附加数据 默认忽略 | |
incLe | boolean | false | 是否包含Le参数 默认false忽略Le参数 |
le | number | 0 | 期望响应字节 默认0x00 仅incLe为true时有效 |
safe | RfSafe | null | 线路安全选项 参考RfSafe方法生成 默认忽略 |
- Source
Returns:
err/msg + retval/data
- Type:
- Promise
(async) atsBuf() → {Promise}
获取当前ATS响应数据
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) atsStr() → {Promise}
获取当前激活详细信息描述
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) cardNo() → {Promise}
获取前4字节兼容卡号
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) cosCode() → {Promise}
获取当前COS厂商码
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) cosVer() → {Promise}
获取当前COS版本
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) deselect() → {Promise}
取消选择
- Source
Returns:
err/msg
- Type:
- Promise
(async) findSelect() → {Promise}
查找选择激活COS 只有激活成功后才能进行操作
- Source
Returns:
err/msg + retval/uid/atqa/sak
- Type:
- Promise
(async) getUid() → {Promise}
获取当前的UID数据
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) isSelect() → {Promise}
是否已选择激活
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) send(apdu) → {Promise}
COS指令发送
Parameters:
Name | Type | Description |
---|---|---|
apdu | string | COS指令数据 |
- Source
Returns:
err/msg + retval/data
- Type:
- Promise
(async) uidSelect(uid) → {Promise}
UID选择激活COS 只有激活成功后才能进行操作
Parameters:
Name | Type | Description |
---|---|---|
uid | string | 十六进制UID数据 |
- Source
Returns:
err/msg + retval
- Type:
- Promise