NAME

Device::CableModem::Motorola::SB4200

VERSION

version 0.14

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 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.

NAME

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

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 AND LICENSE

This software is copyright (c) 2009 by Burak Gursoy.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.