Device-Conrad-RelaisControl

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

Device/Conrad/RelaisControl 
========================================

This module supports access to a Conrad RelaisCard. Conrad
is a large german electronic stuff dealer. They are selling
a self manufactured card with 8 relais on it. The card
is accessed via serial communication. The card is also
cascadeable up to 255 cards in a ring. 

While the task of accessing such a card is very simple
this distribution contains 3 module files. These are
the abstraction of the whole cascade, the card and the
communcation.

Frame.pm contains the protocol which is used to talk to
the card. RelaisCard.pm is the owner of one single card.
RelaisControl.pm is the container for an arbitrary number
of cards.

For simple tasks you only need the RelaisControl module.
It allows direct access to any port on any card. 

RelaisControl.pm  view on Meta::CPAN


  $card->ports(255);

  $card->close(1);
  $card->open(1);

=head1 DESCRIPTION

This module provides an abstraction layer for accessing a Conrad Electronic
Relaiscard. It acts as a container for several cards (the cards are 
cascadeable) and controls the communication over the serial port. 

=head2 Creation

At time of creation of the RelaisControl Object the serial port is
initialized. It is the only operation which works without having
a card attached to the serial port.

=head2 Initialization

The init method communicates with the card(s) in order to figure



( run in 0.657 second using v1.01-cache-2.11-cpan-49f99fa48dc )