智能卡读写器,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号
微信扫一扫联系我们

微信扫一扫联系我们

友我科技