Skip navigation links
com.rscja.deviceapi

Class RFIDWithISO14443B

    • 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
      static RFIDWithISO14443B getInstance()
      获取ISO14443B协议操作实例
      Get instance for ISO1443B protocol.
      java.lang.String getUID()
      获取卡片ID
      Get card ID
      java.lang.String getVersion()
      Deprecated. 
      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.
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static RFIDWithISO14443B getInstance()
                                             throws ConfigurationException
        获取ISO14443B协议操作实例
        Get instance for ISO1443B protocol.
        Returns:
        ISO14443B协议操作实例
        Return instance for ISO1443B protocol
        Throws:
        ConfigurationException - 配置错误异常
        Configuration failure exception.
      • getUID

        public java.lang.String getUID()
        获取卡片ID
        Get card ID
        Returns:
        失败返回null
        Return null if failure.
      • sendCommand

        public java.lang.String sendCommand(java.lang.String cmd)
        CPU卡 T=CL发送COS指令
        Send COS command.
        Parameters:
        cmd - COS指令内容
        COS command content
        Returns:
        CPU卡返回的COS指令内容
        COS command content returned from CPU card.
      • reset

        public java.lang.String reset()
        CPU卡复位操作指令
        Reset CPU card command
        Returns:
        CPU卡返回的reset操作数据
        Reset action content returned from CPU card.
      • 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.