¥xÆW³Ì¤jµ{¦¡³]­pªÀ¸sºô¯¸
½u¤W¤H¼Æ
1331
 
·|­ûÁ`¼Æ¡G246690
°Q½×¥DÃD¡G190103
Åwªï±z§K¶O¥[¤J·|­û
°Q½×°Ï¦Cªí >> C# >> C# mifare Ū¨ú¦h­ÓÄæ¦ì
[]  
[§Ú­n¦^ÂÐ]
1
¦^À³¥DÃD ¥[¤J§ÚªºÃöª`¸ÜÃD ÀËÁ|¦¹½g°Q½× ±N´£°ÝªÌ¥[¤J­Ó¤H¶Â¦W³æ
C# mifare Ū¨ú¦h­ÓÄæ¦ì
»ù­È : 5 QP  ÂI¾\¼Æ:747 ¦^À³¼Æ:1
¼Ó¥D

elsie
ªù¥~º~
0 1
6 0
µo°e¯¸¤º«H

½Ð°Ý§Úªº¥d¤ù¥Ø«eÀx¦s¤F
sec 1 block 0 ID
sec 1 block 1 NAME
sec 1 block 2 DATE
sec 2 block 0 POINT

­ì¥ý¥u¥i¥HŪ¨ú³æ¤@sec
­n¦p¦ó¥i¥HŪ¨ú¦h­Ósec¨ú­È §â4­Ó¸ê®Æ±a¨ìµe­±¤W?

public void BtnReadData_Click(object sender, EventArgs e)
{
string SNum = "-1", BNum = "-1", KType = "-1"; //°Ñ¼Æ¹w³]
SNum = Sector.Text;
BNum = Block.Text;
if (KeyAB.Text == "A") //¿ï¾Ü key A,B
{
KType = "60";
}
else
{
KType = "61";
}

string ReadCmd = "020A15"; //Ū¨úcommend 0x02, 0x0A, 0x15,
string TX = ReadCmd + KType + LoadKey.Text + SNum + BNum;

UInt32 uiLength, uiRead, uiResult, uiWritten;
byte[] ReadBuffer = new byte[0x40];
byte[] WriteBuffer = StringToByteArray(TX);
byte[] sResponse = null;
sResponse = new byte[21];

EasyPOD.VID = 0xe6a;
EasyPOD.PID = 0x317;
Index = 1;
uiLength = 64;


fixed (MW_EasyPOD* pPOD = &EasyPOD)
{

dwResult = PODfuncs.ConnectPOD(pPOD, Index);

if ((dwResult != 0))
{
MessageBox.Show("Not connected yet");
}
else
{
EasyPOD.ReadTimeOut = 200;
EasyPOD.WriteTimeOut = 200;

dwResult = PODfuncs.WriteData(pPOD, WriteBuffer, 12, &uiWritten);
uiResult = PODfuncs.ReadData(pPOD, ReadBuffer, uiLength, &uiRead);

tebReadData.Text = BitConverter.ToString(ReadBuffer, 4,(Int32)uiRead - 4).Replace("-", "");
}
dwResult = PODfuncs.ClearPODBuffer(pPOD);
dwResult = PODfuncs.DisconnectPOD(pPOD);

}
}

·j´M¬ÛÃöTagsªº¤å³¹¡G [ C# ] , [ mifare ] ,
¥»½g¤å³¹µoªí©ó2017-12-05 09:40
1¼Ó
¦^À³

P³¯
ÀËÁ|¦¹¦^À³

Ū¦hµ§ªº¸Ü¡A¤£¬O³oùØ­«Âаõ¦æ§Y¥i?

dwResult = PODfuncs.WriteData(pPOD, WriteBuffer, 12, &uiWritten);
uiResult = PODfuncs.ReadData(pPOD, ReadBuffer, uiLength, &uiRead);
¥»½g¤å³¹¦^ÂЩó2017-12-06 11:48
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|­ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ--
   
1

¦^ÂÐ
¦p­n¦^À³,½Ð¥ýµn¤J.