Jump to content

Search the Community

Showing results for tags 'mifare'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 2 results

  1. Hi everybody, >>> UPDATE - Made "proper" Energia Library out of it. Now with proper named methods/class members<<< >>> UPDATE 2 - Added "keywords.txt" file for syntax highlighting, added comments to "Mfrc522.cpp" file explaining methods (thanks to Grant) - Added example to read cards contents of block 1 <<< >>> UPDATE 3 - You need to apply the USCI SPI fix proposed by Spirilis (post #22) in the following thread: http://forum.43oh.com/topic/3237-energia-library-nordic-nrf24l01-library/page-2 , otherwise the card reader won't work! <<<< I wanted to share my results with the MF RC522 RFID reader. I found an article from Grant Gibson (http://www.grantgibson.co.uk/blog/2012/04/how-to-get-started-with-the-mifare-mf522-an-and-arduino/#comments) where he used a cheap reader from eBay to read Mifare cards. (http://www.ebay.com/itm/Mifare-RC522-RFID-13-56Mhz-Module-SPI-Interface-with-a-IC-Card-/370690680474?pt=LH_DefaultDomain_0&hash=item564ee2e69a) The command set and technical aspects of the MFRC522 chip can be found in the datasheet: http://www.nxp.com/documents/data_sheet/MFRC522.pdf I have ported the example to Energia. Very simple by removing all Chinese comments and replacing uchar with unsigned chars. After these changes it works like a charm. Just connect the following lines: MOSI LP -> Pin 3 of the module MISO LP -> Pin 4 of the module PIn 1.3 LP -> Pin 1 of the module (SS) Pin 2.2 LP -> Pin 7 of the module (RST) Pin 1.5 LP -> Pin 2 of the module (SCK) GND LP -> Pin 6 of the module VCC LP -> Pin 8 of the module Pin 5 is not connected. Included is the sketch (Mfrc522.zip) I used. Now onto opening doors and paying electronically! Kind regards, Eelco
  2. Hi All, I am trying to study again on a Mifare reader, that i used to play with using this library on Arduino: https://github.com/marcboon/RFIDuino/tree/master/SL018">https://github.com/marcboon/RFIDuino/tree/master/SL018 When a tag is sensed, the demo program from the link above is displaying information like this: ### CMD_LOGIN - read@@Block 0C: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................@@Block 0D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................@@Block 0E: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................@@Block 0F: 00 00 00 00 00 00 FF 07 80 69 FF FF FF FF FF FF .........i...... I used to believe the data are actually from the tag, but as i read more about the standard from the Internet, I became aware that Mifare provides sector encryption. So, I'm not sure the demo code will still give some data (garbage, zeros, or something else) on sectors that are encrypted, or the code will display error message instead. If anyone have used this library and can kindly teach me on this? I have studied the demo code and found that it is using a read login code that passes a "transport key" of 0xFF as in the void SL018::authenticate(byte sector) method : void SL018::authenticate(byte sector){ data[0] = 9; data[1] = CMD_LOGIN; data[2] = sector; data[3] = 0xAA; memset(data + 4, 0xFF, 6); transmitData(); } There is another method that accept a "decryption key" but it is not used in the demo code: void SL018::authenticate(byte sector, byte keyType, byte key[6]){ data[0] = 9; data[1] = CMD_LOGIN; data[2] = sector; data[3] = keyType; memcpy(data + 4, key, 6); transmitData(); } The demo code called the authenticate method with the standard "FF" (only one argument, the sector) on every write: ...else{ authenticated = false; rfid.authenticate(block >> 2); } Any hints will be much appreciated. Thanks in advance.
×