The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RFID::Alien::Reader::Serial - Implement RFID::Alien::Reader over a serial link

SYNOPSIS

This class takes a serial port object and implements the Alien RFID protocol over it. It is based on RFID::Reader::Serial, and it takes the same parameters as its constructor. All other parameters are passed along to the set method

An example:

    use Win32::Serialport;
    use RFID::Alien::Reader::Serial;

    $com = Win32::SerialPort->new('COM1')
        or die "Couldn't open COM port 'COM1': $^E\n";

    my $reader = 
      RFID::Alien::Reader::Serial->new(Port => $com,
                                       AntennaSequence => [0,1,2,3])
        or die "Couldn't create reader object\n";

    $reader->set(PersistTime => 0,
                 AcquireMode => 'Inventory') == 0
        or die "Couldn't set reader properties\n";

    my @tags = $reader->readtags();
    foreach my $tag (@tags)
    {
        print "I see tag ",$tag->id,"\n";
    }

DESCRIPTION

This class is built on top of RFID::Alien::Reader, and RFID::Reader::Serial.

Constructor

new

Creates a new object. This constructor accepts all arguments to the constructors for RFID::Alien::Reader and RFID::Reader::Serial, and passes them along to both constructors. Any other settings are intrepeted as parameters to the set method.

SEE ALSO

RFID::Alien::Reader, RFID::Reader::Serial, RFID::Alien::Reader::TCP, http://whereabouts.eecs.umich.edu/code/rfid-perl/.

AUTHOR

Scott Gifford <gifford@umich.edu>, <sgifford@suspectclass.com>

Copyright (C) 2004-2006 The Regents of the University of Michigan.

See the file LICENSE included with the distribution for license information.