Andrea Guzzo > RFID-Libnfc-0.13 > RFID::Libnfc::Tag::ISO14443A_106::ULTRA



Annotate this POD

View/Report Bugs
Module Version: 0.13   Source  


RFID::Libnfc::Tag::ISO14443A_106::ULTRA Specific implementation for mifare ultralight tags


  use RFID::Libnfc;

  $tag = $r->connectTag(IM_ISO14443A_106);

  # so the 2-level cascade selection process as specified in M028634_MF0ICU1_Functional_Spec_V3.4.pdf 


  Base class for ISO14443A_106 compliant tags


None by default.

Exportable functions


read_block ( $block )

Returns the data contained within the block number $block

NOTE: read operations on ultrlight will return back 16 bytes, even if a single block is 4 bytes wide. Remember also about the "roll back" property described in chapter 6.6.4 of the spec document : M028634_MF0ICU1_Functional_Spec_V3.4.pdf So , If you are reading one of the last three blocks, you will get data also from the first ones , since always 4 blocks are read.

(for instance. if you read block 15, you will get back data from 15, 1, 2 and 3)

write_block ( $block, $data )

Writes $data into $blocknum. Remember that ultralight cards have 4byte blocks so whatever you pass as $data will be truncated to 4 bytes

read_sector ( $sector, $data )

On ultralight token read_sector is only an alias for read_block since on such cards 1 sector (called also 'page' within the specs) is exactly 1 block

write_sector ( $sector, $data )

On ultralight token write_sector is only an alias for write_block since on such cards 1 sector (called also 'page' within the specs) is exactly 1 block

blocks ( )

Returns the number of blocks present on the card

sectors ( )

Returns the number of sectors present on the card

acl ( )

Returns a representation of the aclbits. (boths page-locking bits and block-locking bits)

select ( )

implements the 2-level cascade selection process


RFID::Libnfc::Tag::ISO14443A_106::ULTRA RFID::Libnfc::Tag::ISO14443A_106::4K RFID::Libnfc::Tag::ISO14443A_106 RFID::Libnfc::Constants RFID::Libnfc


  check also documentation for libnfc c library 
  [ ] 





Copyright (C) 2009-2011 by xant <>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: