public class RFIDWithISO14443A4CPU
extends java.lang.Object
注意:
Attention:
1、使用前请确认您的机器已安装此模块。
1. Make sure this module is installed before you use your device.
2、要正常使用模块需要在\libs\armeabi\目录放置libDeviceAPI.so文件
2. Put libDeviceAPI.so file in directory \libs\armeabi\ then module can be used normally.
3、在操作设备前需要调用 init()
打开设备,使用完后调用 free()
关闭设备
3. Call init()
to switch on the device before operating the device, call free()
to switch off device after using.
Modifier and Type | Method and Description |
---|---|
boolean |
free()
释放rfid模块
Release RFID module |
static RFIDWithISO14443A4CPU |
getInstance()
获取ISO14443A CPU卡协议操作实例
Acquire ISO14443A CPU card protocol operation example |
java.lang.String |
getVersion()
获取rfid 版本信息
Acquire RFID version infor |
boolean |
init()
初始化rfid模块
initialize RFID module |
boolean |
init(boolean isRfOff) |
boolean |
isPowerOn()
判断设备是否上电
Judge the device is powered on or not. |
java.lang.String |
rats()
CPU卡RATS操作指令
CPU card RATS operation command |
java.lang.String |
reset()
CPU卡复位操作指令
CPU card reset operation command |
boolean |
rfidUpgrade(int packageCount,
int index,
int currSize,
byte[] data)
固件升级
firmware upgrade |
java.lang.String |
sendCommand(java.lang.String cmd)
CPU卡 T=CL发送COS指令
CPU card T=CL send COS command |
public static RFIDWithISO14443A4CPU getInstance() throws ConfigurationException
ConfigurationException
- 配置错误异常public java.lang.String sendCommand(java.lang.String cmd)
cmd
- COS指令内容public java.lang.String reset()
public java.lang.String rats()
public boolean init()
public boolean init(boolean isRfOff)
public boolean free()
public java.lang.String getVersion()
public boolean rfidUpgrade(int packageCount, int index, int currSize, byte[] data)
packageCount
- 包的数量index
- 当前为第几个包currSize
- 当前包大小data
- 包数据public boolean isPowerOn()