版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ShenZhenBRD-公司:功能简 功能特 技术参 管脚定 电路图 封 天线接 通讯协 RS232数据格 数据格 数据 数据帧各字段说 命 命令描 系统命 设置波特率 设置蜂鸣器 设置LED灯 模块休眠SET_HALT ISO14443命 认证卡片密钥PICCAUTHKEY 读卡 写卡 写untralight卡 初始化电子钱包 电子钱包值操作 备份电子钱包值 读电子钱包值 卡片复位 激活卡片 请求应答 数据交互命令 读 读 激活Felica卡 寻卡 读卡 写卡 锁块 写AFI 锁AFI 写DSFID 锁DSFID 获取卡片信息 DC工作温度:-20°C~+80°C温度:-40°C~ 地地 99打开里的IPX封装库,用Pro 99软件打开。固定:8固定:1固定:1811121N1121N1卡片认证-读读AFIDSFIDDSFID异或校验错误—LRC命令不存在—NOTHIS:intSetUARTBaudRate(unsignedcharucRates)ucRates:(ParameterReturn:0(OK)orError0000:intSetBuzzer(unsignedcharucRates,unsignedcharucTimes)beepkeetimeswillbeucRates*50msandbeepucTimesReturn:0(OK)orError000300设置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实现功能:初始化数据块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字节,*resp为8字节进制。操作卡需要执行此命令,再进行其它操作。读卡: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实现功能:写4个字节11223344到块000200011122330000为你要写入的第几块数据(*dtw),blnr从0开始;nbl默认为1;*dtw4字节16进制数锁块: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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 对2022冬奥会的感受简短10篇
- 2024年二手房屋购买补充协议5篇
- 个人安全生产月主题活动总结范文八篇
- 毕业银行实习报告范文汇编6篇
- 把写进青春里作文-2021中考作文把什么写进青春里范文
- 高中学校团委工作总结范文
- 上半年员工工作总结
- 安装预算员年终总结范文
- 幼儿园儿童节邀请函范文合集6篇
- 众志成城抗击病毒疫情主题作文文本8篇
- 期末综合卷(含答案) 2024-2025学年苏教版数学六年级上册
- 中医筋伤的治疗
- 护理产科健康教育
- 《〈论语〉十二章》说课稿 2024-2025学年统编版高中语文选择性必修上册
- 2024年PE工程师培训教材:深入浅出讲解
- 数字华容道+课时2
- 中华人民共和国学前教育法-知识培训
- 2023-2024年高级经济师之工商管理试题库(有答案)
- 信息宣传课件教学课件
- 教育教学 形神拳 课件
- 中国吉兰-巴雷综合征诊治指南2024解读
评论
0/150
提交评论