Install serial port

From xPL
Revision as of 16:34, 16 March 2014 by Fcorthay (Talk | contribs)

Jump to: navigation, search

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.