查看: 7716|回复: 2

pn532电路板

[复制链接]

该用户从未签到

发表于 2011-7-25 13:48:16 | 显示全部楼层 |阅读模式
分享到:
PN532开发板,评估板

产品介绍:

PN532是NXP最近推出的一款NFC芯片,支持读卡器模式和卡模式(作为卡片的时候需要卡芯片Smart MX支持),芯片支持TypeA、TypeB、TypeC三个标准,而且内部带一个MCU51处理器,支持命令方式交互,可以直接跟PC机串口连接就成为一个RFID读卡器,简单方便快捷,成本低,性能好,是RFID发展的一个趋势。

读卡器通过串口和电脑连接,上位机可以使用功能强大的开源软件libnfc,libnfc实现了很多nfc的功能。

联系方式:

QQ:1074079485
http://gezhidz.taobao.com
手机:13113330725
电路板:


libnfc下面使用:

SCRTester使用界面:


MASK:


// =========================================================== //
//  T A M A  ****  S E T  O F  C O M M A N D S        //
//                                                            //
//  For all the TAMA command refer to UM0301 document        //
// =========================================================== //



//=============================================================================//
// Example use of TAMA as a Mifare Standard reader
// ============================================================================//

// Activate a target in passive mode
// =================================
PC -> IFD : INITIATOR : LIST PASSIVE TARGETS
            00 00 FF 04 FC D4 4A 01 00 E1 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : LIST PASSIVE TARGETS EXECUTED
            00 00 FF 0C F4 D5 4B 01 01 00 04 08 04 9C 28 76
            03 91 00



****  Place a Mifare Standard card close to the ANTENNA


// Exchange data with the Mifare Standard card
// ===========================================

// Authentication sector 1 (addresse 4 to 7)
// Replace the 4 bytes XX XX XX XX below by the Mifare ID number (NFCID1).
// This number is returned by InListPassiveTarget call (bytes 14 to 17)
//40 01 60 07 FF FF FF FF FF FF XX XX XX XX;
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 0F F1 D4 40 01 60 07 FF FF FF FF FF FF
            42 58 58 32 66 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 14 D6 00


//
// Read/Write command
//
// Read 16 bytes from block address 0x04
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 04 B7 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00

// Write 16 bytes to block address 0x04
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 15 EB D4 40 01 A0 04 00 11 22 33 44 55
            66 77 88 99 AA BB CC DD EE FF 4F 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00

// Read 16 bytes from block address 0x04
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 04 B7 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00

// Write 16 bytes to block address 0x04
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 15 EB D4 40 01 A0 04 FF EE DD CC BB AA
            99 88 77 66 55 44 33 22 11 00 4F 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00

// Read 16 bytes from block address 0x04
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 04 B7 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


//
// Increment/Decrement/Transsfert command
//

// Write 16 bytes to block address 0x05 in order to format
// the block before the Incr/Decr operation
//    * Value(lsb first)* 1's compl * Value    *Adr!AdrAdr!Adr
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 15 EB D4 40 01 A0 05 01 00 00 00 FE FF
            FF FF 01 00 00 00 05 FA 05 FA 4B 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x05
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 05 B6 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Write 16 bytes to block address 0x06 in order to format
// the block before the Incr/Decr operation
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 15 EB D4 40 01 A0 06 04 00 00 00 FB FF
            FF FF 04 00 00 00 06 F9 06 F9 47 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x06
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 06 B5 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Increment (plus 1 lsb first)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 09 F7 D4 40 01 C1 05 01 00 00 00 24 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x05 (No change until transfert command)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 05 B6 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Transfert (need to be done to store the decrement value)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 B0 05 36 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x05
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 05 B6 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Decrement (minus 2)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 09 F7 D4 40 01 C0 06 02 00 00 00 23 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x06 (No change until transfert command)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 06 B5 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Transfert (need to be done to store the decrement value)
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 B0 06 35 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00


// Read 16 bytes from block address 0x06
PC -> IFD : INITIATOR : DATA EXCHANGE
            00 00 FF 05 FB D4 40 01 30 06 B5 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : INITIATOR : DATA EXCHANGE EXECUTED
            00 00 FF 03 FD D5 41 01 E9 00



// Switch off the RF field
// =======================
// RFConfiguration
PC -> IFD : RF CONFIGURATION
            00 00 FF 04 FC D4 32 01 00 F9 00
IFD -> PC : ACK
            00 00 FF 00 FF 00
IFD -> PC : RF CONFIGURATION EXECUTED
            00 00 FF 02 FE D5 33 F8 00
回复

使用道具 举报

该用户从未签到

 楼主| 发表于 2011-7-26 17:27:33 | 显示全部楼层

回复:pn532电路板

新品上市,价格优惠,呵呵。
回复 支持 反对

使用道具 举报

该用户从未签到

发表于 2013-3-22 12:37:38 | 显示全部楼层

回复:pn532电路板

你好!我最近在用这块PN532读卡器模块,用一块FT232RL转接板连接PN532,然后接到电脑,打开SCRTester软件,连接COM口后。软件界面上Mask后没有显示,并且点击M按键,也没有ACK返回。请问是什么原因呢?谢谢:) 串口,command,TAMA,波特率都选择好了。
 
 
1.png
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /4 下一条



手机版|小黑屋|与非网

GMT+8, 2024-11-8 12:18 , Processed in 0.143060 second(s), 20 queries , MemCache On.

ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

苏公网安备 32059002001037号

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.