
Net::Appliance::Session::Transport::Serial

$s = Net::Appliance::Session->new(
Host => 'hostname.example',
Transport => 'Serial',
);
$s->connect(
Name => $username, # required if logging in
Password => $password, # required if logging in
);

This package sets up a new pseudo terminal, connected to a serial communication program running in a spawned process, which is then bound into Net::Telnet for IO purposes.

This module hooks into Net::Appliance::Session via its connect() method. Parameters are supplied to connect() in a hash of named arguments.
NameIf log-in is enabled (i.e. you have not disabled this via do_login()), and the remote host requests a username, then you must also supply a username in the Name parameter value. The username will be stored for possible later use by begin_privileged().
PasswordIf log-in is enabled (i.e. you have not disabled this via do_login()) then you must also supply a password in the Password parameter value. The password will be stored for possible later use by begin_privileged().
ParityYou have a choice of even, odd or none for the parity used in serial communication. The default is none, and override this by passing a value in the Parity named parameter.
NostopYou can control whether to use XON/XOFF handling for the serial communcation. The default is to disable this, so to enable it pass any False value in the Nostop named parameter (yes, this is counter-intuitive, sorry).
LineThis named parameter is used to specify the local system device through which a serial connection is made. The default is /dev/ttyS0 and you can override that by passing an alternate value to the Line named parameter. Make sure you have write access to the device.
SpeedYou can set the speed (or baud rate) of the serial line by passing a value to this named parameter. The default is to use a speed of 9600.
SleepAfter a connection is made to the device, one carriage return character is sent, and then this module looks to see whether there is a login or command prompt. If it doesn't see one after 10 seconds, it will time out and die.
Before the carriage return is sent you can request that the module pause, perhaps to allow your device to display boot messages or other notices. The default operation is not to sleep, so to override that pass an integer number to the Sleep named parameter, which will be the number of seconds to wait before sending that carriage return.
AppYou can override the default location of your cu application binary by providing a value to this named parameter. This module expects that the binary is a version of Ian Lance Taylor's cu application.
$s->connect(
Name => $username,
Password => $password,
App => '/usr/local/bin/cu',
);
The default binary location is /usr/bin/cu.

To be used, this module requires that your system have a working copy of Ian Lance Taylor's cu application installed.

Oliver Gorwits <oliver.gorwits@oucs.ox.ac.uk>

Copyright (c) The University of Oxford 2006. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA