台湾中文佬娱乐网/国产精品欧美专区/天堂а√在线地址中文在线/尤物aⅴ

智能卡讀寫器,IC卡讀卡器

RFID讀卡器包含低頻ID卡讀卡器,高頻IC卡讀卡器,NFC讀寫器,超高頻UHF讀卡器以及相應的模組,智能卡包含印刷彩卡,CPU卡,電子標簽

USB讀卡器windows JNI開發例程

windows在java中使用JNI調用usb讀卡器的動態庫yw60x.dll

public static void main(String[] args) 
{

	int ReaderID=1;
	int Requestmode=38;
	short Cardtype[]=new short[1];
	byte LenSn[] = new byte[1];
	byte CardNo[] = new byte[8];
	byte Key[]=new byte[]{(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF};
	byte BlockData[]=new byte[16];
	YOWORFID rfidreader = new YOWORFID();
	rfidreader.YW_USBHIDInitial();
	int rt =0;

	{
		
		rt =rfidreader.YW_RequestCard(ReaderID,Requestmode,Cardtype);
	
 		//if(rt<=0)continue;
		rt = rfidreader.YW_AntiCollide(ReaderID,LenSn,CardNo);
		HexToStr(CardNo,LenSn[0]);
		
	
		rt =rfidreader.YW_CardSelect(ReaderID,LenSn[0],CardNo);

	
		rt =rfidreader.YW_KeyAuthorization(ReaderID,96,4,Key);
		System.out.printf("KeyAuthorization=%d",rt);System.out.println();	
		rt =rfidreader.YW_ReadaBlock(ReaderID,4,16,BlockData);
		System.out.printf("YW_ReadaBlock=%d",rt);System.out.println();
		if(rt>0){HexToStr(BlockData,16);}	

	}
	rfidreader.YW_Led(ReaderID,1,1,1,3,0);
	rfidreader.YW_USBHIDFree();	


}
}


下載鏈接

RFID讀寫器,IC卡讀卡器, 智能卡讀卡器,RFID讀卡器, 電子標簽,CPU卡讀寫器,讀卡模塊
北京友我科技有限公司 版權所有 (C)2025-2025
客戶服務中心信箱:coodor@126.com
熱線直撥: 010-57049038 18910685939 電話微信:13691531038,13671114914
京ICP備14016005號
微信掃一掃聯系我們

微信掃一掃聯系我們

友我科技