RFID::Matrics::Reader::TCP - Implement L<RFID::Matrics::Reader|RFID::Matrics::Reader> over a TCP connection


RFID-Matrics documentation Contained in the RFID-Matrics distribution.

Index


Code Index:

NAME

Top

RFID::Matrics::Reader::TCP - Implement RFID::Matrics::Reader over a TCP connection

SYNOPSIS

Top

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";

DESCRIPTION

Top

This class is built on top of RFID::Matrics::Reader and RFID::Reader::TCP.

Constructor

new

This constructor accepts all arguments to the constructor for RFID::Reader::TCP. All other parameters are passed along to the set method.

SEE ALSO

Top

RFID::Matrics::Reader, RFID::Reader::TCP, RFID::Matrics::Reader::Serial, http://www.eecs.umich.edu/~wherefid/code/rfid-perl/.

AUTHOR

Top

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.


RFID-Matrics documentation Contained in the RFID-Matrics distribution.
package RFID::Matrics::Reader::TCP;
@ISA = qw(RFID::Matrics::Reader RFID::Reader::TCP Exporter);
use RFID::Matrics::Reader; $VERSION=$RFID::Matrics::Reader::VERSION;
use RFID::Reader::TCP;
use Exporter;

# Written by Scott Gifford <gifford@umich.edu>
# Copyright (C) 2004 The Regents of the University of Michigan.
# See the file LICENSE included with the distribution for license
# information.

our @EXPORT_OK = @RFID::Matrics::Reader::EXPORT_OK;
our %EXPORT_TAGS = %RFID::Matrics::Reader::EXPORT_TAGS;

1;