1 package Biblio::RFID::Reader::API;
6 use Biblio::RFID::RFID501;
7 use Biblio::RFID::SmartX;
11 Biblio::RFID::Reader::API - low-level RFID reader documentation
15 =head1 MANDATORY METHODS
17 Each reader must implement following hooks as sub-classes.
25 my @tags = $self->invetory;
29 my $hash = $self->read_blocks( $tag );
31 All blocks are under key which is tag UID with array of blocks returned from reader
33 $hash = { 'E000000123456789' => [ 'blk1', 'blk2', ... ] };
35 L<Biblio::RFID::Reader::3M810> sends tag UID with data payload, so we might expect
36 to receive response from other tags from protocol specification,
40 $self->write_blocks( $tag => $bytes );
42 $self->write_blocks( $tag => [ 'blk1', 'blk2', ... ] );
46 my $afi = $self->read_afi( $tag );
50 $self->write_afi( $tag => $afi );
54 $self->tag_type( $tag );
58 sub tag_type { 'RFID501' }
64 Just calls C<init> in reader implementation so this class
65 can be used as simple stub base class like
66 L<Biblio::RFID::Reader::librfid> does
74 $self->init && return $self;