b20fd t讀寫模塊產(chǎn)品應(yīng)用手冊_第1頁
b20fd t讀寫模塊產(chǎn)品應(yīng)用手冊_第2頁
b20fd t讀寫模塊產(chǎn)品應(yīng)用手冊_第3頁
b20fd t讀寫模塊產(chǎn)品應(yīng)用手冊_第4頁
b20fd t讀寫模塊產(chǎn)品應(yīng)用手冊_第5頁
已閱讀5頁,還剩34頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

ShenZhenBRD-公司:功能簡 功能特 技術(shù)參 管腳定 電路圖 封 天線接 通訊協(xié) RS232數(shù)據(jù)格 數(shù)據(jù)格 數(shù)據(jù) 數(shù)據(jù)幀各字段說 命 命令描 系統(tǒng)命 設(shè)置波特率 設(shè)置蜂鳴器 設(shè)置LED燈 模塊休眠SET_HALT ISO14443命 認(rèn)證卡片密鑰PICCAUTHKEY 讀卡 寫卡 寫untralight卡 初始化電子錢包 電子錢包值操作 備份電子錢包值 讀電子錢包值 卡片復(fù)位 激活卡片 請求應(yīng)答 數(shù)據(jù)交互命令 讀 讀 激活Felica卡 尋卡 讀卡 寫卡 鎖塊 寫AFI 鎖AFI 寫DSFID 鎖DSFID 獲取卡片信息 DC工作溫度:-20°C~+80°C溫度:-40°C~ 地地 99打開里的IPX封裝庫,用Pro 99軟件打開。固定:8固定:1固定:1811121N1121N1卡片認(rèn)證-讀讀AFIDSFIDDSFID異或校驗(yàn)錯誤—LRC命令不存在—NOTHIS:intSetUARTBaudRate(unsignedcharucRates)ucRates:(ParameterReturn:0(OK)orError0000:intSetBuzzer(unsignedcharucRates,unsignedcharucTimes)beepkeetimeswillbeucRates*50msandbeepucTimesReturn:0(OK)orError000300設(shè)置LED :intSetLed(unsignedcharucRates,unsignedcharucTimes)ShinekeetimeswillbeucRates*50msandgoout(500-ucRates*50)msFlickerucTimesReturn:0(OK)orError000300 SET_HALT:intSetHalt(void)Return:0(OK)orError0000ISO14443PICCAUTHKEY:intPiccAuthKey unsignedcharunsignedcharaddr,unsignedchar*pSnr,unsignedchar*pKey)0x61--blocknumber(1byte): PLUSCPU(2K):0~127PLUSCPU(4K):

cardserialifcardSerialNomorethan4bytes,only4MSB6byteskeyReturn:0(OK)orErrorCode0060041DB76057FFFFFFFFFF00:intPiccRead(unsignedcharucBlock,unsignedcharBlocknumber(1byte): PLUSBlockdataReturn:0(OK)orError0000050505050505050505050505050505:intPiccWrite(unsignedcharucBlock,unsignedcharPLUSDatatoAfteroneblockhavebeenauthenticatedsuccessfully,theotherblockinthesamesectorneednoauthenticationReturn:0(OK)orError000405050505050505050505050505050500:intPiccULWrite(unsignedcharucBlock,unsignedcharBlockPLUSDatatowrite(4bytes)Return:0(OK)orErrorCode000405050500:intPiccInitVL(unsignedcharucBlock,unsignedcharPLUSDatatoValue,Signednumber,LSBfirstReturn:0(OK)orErrorCode實(shí)現(xiàn)功能:初始化數(shù)據(jù)塊5為電子錢包功能,初始值為080000000508000000:intPiccValueOper(unsignedcharunsignedcharucBlock,unsignedchar*pValue,unsignedcharucTransBlock 0xC0–withdraw/decrease0xC1–deposit/increase

PLUSValue,Signednumber,LSBtransferorconfirmtoanotherblock(1byte)inthesameReturn:0(OK)orError00C1050100000000:Int unsignedcharunsignedchar PLUSTransfertoanotherblockReturn:0(OK)orErrorCode000500:intPiccReadValue(unsignedcharucBlock,unsignedchar PLUSBlockvalue,4Bytes,LSBfirstReturn:0(OK)orErrorCode0000070000:IntPiccReset(unsignedchartime(1byte)in0willkeepantennacloseReturn:0(OK)orErrorCode0000激活卡片:int unsignedcharunsignedcharucReqCode,unsignedchar*pATQ,unsignedchar*pSAK,unsignedchar*pUIDLen,unsignedchar*pUID)RefertoPiccResetcommand,ifset,theantennawillcloseforucRst_1ms(ms)first0x260x52Answertorequest(ATQ)(2bytes)SelectSOFnowledge(SAK)(1byte)UIDlength(1byte)UID(4bytesor7bytesReturn:0(OK)orError0x04bytesUID:1DB76057)001000040008041DB760 :intPiccRequestATS unsignedcharunsignedchar*pATSLen,unsignedchar*pATS)Setto*LengthoftheATSfromtheATS(answertoselectReturn:0(OK)orError0000107880900220900000000000F6D0B1:int unsignedintunsignedchar*pSendBuf,unsignedint*pRcvLen,unsignedchar*pRcvBuf lengthofdatatobesenttotheDatatobesenttothelengthofdatareceivedfromthe*DatareceivedfromthecardReturn:0(OK)orErrorCode000084000000F2EB10972DA5543B90:int unsignedcharunsignedcharucAFI,unsignedcharucMethod,unsignedchar*pUIDLen,unsignedchar*pUID)RefertoPiccResetcommand,ifset,theantennawillcloseforucRst_1ms(ms)firstApplicationFamilyIdentifier1:probabilisticOthers:slot-markerUIDpUID:willbe0x50asapreamble,andthen4bytesUIDandothersReturn:0(OK)orErrorCode000001000050BBEE4411112233117783RefertoPiccResetcommand,ifset,theantennawillcloseforucRst_1ms(ms)firstpINF:8bytesReturn:0(OK)orError000011223344556677RefertoPiccResetcommand,ifset,theantennawillcloseforucRst_1ms(ms)firstpINF:8bytesReturn:0(OK)orError000011223344556677unsignedcharucMethod,unsignedchar*pINFLen,unsignedchar*pINF);RefertoPiccResetcommand,ifset,theantennawillcloseforucRst_1ms(ms)firstucMethod:shouldbepINFLen:lengthofUIDandotherpINF:UID(thefirst8bytes)andotherinfReturn:0(OK)orErrorCode0000001201180164109E1833640002FFFFFF393B>>SendData:5000072C060109000180004E(06010900018000isAPDU<<ReceiveData:5000132C000001000102030405060708090A0B0C0D0E0F(0001000102030405060708090A0B0C0D0E0Fisthe16bytesdataout)>>Send5000172C08010900018000000102030405060708090A0B0C0D0E0F(08010900018000000102030405060708090A0B0C0D0E0FisAPDU(000102030405060708090A0B0C0D0E0Fisthe16bytesdatatowrite<<ReceiveData:5000022C0000尋卡:intISO15693_Inventory(unsignedcharunsignedcharAFI,unsignedcharmasklengh,unsignedchar*uid,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x26YourcardAFI,orsettodefault0x00Knowncardserialnumberlengthofbit,defaultis*

KnowncardserialnumberaccordingtomasklenghIfmasklengh==0,*uiddoesnotneedRespondeddatalength(mostly8bytesifonecardRespondeddata(thatiscardUID,8ByteslengthReturn:0(OK)orErrorCode(maybeno002600000x00(不附帶已知uid)。返回信息為一張卡片,resplen為長度,一般為8字節(jié),*resp為8字節(jié)進(jìn)制。操作卡需要執(zhí)行此命令,再進(jìn)行其它操作。讀卡:intISO15693_Read_Block(unsignedcharunsignedcharblnr,unsignedcharnbl,unsignedchar*uid,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x02(accesswithnoUIDappended)TheBlocknumberyouwanttoHowmuchblockreadinonetime,defaultis*Knowncardserial8bytesisneeded(ifflagssetto0x22)orNONE(asflagssettoRespondeddatalength(mostly6bytesifoneblockRespondeddata(6ThefirstbyteisreadingoperationstatusThesecondbyteisblocklockedstatusThethirdto6thbytesisblockdataReturn:0(OK)orErrorCode(maybeno000200000000111111寫卡:int unsignedcharunsignedcharblnr,unsignedcharnbl,unsignedchar*uid,unsignedchar*dtw,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x02(accesswithnoUIDappended)

TheBlocknumberyouwanttoHowmuchblockwriteinonetime,defaultis0x01Knowncardserialnumber8bytesisneeded(ifflagssetto0x22)orNONE(asflagssettoDatatowrite(accordingtonbl,defaultis0x04Respondeddatalength(mostly0x00Respondeddata(maybe0x00Return:0(OK)orErrorCode(maybeno實(shí)現(xiàn)功能:寫4個字節(jié)11223344到塊000200011122330000為你要寫入的第幾塊數(shù)據(jù)(*dtw),blnr從0開始;nbl默認(rèn)為1;*dtw4字節(jié)16進(jìn)制數(shù)鎖塊:int unsignedcharunsignedcharblnr,unsignedchar*uid,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x02(accesswithnoUIDappended)TheBlocknumberyouwantto*Knowncardserial8bytesisneeded(ifflagssetto0x22)orNONE(asflagssettoRespondeddatalength(mostly0x00Respondeddata(maybe0x00bytes)Return:0(OK)orErrorCode(maybenocard)000200AFI:intISO15693_Write_AFI(unsignedcharunsignedcharAFI,unsignedchar*uid,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x02(accesswithnoUIDappended)The*Knowncardserial8bytesisneeded(ifflagssetto0x22)orNONE(asflagssettoRespondeddatalength(mostly0x00Respondeddata(maybe0x00bytes)Return:0(OK)orErrorCode(maybenocard)000200AFI:int unsignedcharunsignedchar*uid,unsignedshort*resplen,unsignedchar*resp)flags:defaultis0x02(accesswithnoUID*Knowncardserial8bytesisneeded(ifflagssetto0x22)orNONE(asflagssettoRespondeddatalength(mostly0x00Respondeddata(maybe0x00bytes)Return:0(OK)orErrorCode(maybenocard)0000DSFID:IntISO15693_Write_DSFID unsignedcharunsignedcharDSFID,unsignedchar*uid,unsignedshort*resple

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論