com.pax.dal.memorycard

Interface ICardSle4428

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void close()
      下电 Sle4428 模块.
      void editPin(byte[] pinBuf)
      修改Sle4428密码
      Modify password of Sle4428.
      void editPinCounter(byte counter)
      修改Sle4428密码重试次数
      Modify password of Sle4428 retry counts.
      byte[] iccInit()
      复位 Sle4428 模块,并阅读卡片信息及确认卡片类型为Sle4428.
      void open()
      上电 Sle4428 模块.
      byte readPinCounter()
      读取Sle4428密码的重复次数
      Read password of Sle4428 retry counts.
      byte[] readWithoutPB(short addr, short dataLen)
      从Sle4428卡片读取数据没有保护位
      Read the data from Sle4428 without protected bit.
      byte[] readWithPB(short addr, short dataLen)
      从Sle4428卡片读取数据有保护位
      Read the data from Sle4428 with protected bit.
      byte[] reset()
      复位 Sle4428 模块.
      void setPB(short addr, short dataLen, byte[] dataIn)
      设置Sle4428保护位
      Set the Sle4428 protected bit.
      void verifyPin(byte[] pinBuf)
      验证Sle4428密码
      Verify password of Sle4428.
      void writeWithoutPB(short addr, short dataLen, byte[] dataIn)
      写数据,无保护位
      Write data without protected bit.
      void writeWithPB(short addr, short dataLen, byte[] dataIn)
      写入数据无保护位
      Write data with protected bit.
    • Method Detail

      • iccInit

        byte[] iccInit()
                throws Sle4428DevException
        复位 Sle4428 模块,并阅读卡片信息及确认卡片类型为Sle4428.
        Reset Sle4428 module, and read identity information about the card, and ensure the card type is Sle4428.
        Returns:
        卡片身份信息,4字节
        identity information about the card, 4 bytes.
        Throws:
        Sle4428DevException
      • readWithoutPB

        byte[] readWithoutPB(short addr,
                             short dataLen)
                      throws Sle4428DevException
        从Sle4428卡片读取数据没有保护位
        Read the data from Sle4428 without protected bit.
        Parameters:
        addr -
        起始字节
        the begin address
        dataLen -
        数据长度
        the data length
        Returns:
        dataOut
        Throws:
        Sle4428DevException
      • readWithPB

        byte[] readWithPB(short addr,
                          short dataLen)
                   throws Sle4428DevException
        从Sle4428卡片读取数据有保护位
        Read the data from Sle4428 with protected bit.
        Parameters:
        addr -
        起始地址
        the begin address
        dataLen -
        数据长度
        the data length
        Returns:
        dataOut
        返回数据格式: byte+byte_property+byte+byte_property+...
        • byte_property is 0 - 字节受保护
        • byte_property is 1 - 字节不受保护
        dataOut format: byte+byte_property+byte+byte_property+...
        • byte_property is 0 - the byte is protected
        • byte_property is 1 - the byte isn't protected
        Throws:
        Sle4428DevException
      • writeWithoutPB

        void writeWithoutPB(short addr,
                            short dataLen,
                            byte[] dataIn)
                     throws Sle4428DevException
        写数据,无保护位
        Write data without protected bit.
        Parameters:
        addr -
        起始地址
        begin address
        dataLen -
        数据长度
        data length
        dataIn -
        输入数据
        input data
        Throws:
        Sle4428DevException
      • writeWithPB

        void writeWithPB(short addr,
                         short dataLen,
                         byte[] dataIn)
                  throws Sle4428DevException
        写入数据无保护位
        Write data with protected bit.
        Parameters:
        addr -
        起始地址
        begin address
        dataLen -
        数据长度
        data length
        dataIn -
        输入数据
        input data
        Throws:
        Sle4428DevException
      • setPB

        void setPB(short addr,
                   short dataLen,
                   byte[] dataIn)
            throws Sle4428DevException
        设置Sle4428保护位
        Set the Sle4428 protected bit.
        Parameters:
        addr -
        起始地址
        begin address
        dataLen -
        数据长度
        data length
        dataIn -
        输入数据
        input data
        Throws:
        Sle4428DevException