Device...obotics(3pm)
π Device::Modem::UsRobotics β bestie edition π
okay so this is a page from the User Contributed Perl Documentation (that's the manual name, periodt π
), and it's all about Device::Modem::UsRobotics, the USR-modem glow-up for controlling self-mode. Buckle up π
β¨ NAME β¨
Device::Modem::UsRobotics β USR modems extensions to control self-mode πΈ
π¦ SYNOPSIS π¦
like, here's the whole vibe in code, no cap:
use Device::Modem::UsRobotics;
my $modem = Device::Modem::UsRobotics->new( port => '/dev/ttyS1' );
$modem->connect( baudrate => 9600 );
my %info = $modem->messages_info();
print "There are $info{unreleased_voice_msg} unread voice messages on $info{stored_voice_msg} total\n";
print "There are $info{unreleased_fax_msg} unread fax messages on $info{stored_fax_msg} total\n";
# Get details about message n. X
my %msg = $modem->message_info(1);
index type information attributes status day hour minute
callerid page addresshigh addresslow checksum
print 'This is a ', ($msg{type} == 2 ? 'voice' : 'fax'), 'message', "\n";
print 'It came from no. ', $msg{callerid}, "\n";
# ...
# Now clear all messages
$modem->clear_memory();
β οΈ WARNING β οΈ
bestie, heads up, this is important!!
This module is not documented yet, and it is a rough work in progress π. Up to now, it correctly reads voice/fax messages information β but when it's saving voice messages to disk, sometimes they are incorrectly decoded. It's giving "almost iconic but not quite".
So if you need a working program, go check out the good old TkUsr by Ludovic Drolez β unless you wanna help develop Device::Modem::UsRobotics, in which case, come through π«Ά.
π DOCS TO BE COMPLETED FROM NOW..... π
Yes, I'm a bad boy :-) π
π DESCRIPTION π
Bla Bla Bla... π¦
π METHODS π
π clear_memory()
Used to permanently clear the memory space of the modem. Not like, "oops undo", β permanently. There are separate memory spaces, one for voice/fax messages and one for user settings. Examples:
$modem->clear_memory('user'); # or $modem->clear_memory(1)
$modem->clear_memory('messages'); # or $modem->clear_memory(2)
To clear both, you can use:
$modem->clear_memory('all'); # or $modem->clear_memory(0);
Parameters:
$memtypeβ a String or integer that selects the type of memory to be cleared, where0is for"all",1is for"user"memory,2is for"messages"memory. Pick your fighter π
π«Ά SUPPORT π«Ά
Please feel free to contact me at my e-mail address cosimo@cpan.org for any information, to resolve problems you can encounter with this module, or for any kind of commercial support you may need. Slide into the inbox, fr fr β¨
π AUTHOR π
Cosimo Streppone, cosimo@cpan.org
π COPYRIGHT π
(C) 2004-2005 Cosimo Streppone, cosimo@cpan.org
This library is free software; you can only redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
Device::Modemperl
and that's the whole page, bestie!! π This lil' beauty comes to you as perl v5.30.3, dated 2020-06-20, and it's the Device...obotics(3pm) page from the User Contributed Perl Documentation. stay slaying, and don't clear your memory by accident πβ¨π
π¦ where this page comes from
- debian bookworm: libdevice-modem-perl 1.59-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdevice-modem-perl 1.59-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdevice-modem-perl 1.59-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdevice-modem-perl 1.59-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdevice-modem-perl 1.59-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms