public class RFIDWithISO14443B
extends java.lang.Object
注意:
1、使用前请确认您的机器已安装此模块。
2、要正常使用模块需要在\libs\armeabi\目录放置libDeviceAPI.so文件
3、在操作设备前需要调用 init()
打开设备,使用完后调用 free()
关闭设备
Note:
? * 1, Please confirm that your machine has installed this module before use.
? * 2, To normal use of the module need to place the libDeviceAPI.so file under the below path \ libs \ armeabi \ directory
? * 3, Before the use of the device, call b> to open the device, call b> /> to close the device.
限定符和类型 | 方法和说明 |
---|---|
boolean |
free()
释放rfid模块
Release the RFID module |
static RFIDWithISO14443B |
getInstance()
获取ISO14443B协议操作实例
Get instance for ISO1443B protocol. |
java.lang.String |
getUID()
获取卡片ID
Get card ID |
java.lang.String |
getVersion()
已过时。
|
boolean |
init()
初始化rfid模块
Initialize RFID module |
boolean |
isPowerOn()
判断设备是否上电
Detect whether device is powered on or not. |
java.lang.String |
reset()
CPU卡复位操作指令
Reset CPU card command |
boolean |
rfidUpgrade(int packageCount,
int index,
int currSize,
byte[] data)
固件升级
RFID firmware upgrade |
java.lang.String |
sendCommand(java.lang.String cmd)
CPU卡 T=CL发送COS指令
Send COS command. |
public static RFIDWithISO14443B getInstance() throws ConfigurationException
ConfigurationException
- 配置错误异常public java.lang.String getUID()
public java.lang.String sendCommand(java.lang.String cmd)
cmd
- COS指令内容public java.lang.String reset()
public boolean init()
public boolean free()
@Deprecated public java.lang.String getVersion()
public boolean rfidUpgrade(int packageCount, int index, int currSize, byte[] data)
packageCount
- 包的数量 index
- 当前为第几个包 currSize
- 当前包大小 data
- 包数据 public boolean isPowerOn()