Skip navigation links
com.rscja.deviceapi

Class RFIDWithISO15693

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  RFIDWithISO15693.TagType
      标签类型
      Tag type
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      boolean free()
      释放rfid模块
      Release the RFID module
      char[] genericFunction(char command, char[] databuf, char datalen) 
      static RFIDWithISO15693 getInstance()
      获取ISO15693协议操作实例
      Get instance for RFID with 15693 protocol
      java.lang.String getVersion()
      Deprecated. 
      boolean init()
      初始化rfid模块
      Initialize RFID module
      ISO15693Entity inventory()
      读卡
      Read tag
      boolean isPowerOn()
      判断设备是否上电
      Detect whether device is powered on or not.
      boolean lockAFI()
      锁定AFI
      Lock AFI
      boolean lockDSFID()
      锁定DSFID
      Lock DSFID.
      ISO15693Entity read(int block)
      读取块数据
      Read block data
      boolean rfidUpgrade(int packageCount, int index, int currSize, byte[] data)
      固件升级
      RFID firmware upgrade
      boolean write(int block, java.lang.String hexData)
      写卡
      Wrtie Card
      boolean writeAFI(int iAFI)
      写入AFI
      Write AFI.
      boolean writeDSFID(int iDSFID)
      写入DSFID
      Write DSFID.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static RFIDWithISO15693 getInstance()
                                            throws ConfigurationException
        获取ISO15693协议操作实例
        Get instance for RFID with 15693 protocol
        Returns:
        ISO15693协议操作实例
        return RFID with 15693 protocol instance
        Throws:
        ConfigurationException - 配置错误异常
        Configuration failure exception
      • inventory

        public ISO15693Entity inventory()
        读卡
        Read tag
        Returns:
        返回ISO15693Entity实体,寻卡失败返回null
        Return ISO15693 Entity,if failure then return null
      • read

        public ISO15693Entity read(int block)
                            throws RFIDReadFailureException
        读取块数据
        Read block data
        Parameters:
        block - 块区
        Block
        Returns:
        返回ISO15693Entity实体,寻卡失败返回null
        Return ISO15693 Entity,if failure then return null.
        Throws:
        RFIDReadFailureException - 读卡失败异常
        Read card failure exception
      • write

        public boolean write(int block,
                             java.lang.String hexData)
                      throws RFIDNotFoundException
        写卡
        Wrtie Card
        Parameters:
        block - 块区
        Block
        hexData - 十六进制数据
        Hex dada
        Returns:
        true成功,false失败
        Return true for sucess, false for failure.
        Throws:
        RFIDNotFoundException - 寻卡失败异常
        RFID card found failure exception.
      • writeAFI

        public boolean writeAFI(int iAFI)
                         throws RFIDNotFoundException
        写入AFI
        Write AFI.
        Parameters:
        iAFI - AFI值
        AFI value.
        Returns:
        true成功,false失败
        Return true for sucess,return false for failure
        Throws:
        RFIDNotFoundException - 寻卡失败异常
        RFID card found failure exception.
      • writeDSFID

        public boolean writeDSFID(int iDSFID)
                           throws RFIDNotFoundException
        写入DSFID
        Write DSFID.
        Parameters:
        iDSFID - DSFID值
        DSFID value
        Returns:
        true成功,false失败
        Return true for sucess, return false for failure.
        Throws:
        RFIDNotFoundException - 寻卡失败异常
        RFID card found failure exception.
      • lockDSFID

        public boolean lockDSFID()
                          throws RFIDNotFoundException
        锁定DSFID
        Lock DSFID.
        Returns:
        true成功,false失败
        Return true for sucess, false for failure.
        Throws:
        RFIDNotFoundException - 寻卡失败异常
        RFID card found failure exception.
      • genericFunction

        public char[] genericFunction(char command,
                                      char[] databuf,
                                      char datalen)
        Parameters:
        command - 命令
        Command
        databuf - 数据
        Data
        datalen - 数据长度
        Data length
        Returns:
        索引1表示状态,非零 失败, 0x00 成功,数据 64字节
        Return index 1 for status,non zero for failure, 0x00 for sucess, 64bytes data.
      • init

        public boolean init()
        初始化rfid模块
        Initialize RFID module
        Returns:
        true成功,false失败
        If sucess, then return true, if failure, return false
      • free

        public boolean free()
        释放rfid模块
        Release the RFID module
        Returns:
        true成功,false失败
        If sucess, then return true, if failure, return false
      • getVersion

        @Deprecated
        public java.lang.String getVersion()
        Deprecated. 
        获取rfid 版本信息
        Get RFID version information.
        Returns:
        返回版本信息,null为失败
        Return RFID version infor, if failure, return null.
      • rfidUpgrade

        public boolean rfidUpgrade(int packageCount,
                                   int index,
                                   int currSize,
                                   byte[] data)
        固件升级
        RFID firmware upgrade
        Parameters:
        packageCount - 包的数量
        Package count.
        index - 当前为第几个包
        Current package count nnumber.
        currSize - 当前包大小
        Current package size.
        data - 包数据
        Package data.
        Returns:
        true成功,false失败
        If sucess, return true, if failure, return false.
      • isPowerOn

        public boolean isPowerOn()
        判断设备是否上电
        Detect whether device is powered on or not.
        Returns:
        已经上电返回true,反之返回false
        If powered on,return true, if not, return false.