com.pax.dal.memorycard

Interface ICardAT88SC102

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void blockErWrite(int erOrWr)
      仅使用安全级别1,擦除或写整个存储区(包括FZ,MTZ,MFZ)。
      Only use in security level 1, to erase or write the whole storage zone(including FZ,MTZ,MFZ).
      void eraseAZSL2(int az, byte[] pEZ)
      擦除应用程序区。
      Erase the application zone.
      void fusePGM(int fuseType)
      烧写三种熔断器。
      Burn and write the three type of fuse.
      void powerOff()
      AT88SC102模块下电
      Power the AT88SC102 module off.
      void powerOn()
      AT88SC102模块上电
      Power the AT88SC102 module on.
      byte[] readString(int addr, int num)
      读取指定地址n字节的数据。
      Read the specified address n bytes of data.
      void reset()
      AT88SC102模块地址计数器复位
      Reset the AT88SC102 module address counter.
      void updateSC(byte[] psw)
      更新密码
      Update password.
      void verifySC(byte[] psw)
      验证密码
      Verify password.
      void writeAZSL1(int az, int offset, byte[] pBuf)
      在安全级别1中擦除和写入应用程序区。
      Erase and write in application zone in security level 1.
      void writeAZSL2(int az, int offset, byte[] pBuf)
      在安全级别2中写入应用程序区。
      Write in application zone in security level 2.
      void writeCPZ(byte[] pBuf)
      判断卡当前的安全级别并更新用户的代码区。
      Judge the card current security level and update the code zone of users.
      void writeEC2(byte[] pBuf)
      判断卡当前安全级别并更新应用程序2区的擦除计数器。
      Judge the card current security level and update the erasing counter of application 2 zone.
      void writeEZ1(byte[] pBuf)
      判断卡当前安全级别并更新应用程序1区的擦除密码。
      Judge the card current security level and update the erasing password of application 1 zone.
      void writeEZ2(byte[] pBuf)
      判断卡当前安全级别并更新应用程序2区的擦除密码。
      Judge the card current security level and update the erasing password of application 2 zone.
      void writeIZ(byte[] pBuf)
      判断卡当前安全级别并更新发行者代码区。
      Judge the card current security level and update the code zone of issuers.
      void writeMTZ(byte[] pBuf)
      写测试区
      Write the test zone.
    • Method Detail

      • readString

        byte[] readString(int addr,
                          int num)
                   throws AT88SC102DevException
        读取指定地址n字节的数据。
        Read the specified address n bytes of data.
        Parameters:
        addr -
        读取起始位置
        address where read starting at
        num -
        读取多少字节数据
        number of bytes data to read
        Returns:
        Throws:
        AT88SC102DevException
      • writeIZ

        void writeIZ(byte[] pBuf)
              throws AT88SC102DevException
        判断卡当前安全级别并更新发行者代码区。
        Judge the card current security level and update the code zone of issuers.
        Parameters:
        pBuf -
        发行代码区,8字节
        issuers code zone, 8 bytes
        Throws:
        AT88SC102DevException
      • writeCPZ

        void writeCPZ(byte[] pBuf)
               throws AT88SC102DevException
        判断卡当前的安全级别并更新用户的代码区。
        Judge the card current security level and update the code zone of users.
        Parameters:
        pBuf -
        用户的代码区,8字节
        users code zone, 8 bytes
        Throws:
        AT88SC102DevException
      • writeEZ1

        void writeEZ1(byte[] pBuf)
               throws AT88SC102DevException
        判断卡当前安全级别并更新应用程序1区的擦除密码。
        Judge the card current security level and update the erasing password of application 1 zone.
        Parameters:
        pBuf -
        用户代码区,6字节
        users code zone, 6 bytes
        Throws:
        AT88SC102DevException
      • writeEZ2

        void writeEZ2(byte[] pBuf)
               throws AT88SC102DevException
        判断卡当前安全级别并更新应用程序2区的擦除密码。
        Judge the card current security level and update the erasing password of application 2 zone.
        Parameters:
        pBuf -
        用户代码区,4字节
        users code zone, 4 bytes
        Throws:
        AT88SC102DevException
      • writeEC2

        void writeEC2(byte[] pBuf)
               throws AT88SC102DevException
        判断卡当前安全级别并更新应用程序2区的擦除计数器。
        Judge the card current security level and update the erasing counter of application 2 zone.
        Parameters:
        pBuf -
        用户代码区,16字节
        users code zone, 16 bytes
        Throws:
        AT88SC102DevException
      • blockErWrite

        void blockErWrite(int erOrWr)
                   throws AT88SC102DevException
        仅使用安全级别1,擦除或写整个存储区(包括FZ,MTZ,MFZ)。
        Only use in security level 1, to erase or write the whole storage zone(including FZ,MTZ,MFZ).
        Parameters:
        erOrWr -
        • 0 - 写
        • 1 - 擦除
        • 0 - write
        • 1 - erase
        Throws:
        AT88SC102DevException
      • fusePGM

        void fusePGM(int fuseType)
              throws AT88SC102DevException
        烧写三种熔断器。
        Burn and write the three type of fuse.
        Parameters:
        fuseType -
        • 0 - 厂家熔断器
        • 1 - EC2使能熔断器
        • 2 - 发行熔断器
        • 0 - Manufacturers fuse
        • 1 - EC2 enable fuse
        • 2 - Issuers fuse
        Throws:
        AT88SC102DevException
      • writeAZSL1

        void writeAZSL1(int az,
                        int offset,
                        byte[] pBuf)
                 throws AT88SC102DevException
        在安全级别1中擦除和写入应用程序区。
        Erase and write in application zone in security level 1.
        Parameters:
        az -
        0 - 应用第一区 1 - 应用第二区
        0 - application 1st zone 1 - application 2nd zone
        offset -
        按字节偏移地址
        offset address by byte
        pBuf -
        数据字节数
        number bytes of data
        Throws:
        AT88SC102DevException
      • eraseAZSL2

        void eraseAZSL2(int az,
                        byte[] pEZ)
                 throws AT88SC102DevException
        擦除应用程序区。
        Erase the application zone.
        Parameters:
        az -
        0 - 应用第一区 1 - 应用第二区
        0 - application 1st zone 1 - application 2nd zone
        pEZ -
        密码,6字节在应用程序第一区,和4字节的应用程序第二区。
        password, 6 bytes in application 1st zone, and 4 bytes in application 2nd zone.
        Throws:
        AT88SC102DevException
      • writeAZSL2

        void writeAZSL2(int az,
                        int offset,
                        byte[] pBuf)
                 throws AT88SC102DevException
        在安全级别2中写入应用程序区。
        Write in application zone in security level 2.
        Parameters:
        az -
        0 - 应用第一区 1 - 应用第二区
        0 - application 1st zone 1 - application 2nd zone
        offset -
        按字节偏移地址
        offset address by byte
        pBuf -
        数据字节数
        number bytes of data
        Throws:
        AT88SC102DevException