Net::CLI::Interact::Transport::Serial - Serial-line based CLI connection
This module provides a wrapped instance of a Serial-line client for use by Net::CLI::Interact.
On Windows platforms you must download the plink.exe program, and pass its location to the library in this parameter. On other platforms, this defaults to cu, which again you must download and install.
plink.exe
cu
Based on the connect_options hash provided to Net::CLI::Interact on construction, selects and formats parameters to provide to app on the command line. Supported attributes:
connect_options
app
FIXME: on Windows platforms, only the device attribute is supported.
Name of the device providing access to the Serial-line (e.g. /dev/ttyUSB0 or COM5.
/dev/ttyUSB0
COM5
You have a choice of even, odd or none for the parity used in serial communication. The default is none.
even
odd
none
You can control whether to use XON/XOFF handling for the serial communication. The default is to disable this, so to enable it pass any True value.
XON/XOFF
You can set the speed (or baud rate) of the serial line by passing a value to this named parameter. The default is 9600.
9600
If you want to pass any other options to the application, then use this option, which should be an array reference. Each item in the list will be passed to the application, separated by a single space character.
Only used on Unix platforms, this installs a signal handler which attempts to reap the child process. Pass a true value to enable this feature only if you notice zombie processes are being left behind after use.
See the following for further interface details:
Net::CLI::Interact::Transport::Base
To install Net::CLI::Interact, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::CLI::Interact
CPAN shell
perl -MCPAN -e shell install Net::CLI::Interact
For more information on module installation, please visit the detailed CPAN module installation guide.