Scott Gifford

NAME

RFID::Reader::Serial - Abstract base class for readers implemented over a serial connection.

SYNOPSIS

This is an abstract base class used for building an RFID Reader class implemented over a TCP connection. It provides the basic I/O methods that an object based on RFID::Reader will expect, and generally a reader based on this class will simply inherit from it and add a few details. In other words, this class is fairly complete, and you shouldn't have to add much to it to make it workable.

DESCRIPTION

Constructor

new

This constructor accepts its parameters as a hash. Any unrecognized arguments are intrepeted as parameters to the set method.

The following parameters are accepted:

Port

The serial port object that communication should take place over. The object should be compatible with Win32::SerialPort; the Unix equivalent is Device::SerialPort. You are responsible for creating the serial port object.

Timeout

The maximum time to wait for a response from the reader, in seconds.

Baudrate

An integer specifying the speed at which communication should take place.

SEE ALSO

RFID::Reader, RFID::Reader::Serial, Win32::SerialPort, Device::SerialPort.

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.