Biblio::RFID::Reader::API - low-level RFID reader documentation
Each reader must implement following hooks as sub-classes.
$self->init;
my @tags = $self->invetory;
my $hash = $self->read_blocks( $tag );
All blocks are under key which is tag UID with array of blocks returned from reader
$hash = { 'E000000123456789' => [ 'blk1', 'blk2', ... ] };
Biblio::RFID::Reader::3M810 sends tag UID with data payload, so we might expect to receive response from other tags from protocol specification,
$self->write_blocks( $tag => $bytes ); $self->write_blocks( $tag => [ 'blk1', 'blk2', ... ] );
my $afi = $self->read_afi( $tag );
$self->write_afi( $tag => $afi );
$self->tag_type( $tag );
Just calls init in reader implementation so this class can be used as simple stub base class like Biblio::RFID::Reader::librfid does
init
To install Biblio::RFID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Biblio::RFID
CPAN shell
perl -MCPAN -e shell install Biblio::RFID
For more information on module installation, please visit the detailed CPAN module installation guide.