The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Device::CableModem::Motorola::SB4200 - Interface to Motorola SurfBoard 4200 Cable Modem

SYNOPSIS

   use Device::CableModem::Motorola::SB4200;
   
   my $m = Device::CableModem::Motorola::SB4200->new(%opts);
   
   my %version = $m->versions;
   my %status  = $m->status;
   my %signal  = $m->signal;
   my %addr    = $m->addresses;
   my %config  = $m->config;
   my @logs    = $m->logs;
   
   $m->restart;
   $m->reset;
   
   my $fw = $version{software};
   printf "Firmware version is %s-%s\n", $fw->{version}, $fw->{string};
   die "Unknown device disguised as SB4200" if $fw->{model} ne 'SB4200';

DESCRIPTION

This document describes version 0.11 of Device::CableModem::Motorola::SB4200 released on 27 August 2012.

This module can be used to manage/fetch every setting available via the modem's web interface. It is also possible to restart/reset the modem.

All methods will die upon failure.

GENERAL METHODS

new

Contructor. Accepts named parameters listed below.

ip

Highly unlikely, but if the ip address of SB4200 is not 192.168.100.1, then you can set the ip address with this parameter.

agent

Returns a LWP::UserAgent object.

INFORMATION METHODS

Use Data::Dumper to see the outputs of these methods.

addresses

Provides information about the servers the Cable Modem is using, and the computers to which it is connected.

config

Provides information about the manually configurable settings of the Cable Modem.

logs

Returns a list of available modem logs.

signal

Provides information about the current upstream and downstream signal status of the Cable Modem.

status

Provides information about the startup process of the Cable Modem.

versions

Returns a list of hardware/software versions available in the modem.

MODIFICATION METHODS

reset

From the modem page:

   Resetting the cable modem to its factory default configuration will remove
   all stored parameters learned by the cable modem during prior
   initializations. The process to get back online from a factory default
   condition could take from 5 to 30 minutes. Please reference the cable
   modem User Guide for details on the power up sequence.

restart

Restarts the modem. Usually takes 10 seconds.

set_config

Can be used to alter every setting available via "config".

   $m->set_config( FREQ_PLAN     => "EUROPE"  );
   $m->set_config( FREQUENCY_MHZ => 543000001 );

SEE ALSO

Device::CableModem::SURFboard.

AUTHOR

Burak Gursoy <burak@cpan.org>.

COPYRIGHT

Copyright 2009 - 2012 Burak Gursoy. All rights reserved.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.