Hallo,
ich versuche einen Raspberry Pi per Surfstick mit dem Internet zu verbinden.
Ich möchte das ganze temporär erledigen, ohne Dateien wie /etc/network/interfaces zu editieren.
ppp und wvdial sind installiert.
Temporär habe ich folgende Datei angelegt:
Und so hab ich mich versucht zu verbinden:
(at-console ist ein Hilfsprogramm, das genau dass tut, was der Name sagt und zur Eingabe der PIN genutzt wird)
Während der Meldung
--> Using interface ppp0
und
--> Disconnecting at Thu Oct 8 16:06:20 2015
konnte ich ifconfig ppp0 ausführen:
anschließend folgt:
Was läuft da schief?
Hat jemand eine Idee. Der Empfang ist übrigens gut:
(Die Werte sind von dem AT-Kommando at^hcsq? abgeleitet, welches auf Huawaisticks zur Verfügung steht. LAC/Cell-ID sind anonymisiert)
Gruß,
Tom
ich versuche einen Raspberry Pi per Surfstick mit dem Internet zu verbinden.
Ich möchte das ganze temporär erledigen, ohne Dateien wie /etc/network/interfaces zu editieren.
ppp und wvdial sind installiert.
Temporär habe ich folgende Datei angelegt:
Code:
root@localhost:~# cat /tmp/wvdial
[Dialer Defaults]
Phone = *99#
Username = "t-mobile"
Password = "tm"
Stupid Mode = on
Dial Command = ATDT
Modem Type = USB Modem
Modem = /dev/ttyUSB1
Init1 = ATZ
Carrier Check = on
Init2 = AT+CGDCONT?
Init3 = AT+CGDCONT=1,"IP","internet.t-mobile"
ISDN = off
(at-console ist ein Hilfsprogramm, das genau dass tut, was der Name sagt und zur Eingabe der PIN genutzt wird)
Code:
root@localhost:~# at-console /dev/ttyUSB1 152000
Ready ...
Enter 'q' or 'quit' to close the connection.
at+cpin=1234
OK
^SIMST:4,0
^SRVST: 0
^MODE: 0,0
^SIMST:1,0
^RSSI:99
^LTERSRP:99,99
^MODE: 5,4
^RSSI:15
^LTERSRP:-115,-12
^SRVST: 2
q
root@localhost:~# wvdial -C /tmp/wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT?
AT+CGDCONT?
+CGDCONT: 0,"IP","","",0,0,0,0
+CGDCONT: 1,"IP","internet.t-mobile","",0,0,0,0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.t-mobile"
AT+CGDCONT=1,"IP","internet.t-mobile"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Oct 8 16:05:49 2015
--> Pid of pppd: 1438
--> Using interface ppp0
--> pppd: (��
--> pppd: (��
--> pppd: (��
--> pppd: (��
--> pppd: (��
--> Disconnecting at Thu Oct 8 16:06:20 2015
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Disconnecting at Thu Oct 8 16:06:42 2015
--> Using interface ppp0
und
--> Disconnecting at Thu Oct 8 16:06:20 2015
konnte ich ifconfig ppp0 ausführen:
Code:
root@localhost:~# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code:
root@localhost:~# ifconfig ppp0
ppp0: error fetching interface information: Device not found
Hat jemand eine Idee. Der Empfang ist übrigens gut:
(Die Werte sind von dem AT-Kommando at^hcsq? abgeleitet, welches auf Huawaisticks zur Verfügung steht. LAC/Cell-ID sind anonymisiert)
Code:
Telekom;GSM;LAC1234;CID123456;-92 dBm;
Telekom;UMTS;LAC1234;CID123456;-94 dBm;
Telekom;LTE(800);;;;
Telekom;LTE;TAC:12345;ECI:1234567;-84 dBm;
Tom
0 commentaires:
Enregistrer un commentaire