Home
Платы расширения NFC Shield. Описание в формате PDF
Contents
1. www domko ru www electronshik ru SEED TECHNOLOGY INC SEEEDUINO NFC Shield Model SLD80453P Introduction NFC Shield is a Near Field Communication interface for Arduino build around the popular NXP PN532 integrated circuit NFC is a short distance radio technology that enables communication between devices that are held close together NFC traces its roots in RFID technology and is an open platform technology standardized in ECMA 340 and ISO IEC 18092 NFC is widely used like RFID to recognize cards tags NXP Mifare Cards Tags NFC can be used as an alternative to travel card using the read write memory provided by cards tags Few mobile phones comes with inbuilt they are used as readers of cards tags smart posters with a Web URL like a Mobile QR Code reader This technology is also being applied for smart cashless purchases Like many other standards NFC technology is regulated by Near Field Communication Forum which standardizes NFC communication how they devices pair share data and allow a secure transaction to happen NFC Forum develops and certifies devices compliant with NFC standards NFC operate on unlicensed ISM Industry Scientific Medical band of 13 56 MHz Frequency NFC communication range is up to 10 cm But this is limited by the antenna and power radiation design Mo
2. keys authenticate block 3 id is 32 bit passive target id uint32 t readMemoryBlock uint8 t cardnumber uint8 t blockaddress uint8 t block This method reads a memory block after authentication with the key Returns true when successful e cardnumber can be 1 or2 e blockaddress is block number any number between 0 63 for MIFARE card to read Each block is I6bytes long in case of MIFARE Standard card e block points to buffer byte array to hold 16 bytes of block data Usage uint8 t block 16 nfc readMemoryBlock 1 3 block Read can be performed only when authentication was successful uint32 t writeMemoryBlock uint8 t cardnumber uint8 t blockaddress uint8 t block This method writes data to a memory block after authentication with the key Returns true when successful e cardnumber can be 1 or2 e blockaddress is block number any number between 0 63 for MIFARE card to write Each block is I6bytes long in case of MIFARE Standard card e block points to buffer byte array which holds 16 bytes of block data to write Usage uint8 t writeBuffer 16 for uint8 t 11 0 11 lt 16 11 writeBuffer ii ii Fill buffer with 0 1 2 nfc writeMemoryBlock 1 0x08 writeBuffer Write writeBuffer to block address 0x08 Read can be performed only when authentication was successful readAlIMemoryBlocks pde Compile and upload readAIIMemoryBlocks pde example provided with the library This sketch
3. reads the complete memory of a MIFARE Standard card using default authentication keys The output gives typical memory layout of fresh MIFARE Standard card Blocks are classified as Manufacturer Block read only Data Block user application writable area and Sector Trailer authentication and access bits for that sector Output Hello Found chip PN532 Firmware ver 1 4 Supports 7 Found 1 tags Sens Response Ox4 Sel Response Ox8 OxS Ox SRead card 2999 254 48 85 1491 41 70 52 10 Block O Manufacturer Block 00000000000000005 Block 1 Data Block 00000000000000070p85 Block 2 Data Block O 0 FF7 80 69 FF FF FF FF FF FF Block 3 Sector Trailer 02 0 Block 4 Data Block 0 Block S Data Block Block 6 Data Block 00000 0 7 80 69 FF FF FF FF FF FF Block 7 Sector Trailer 012 84 5 57 8 9 A B C 8 Block o g 0000 00000020 009 8 Block 9 Data Block 0000000000 00000 Block 10 Data Block 00000 0 FF7 80 69 FF FF FF FF FF FF Block 1
4. 1 Sector Trailer 0000000000000 Block 12 Data Block 00000000000000 0 Block 13 Data Block 0 Block 14 Data Block 00000 0 7 80 69 FF FF FF FF FF FF Block 15 Sector Trailer O Block 16 Data Block 00000000000002e05 5 O O Block 17 Data Block 0000000000000 0 0 Block 18 Data Block 00000 O FF7 80 69 FF FF FF FF FF FF Block 19 Sector Trailer 0000000000000 Block 20 Data Block 000000000000002 075 0p0 Block 21 Data Block 000000000000002 000 Block 22 Data Block 00000 0 FF7 80 69 FF FF FF FF FF FF Block 23 Sector Trailer 0000000000000 Block 24 Data Block Block 25 Data Block O Block 26 Data Block 00000 0 7 80 69 FF FF FF FF FF FF Block 27 Sector Trailer 0000000000000 0 Block 28 Data Block 0000000000000 020 0 Block 29 Data Block 0000000000000 0 Block 30 Data Block 00000 0 FF7 8069 FF FF FF FF FF FF Block 31 Sector Trailer Block 32 Data Block 000000000000002 Block 33 Data Block Block 34 Data Block O O O O O 7 80 69 FF FF FF FF FF FF Block 35 Sector Trailer 00000000000002 00 Block 36 Data Block Block 37 Data Blo
5. ags Passive Target ID is an unique permanent and read only number programmed on to the MIFARE card by the manufacturer This number is used to identify one card from another e Connect the Shield to Seeeduino Arduino as shown above e Compile and upload the program to Arduino e Bring a Mifare Card near Antenna as shown above dinclude PN532 h Corrected MISO MOSI SCK for Mega from Jonathan Hogg www jonathanhogg com SS is the same due to NFC Shield schematic fdefine SS 10 if defined AVR ATmegal280 defined AVR ATmega2560 define MISO 50 define MOSI 51 define SCK 52 felse define MISO 12 define MOSI 11 define SCK 13 PN532 nfc SCK MISO MOSI SS void setup void Serial begin 9600 nfc begin uint32 t versiondata nfc getFirmwareVersion if versiondata Serial print Didn t find PN53x board while 1 halt Got ok data print it out Serial print Found chip PN5 Serial println versiondata 24 amp OxFF HEX Serial ver Serial print versiondata 16 amp OxFF DEC Serial print Serial println versiondata 58 amp OxFF DEC Serial print Supports Serial println versiondata amp OxFF HEX configure board to read RFID tags and cards nfc SAMConfig void loop void uint32 t id look for MiFare type cards nfc rea
6. ck Block 38 Data Block O O O O O O 7 80 69 FF FF FF FF FF Block 39 Sector Trailer 0000000000000 Block 40 Data Block 0000000000000 02e0 9 Block 41 Data Block 0000000000000 Block 42 Data Block 00000 7 80 69 FF FF FF FF FF FF Block 43 Sector Trailer 0000900090000000 0 O 0 Block 44 Data Block 0 Block 45 Data Block Block 46 Data Block 0 0000 0 7 80 69 FF FF FF FF FF FF Block 47 Sector Trailer 0000000000000 Block 48 Data Block 000000000000005 5 0 Block 49 Data Block 0000000000000 02 0 0 Block 50 Data Block 00000 FF7 80 69 FF FF FF FF FF FF Block 51 Sector Trailer 0000000000000 0 Block 52 Data Block 00000000000002 85 7209 Block 53 Data Block Block 54 Data Block 000 0 7 80 69 FF FF FF FF FF FF Block 55 Sector Trailer Block 56 Data Block Block 57 Data Block 0000000000000 Block 58 Data Block 0 0000 O 7 80 69 FF FF FF FF FF FF Block 59 Sector Trailer Block 60 Data Block 0000000000000 020 5 Block 61 Data Block 0000000000000 Block 62 Data Block 00000 O FF7 80 BC FF FF FF FF FF FF Blo
7. ck 63 Sector Trailer Support Ask questions on Seeed forum Version Tracker Revision Descriptions v0 9b Initial public release Resources e Arduino Lib for Shield e Shield Schematic and Board Files in Eagle Format Shield Schematic in PDF format e NXP PN532 User Manual Mifare One S50 IC e Forum How to buy Click here to buy NFC Shield from Seeedstudio Bazaar See Also Mifare One RFID Tag 13 56MHz Mifare One RFID card 13 56Mhz Seeeduino V2 2 Seeeduino ADK Main Board Licensing Release 4 Aug 2011 This documentation 15 licensed under the Creative Commons Attribution ShareAlike License 3 0 Source code and libraries are licensed under various Open Source Licenses see source code files for details
8. dPassiveTargetID PN532 MIFARE 15014443 Lf 1 0 1 Serial print Read card f Serial println id Application Programming Interfaces NFC is a secure technology Meaning Communication between NFC reader writer and NFC card tag happens in a encrypted and authenticated manner The security and other complex handshaking are handled by PN532 firmware provided by NXP The APIs make use of the commands to invoke the interfaces provided by PN532 firmware via SPI these commands are documented in PN532 User Manual The following APIs are provided by PN532 Library PN532 uint8 t cs 8 t clk uint8 t mosi 8 t miso An object of PN532 is created with this The digital pins of Arduino used SPI in AtMega328P or is specified as parameters Usage define SCK 13 define MOSI 11 define SS 10 define MISO 12 PN532 nfc SCK MISO MOSI SS begin begin method has to be called to initialize the driver Usage nfc begin boolean SAM Config void This API invokes the SAMConfiguration command of PN532 and sets it to Normal Mode SAM stands for Security Access Module i e the PN532 system PN532 system can work
9. in Normal mode Virtual Card mode Wired Card mode and Dual Card mode Usage nfc SAMConfig Call this before any read write operation uint32 t readPassiveTargetID uint8 t cardbaudrate This method reads the Passive Target ID and returns it as a 32 bit number At the moment only reading MIFARE 150 14443 cards tags are supported Hence use PN532 MIFARE 15014443 as parameter Returns 32 bit card number Usage uint32 t cid look for MiFare type cards tags cid nfc readPassiveTargetID PN532 MIFARE 1 014443 uint32 t authenticateBlock uint8 t cardnumber uint32 t cid uint8 t blockaddress uint8 t authtype 8 t keys This method is used to authenticate a memory block with key before read write operation Returns true when successful e cardnumber can be 1 or2 e cid is 32 bit Card ID e blockaddress is block number any number between 0 63 for MIFARE e authtype is which key is to be used for authentication either KEY or KEY B e keys points to the byte array holding 6 keys Usage uint8 t default key of a fresh card nfc authenticateBlock 1 id 3 KEY A
10. low e Compile and upload the example sketch provided 62 Shield Connected to the MIFARE Card near the antenna The Shield will read the passive id data Mifare Card held near NFC Shield Antenna e Hold the MIFARE Tag near the antenna The Shield will read the passive id data vu e oJ Mifare Tag held near NFC Shield Antenna Programming The PN532 software library for Shield is derived from Adafruits PN532 Library The original library provides API for reading Passive Target ID of Mifare Card Tags This is enough for card tag identification purpose We have added APIs for authentication reading from and writing to Mifare Cards Tags The software library only provides low level functionality Users have to implement application layer if required Quick Start Demo A simple sketch which reads the Passive Target ID from MIFARE cards and t
11. st devices work within a range of 10mm Shield antenna is designed to work within a range of NFC Shield provides all necessary circuitry for PN532 like 27 12Mhz crystal power supply It also beaks out the I O pins of PN532 for easy access The communication between Arduino and NFC Shield is via SPI Model SLD80453P Shield Features Arduino Shield compatible No soldering required SPI interface Hence most Arduino pins are available for other applications Built in PCB Antenna Supports both 3 3V and 5V operation using TI s TXB0104 level translator Socket to connect other shields The maximum communication range of this NFC Shield is about 5 cm Application Ideas Use as a RFID reader with Mifare One tags ISO14443 Type A and cards 13 56Mhz Build visiting card sharing system Build attendance systems Design authentication systems Read Smart Posters Securely exchange small data with other NFC devices Use with Seeeduino ADK Main Board for creating mobile NFC applications And other endless possibility Usage Hardware Installation e Set Seeeduino power selection slide switch to 3 3V e Connect Shield to Seeeduino as shown be
Download Pdf Manuals
Related Search
Related Contents
Programmatorie X-Core Installazione here - Neuroptics Spektralphotometer Modelle 7310 & 7315 Sun Fire X2100 M2 Server Installation Guide 機能仕様一覧表 Copyright © All rights reserved.
Failed to retrieve file