i have RFID reader ZK-RFID101 and when i bought it it came with a SDK to develop and communicate with the reader but when i am trying to use it it wont work, i don't receive any information from the reader
public class Reader18 {
/**
* @param arr
* @return
*/
public native int[] OpenComPort(int[]arr);
public native int[] AutoOpenComPort(int[]arr);
public native int CloseComPort();
public native int[] OpenNetPort(int addr,int Port,String IPaddr);
public native int CloseNetPort(int Port);
public native int CloseSpecComPort(int Frmhandle);
public native int[] GetReaderInformation(int[]arr);
public native int SetWGParameter(int[]arr);
public native int[] ReadActiveModeData(int[]arr);
public native int SetWorkMode(int[]arr);
public native int[] GetWorkModeParameter(int[]arr);
public native int BuzzerAndLEDControl(int[] arr);
public native int WriteComAdr(int[] arr);
public native int SetPowerDbm(int[] arr);
public native int Writedfre(int[] arr);
public native int Writebaud(int[] arr);
public native int WriteScanTime(int[] arr);
public native int SetAccuracy(int[] arr);
//EPC G2
public native int[] Inventory_G2(int[]arr);
public native int[] ReadCard_G2(int[]arr);
public native int[] WriteCard_G2(int[]arr);
public native int[] EraseCard_G2(int[]arr);
public native int[] SetCardProtect_G2(int[]arr);
public native int[] DestroyCard_G2(int[]arr);
public native int[] WriteEPC_G2(int[]arr);
public native int[] SetReadProtect_G2(int[]arr);
public native int[] SetMultiReadProtect_G2(int[]arr);
public native int[] RemoveReadProtect_G2(int[]arr);
public native int[] CheckReadProtected_G2(int[]arr);
public native int[] SetEASAlarm_G2(int[]arr);
public native int[] CheckEASAlarm_G2(int[]arr);
public native int[] LockUserBlock_G2(int[]arr);
//18000_6B
public native int[] Inventory_6B(int[]arr);
public native int[] inventory2_6B(int[]arr);
public native int[] ReadCard_6B(int[]arr);
public native int[] WriteCard_6B(int[]arr);
public native int[] LockByte_6B(int[]arr);
public native int[] CheckLock_6B(int[]arr);
public static void main(String[] args) {
Reader18 test = new Reader18();
int[] a = new int[2];
int[] b;
a[0]=0xff;
a[1]=0;
b=test.AutoOpenComPort(a);
///for(int i=0; i <b.length; i++)
System.out.println(b.length);
System.out.println();
}
static {
// we need to have the dll file in the same folder as Reader18.java
// it is to be noted that the Reader18.class should be kept in UHF folder due to package statement.
// but the dll file should be in the folder where UHF folder is present.
// System.loadLibrary("UHF_Reader18");
System.load("C:\\Users\\Abdulaziz\\Desktop\\UHF\\Libraryes\\UHF_Reader18.dll");
}
}
this is the .DLL file that came with the reader.