Linux
UMTS Breitband PCMCIA Einsteckkarten unter Linux
Quelle: http://www.xing.com/app/forum?op=showarticles;id=4367745
Ich nutze HSDPA mit Vodafone relativ regelmässig. Die Karte wird unter Ubuntu (und vermutlich somit auch unter SuSE) als Modem erkannt. Man benötigt lediglich zusätzlich ein kleines Script um die PIN einzugeben:
/usr/local/bin/setpin.pl:
#!/usr/bin/perl
use strict;
use warnings;
my $modem = "/dev/ttyUSB0";
# Substitute xxxx with your PIN.
# You should probably put your PIN somewhere else, e.g. on a USB stick,
# an encrypted file system or something else, and read it from there...
# You have been warned!
my $pin = "1234"; # hier PIN eintragen
$SIG{ALRM} = sub {
die("timeout: no response from modem $modem\n");
};
open(MODEM, "+<", $modem) or die("can't open modem $modem");
alarm(10);
print(MODEM "AT+CPIN=\"$pin\"\n\r");
while (<MODEM>) {
if (m/OK/) {
close(MODEM);
print("PIN accepted\n");
exit(0);
}
if (m/ERROR/) {
close(MODEM);
print("PIN rejected\n");
exit(1);
}
}
Und mit wvdial kann man dann die Einwahl machen, wobei die Konfiguration wie folgt aussieht:
/etc/wvdial.conf:
[Dialer umts] Modem = /dev/ttyUSB0 Baud = 1800000 Username = ppp Password = ppp Phone = *99***1# Stupid Mode = 1 Init1 = AT+CGDCONT=1,"IP","web.vodafone.de" Dial Attempts = 3
Dann einfach ein Alias in der .bashrc auf die Einwahl legen und schon heisst es Karte rein, Alias eingeben, lossurfen:
alias umts='setpin.pl && wvdial umts'
Interessant ist, statt der manuellen Methode, auch die Nutzung von UMTSMon (
http://umtsmon.sourceforge.net) wenn man eine grafische Oberfläche mit PIN-Eingabe bevorzugt.
Verwandte Artikel:
Letzte Änderung des Artikels: 2010-02-17 22:13
Verfasser des Artikels: Florian Schrön
Revision: 1.1
Kommentieren nicht möglich