Releases: urovosamples/SDK_ReleaseforAndroid
Releases · urovosamples/SDK_ReleaseforAndroid
Update SDK Samples
add new Mifare UltraLight implement for Android 5.1 device
new implement for Android 5.1 POS device.from 20190507:
/* Type Mifare UltraLight /
/*
* Read the Mifare UltraLight data;
* @param sectorNum read the sector number
* @param rsp return 4 byte data from card
* @return 0 if successful, negative number if failed
*/
public int mifareUlPageRead(int sectorNum, byte[] rsp){
}
/**
* Write the Mifare UltraLight data;
* @param sectorNum write the sector number
* @param sent 4 byte data to write
* @return 0 if successful, negative number if failed
*/
public int mifareUlPageWrite(int sectorNum, byte[] sent){
}
/**
* Mifare UltraLight counter;
* @param bCntNum Counter number 0-2
* @param pCntValue return the Counter value
* @return 0 if successful, negative number if failed
*/
public int mifareUlReadCnt(byte bCntNum, int[] pCntValue){
}
/**
* To update the Mifare UltraLight counter;
* @param bCntNum Counter number 0-2
* @param iCntValue Count value to write
* @return 0 if successful, negative number if failed
*/
public int mifareUlIncrCnt(byte bCntNum, int iCntValue){
}
/**
* Transaction command;
* @param bProtocol Card Type 0:14443A 1:14443B
* @param pSendBuf send the command
* @param bSendLen send command's length
* @param pRecvBuf response data from the card
* @param pRecvLen out data's length
* @return 0 if successful, negative number if failed
*/
public int transactionData(byte bProtocol, byte[] pSendBuf, int bSendLen, byte[] pRecvBuf, int[] pRecvLen){
}