.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "Biblio::RFID::RFID501 3pm"
.TH Biblio::RFID::RFID501 3pm "2023-05-24" "perl v5.36.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
Biblio::RFID::RFID501 \- RFID Standard for Libraries
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This module tries to decode tag format as described in document
.PP
.Vb 1
\& RFID 501: RFID Standards for Libraries
.Ve
.PP
.PP
Goal is to be compatible with existing 3M Alphanumeric tag format
which, as far as I know, isn't specificed anywhere. My documentation about
this format is available at
.PP
.SH "Data model"
.IX Header "Data model"
.SS "3M Alphanumeric tag"
.IX Subsection "3M Alphanumeric tag"
.Vb 3
\& 0 04 is 00 tt i [4 bit] = number of item in set [1 .. i .. s]
\& s [4 bit] = total items in set
\& tt [8 bit] = item type
\&
\& 1 dd dd dd dd dd [16 bytes] = barcode data
\& 2 dd dd dd dd
\& 3 dd dd dd dd
\& 4 dd dd dd dd
\&
\& 5 bb bl ll ll b [12 bit] = branch [unsigned]
\& l [20 bit] = library [unsigned]
\&
\& 6 cc cc cc cc c [32 bit] = custom signed integer
.Ve
.SS "3M Manufacturing Blank"
.IX Subsection "3M Manufacturing Blank"
.Vb 7
\& 0 55 55 55 55
\& 1 55 55 55 55
\& 2 55 55 55 55
\& 3 55 55 55 55
\& 4 55 55 55 55
\& 5 55 55 55 55
\& 6 00 00 00 00
.Ve
.SS "Generic blank"
.IX Subsection "Generic blank"
.Vb 3
\& 0 00 00 00 00
\& 1 00 00 00 00
\& 2 00 00 00 00
.Ve
.SH "Security"
.IX Header "Security"
\&\s-1AFI\s0 byte on \s-1RFID\s0 tag is used for security.
.PP
In my case, we have \s-1RFID\s0 door which can only read \s-1AFI\s0 bytes from tag and issue
alarm sound or ignore it depending on value of byte.
.IP "0xD7 214" 8
.IX Item "0xD7 214"
secured item (door will beep)
.IP "0xDA 218" 8
.IX Item "0xDA 218"
unsecured (door will ignore it)
.SH "METHODS"
.IX Header "METHODS"
.SS "to_hash"
.IX Subsection "to_hash"
.Vb 1
\& my $hash = Biblio::RFID::Decode::RFID501\->to_hash( $bytes );
\&
\& my $hash = Biblio::RFID::Decode::RFID501\->to_hash( [ \*(Aqblk1\*(Aq, \*(Aqblk2\*(Aq, ... , \*(Aqblk7\*(Aq ] );
.Ve
.SS "from_hash"
.IX Subsection "from_hash"
.Vb 1
\& my $blocks = Biblio::RFID::Decode::RFID\->from_hash({ content => "1301234567" });
.Ve
.SS "blank_3m"
.IX Subsection "blank_3m"
.SS "blank"
.IX Subsection "blank"
.Vb 1
\& my $blocks = Biblio::RFID::Decode::RFID\->blank;
.Ve