Difference between revisions of "Install serial port"

From xPL
Jump to: navigation, search
(Created page with "= CPAN serial port module = The xPL serial port client bases on the [http://www.cpan.org Perl CPAN] [http://search.cpan.org/~cook/Device-SerialPort-1.04/SerialPort.pm Device:...")
 
Line 1: Line 1:
 +
Many devices are controlled over an [http://en.wikipedia.org/wiki/RS-232 RS-232] serial port.
 +
 
= CPAN serial port module =
 
= CPAN serial port module =
  
Line 25: Line 27:
  
 
= Serial port client =
 
= Serial port client =
 +
 +
Download the serial port xPL client.

Revision as of 16:34, 16 March 2014

Many devices are controlled over an RS-232 serial port.

CPAN serial port module

The xPL serial port client bases on the Perl CPAN Device::SerialPort module.

Open a terminal and login as root.

Update CPAN:

perl -MCPAN -e shell
  > install LWP
  > reload LWP
  > install CPAN
  > reload CPAN
  > install YAML
  > q

Check if the serial port driver is already installed:

perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' 2> /dev/null | grep -i serial

Install the serial port driver:

perl -MCPAN -e "install 'Device::SerialPort'"

Alternatively, on Ubuntu:

apt-get install libdevice-serialport-perl

Serial port client

Download the serial port xPL client.