NAME

Lab::Bus::RS232 - RS232 or Virtual Comm port bus

VERSION

version 3.641

SYNOPSIS

my $bus = Lab::Bus::RS232({
   port => '/dev/ttyACM0'
 });

Return blessed $self, with @_ accessible through $self->config().

port: Device name to use (e.g. COM1 under Windows or /dev/ttyUSB1 under Linux)

TODO: check this!!!

DESCRIPTION

This is a bus for Lab::Measurement to communicate via RS232 or Virtual Comm port e.g. for FTDI devices.

CONSTRUCTOR

new

All parameters are used as by Device::SerialPort. port is needed in every case. An additional parameter reuse is avaliable if two instruments use the same port. This is mainly implemented for USBprologix gateway. reuse can be a SerialPort object or a Lab::Instrument... package. Default value for timeout is 500ms and can be set by the parameter "timeout". Other options: handshake, baudrate, databits, stopbits and parity

METHODS

Used by Lab::Instrument. Not for direct use!!!

Read

Reads data.

Write

Sent data to instrument

Handle

Give instrument object handle

CAVEATS/BUGS

Probably many. So far BrutalRead and Clear are not implemented because not needed for this interface.

SEE ALSO

Lab::Instrument
Win32::SerialPort
Device::SerialPort

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by the Lab::Measurement team; in detail:

Copyright 2010       Andreas K. Huettel
          2011-2012  Andreas K. Huettel, Florian Olbrich
          2016       Simon Reinhardt
          2017       Andreas K. Huettel

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.