public class RFIDWithISO15693_qcom extends RFIDBase_qcom implements IRFIDWithISO15693
注意:
Attention:
1、使用前请确认您的机器已安装此模块。
1. Make sure this module is installed before using your device.
2、要正常使用模块需要在\libs\armeabi\目录放置libDeviceAPI.so文件
2. Put libDeviceAPI.so file in directory \libs\armeabi\ then module can be used normally.
3、在操作设备前需要调用 RFIDBase_qcom.init() 打开设备,使用完后调用 RFIDBase_qcom.free() 关闭设备
3. Call RFIDBase_qcom.init() to switch on device before using device, call RFIDBase_qcom.free() to switch off the device after using.
| Modifier and Type | Method and Description |
|---|---|
char[] |
genericFunction_ex(char command,
char IcMfg,
char[] databuf,
int datalen) |
char[] |
genericFunction(char command,
char[] databuf,
char datalen) |
static RFIDWithISO15693_qcom |
getInstance()
获取ISO15693协议操作实例
Acquire ISO15693 protocol operation Instance |
ISO15693Entity |
inventory()
读卡
read card |
boolean |
lockAFI()
锁定AFI
lock AFI |
boolean |
lockDSFID()
锁定DSFID
lock DSFID |
ISO15693Entity |
read(int block)
读取块数据
read block data |
ISO15693Entity |
read(int startBlock,
int Blocklen)
读取块数据
block data |
boolean |
write(int startBlock,
int Blocklen,
java.lang.String hexData)
写卡
card writing |
boolean |
write(int block,
java.lang.String hexData)
写卡
card writing |
boolean |
writeAFI(int iAFI)
写入AFI
Write AFi |
boolean |
writeDSFID(int iDSFID)
写入DSFID
Write DSFID |
free, getVersion, init, init, rfidUpgradeisPowerOnequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfree, getVersion, init, init, isPowerOn, rfidUpgradepublic static RFIDWithISO15693_qcom getInstance() throws ConfigurationException
ConfigurationException - 配置错误异常public ISO15693Entity inventory()
inventory in interface IRFIDWithISO15693public ISO15693Entity read(int block) throws RFIDReadFailureException
read in interface IRFIDWithISO15693block - 块区RFIDReadFailureException - 读卡失败异常public ISO15693Entity read(int startBlock, int Blocklen) throws RFIDReadFailureException
read in interface IRFIDWithISO15693startBlock - 块区Blocklen - 块区RFIDReadFailureException - 读卡失败异常public boolean write(int block,
java.lang.String hexData)
throws RFIDNotFoundException
write in interface IRFIDWithISO15693block - 块区hexData - 十六进制数据RFIDNotFoundException - 寻卡失败异常public boolean write(int startBlock,
int Blocklen,
java.lang.String hexData)
throws RFIDNotFoundException
write in interface IRFIDWithISO15693Blocklen - 块区hexData - 十六进制数据startBlock - 块区RFIDNotFoundException - 寻卡失败异常public boolean writeAFI(int iAFI)
throws RFIDNotFoundException
writeAFI in interface IRFIDWithISO15693iAFI - AFI值RFIDNotFoundException - 寻卡失败异常public boolean lockAFI()
throws RFIDNotFoundException
lockAFI in interface IRFIDWithISO15693RFIDNotFoundExceptionpublic boolean writeDSFID(int iDSFID)
throws RFIDNotFoundException
writeDSFID in interface IRFIDWithISO15693iDSFID - DSFID值RFIDNotFoundException - 寻卡失败异常public boolean lockDSFID()
throws RFIDNotFoundException
lockDSFID in interface IRFIDWithISO15693RFIDNotFoundException - 寻卡失败异常public char[] genericFunction(char command,
char[] databuf,
char datalen)
genericFunction in interface IRFIDWithISO15693command - 命令databuf - 数据datalen - 数据长度public char[] genericFunction_ex(char command,
char IcMfg,
char[] databuf,
int datalen)
genericFunction_ex in interface IRFIDWithISO15693command - 命令IcMfg - 厂商信息databuf - 数据datalen - 数据长度