RFID::Matrics::Reader::TCP - Implement RFID::Matrics::Reader over a TCP connection
This class takes a host and port to connect to, connects to it, and implements the Matrics RFID protocol over that connection. It is designed to use a serial-to-Ethernet adapter plugged into the serial port of the reader; I tested it with the NPort Express from Moxa.
An example:
use RFID::Matrics::Reader::TCP; my $reader = RFID::Matrics::Reader::TCP->new(PeerAddr => 1.2.3.4, PeerPort => 4001, Node => 4, Antenna => MATRICS_ANT_1, Debug => 1, Timeout => CMD_TIMEOUT, ) or die "Couldn't create reader object.\n";
This class is built on top of RFID::Matrics::Reader and RFID::Reader::TCP.
This constructor accepts all arguments to the constructor for RFID::Reader::TCP. All other parameters are passed along to the set method.
RFID::Matrics::Reader, RFID::Reader::TCP, RFID::Matrics::Reader::Serial, http://www.eecs.umich.edu/~wherefid/code/rfid-perl/.
Scott Gifford <gifford@umich.edu>, <sgifford@suspectclass.com>
Copyright (C) 2004 The Regents of the University of Michigan.
See the file LICENSE included with the distribution for license information.
To install RFID::Matrics::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RFID::Matrics::Reader
CPAN shell
perl -MCPAN -e shell install RFID::Matrics::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.