1 package RFID::Serial::Decode::RFID501;
8 RFID::501 - RFID Standard for Libraries
12 This module tries to decode tag format as specified in document
14 RFID 501: RFID Standards for Libraries
16 However, document is lacking real specification, so tag decoding
17 was done to be compliant with 3M implementation
23 my $hash = RFID::Serial::Decode::RFID501->to_hash( $bytes );
31 13 => 'Book with Audio Tape',
32 9 => 'Book with CD/CD ROM',
38 8 => 'Book with Diskette',
43 my ( $self, $data ) = @_;
47 my ( $u1, $set_item, $u2, $type, $content, $br_lib, $custom ) = unpack('C4Z16Nl>',$data);
51 set => ( $set_item & 0xf0 ) >> 4,
52 total => ( $set_item & 0x0f ),
55 type_label => $item_type->{$type},
58 branch => $br_lib >> 20,
59 library => $br_lib & 0x000fffff,