[Ubuntu] Problemen met wvdial

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • DenDries
  • Registratie: Januari 2006
  • Laatst online: 09-09 20:43
Voor ons internetcafé op ons scoutskamp, was ik van plan om elke PC te voorzien van een Huawei E220 stick en Ubuntu 10.4.

Bedoeling is dat deze via het EDGE netwerk van Mobile Vikings (BASE Netwerk) in België, verbinding maken.

Nu heb ik alle sticks al voorzien van de laatst recente firmware.

Nadien heb ik de usb_modeswitch geinstalleerd en dit in de /etc/usb-modeswitch.conf gezet zodat de Huawei E220 enkel als modem (en niet als opslagmedium) wordt herkend:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
########################################################
# Huawei E220 (aka "Vodafone EasyBox II", aka "T-Mobile wnw Box Micro")
# Huawei E270
# Huawei E870
#
# Two options: 1. removal of "usb-storage" 2. the special control
# message found by Miroslav Bobovsky
#
# Contributor: Hans Kurent, Denis Sutter

DefaultVendor= 0x12d1
DefaultProduct= 0x1003

# choose one of these:
;DetachStorageOnly=1
HuaweiMode=1


Echter, wanneer ik het commando lsusb gebruik, verschijnt de modem soms wel, en soms niet in het lijstje:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
root@jamboPC:/home/jambo# lsusb
Bus 005 Device 024: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@jamboPC:/home/jambo# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Anyway, nadien heb ik wvdial geïnstalleerd en het commando wvdialconf uitgevoerd. Ik heb de correcte APN, username en password ingevuld.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = web
Init1 = ATZ
Password = web
Modem = /dev/ttyUSB0
Baud = 9600
APN = web.be
Stupid Mode = 1
Idle Seconds = 300


Nu, wanneer ik het commando wvdial uitvoer om verbinding te maken, krijg ik volgende error:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
root@jamboPC:/home/jambo# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Tue Jun 22 12:21:29 2010
--> Pid of pppd: 7382
--> Using interface ppp0
--> pppd: �ݒ[08]�Ӓ[08]
--> pppd: �ݒ[08]�Ӓ[08]
--> pppd: �ݒ[08]�Ӓ[08]
--> pppd: �ݒ[08]�Ӓ[08]
--> pppd: �ݒ[08]�Ӓ[08]
--> pppd: �ݒ[08]�Ӓ[08]
--> Disconnecting at Tue Jun 22 12:21:33 2010
--> [b][red]The PPP daemon has died: A modem hung up the phone (exit code = 16)[/red][/b]
--> 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.
root@jamboPC:/home/jambo#


Ik zit nu al enkele dagen te sukkelen op dit probleem en ik lijk maar geen oplossing te vinden. Het is ook vaag dat die modem soms niet gezien wordt door lsusb....

Iemand die mij kan helpen?

Acties:
  • 0 Henk 'm!

  • johnkeates
  • Registratie: Februari 2008
  • Laatst online: 04-07 16:30
Geeft dmesg, messages of syslog melding van een USB device die opeens 'kwijt' is?

Verder is je probleem met het inbellen dat de modem opgehangen heeft. pppd is druk bezig met bellen, een paar keer zo te zien, maar krijgt het maar niet voor elkaar.. Verder kan je kijken of ppp0 ook daadwerkelijk de juiste interface is (is het meestal wel).

Debian Squeeze heeft een wat beter ingebouwde UMTS USB modem support ingebouwd, maar is natuurlijk unstable.

Acties:
  • 0 Henk 'm!

  • DenDries
  • Registratie: Januari 2006
  • Laatst online: 09-09 20:43
johnkeates schreef op dinsdag 22 juni 2010 @ 12:29:
Geeft dmesg, messages of syslog melding van een USB device die opeens 'kwijt' is?

Verder is je probleem met het inbellen dat de modem opgehangen heeft. pppd is druk bezig met bellen, een paar keer zo te zien, maar krijgt het maar niet voor elkaar.. Verder kan je kijken of ppp0 ook daadwerkelijk de juiste interface is (is het meestal wel).

Debian Squeeze heeft een wat beter ingebouwde UMTS USB modem support ingebouwd, maar is natuurlijk unstable.
dmesg geeft me het volgende:
(ik vermoed dat het probleem komt doordat het nog steeds als mass storage medium wordt gezien?)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.....[  890.396018] usb 5-2: new full speed USB device using uhci_hcd and address 51
[  890.556031] usb 5-2: configuration #1 chosen from 1 choice
[  890.562032] option 5-2:1.0: GSM modem (1-port) converter detected
[  890.562136] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[  890.564363] option 5-2:1.1: GSM modem (1-port) converter detected
[  890.564451] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB1
[  890.571941] scsi151 : SCSI emulation for USB Mass Storage devices
[  890.572283] usb-storage: device found at 51
[  890.572286] usb-storage: waiting for device to settle before scanning
[  895.573379] usb-storage: device scan complete
[  895.576370] scsi 151:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  895.598338] sr1: scsi-1 drive
[  895.598476] sr 151:0:0:0: Attached scsi CD-ROM sr1
[  895.598565] sr 151:0:0:0: Attached scsi generic sg2 type 5
[  897.809635] option: option_instat_callback: error -84
[  897.928037] usb 5-2: USB disconnect, address 51
[  897.929593] option: option_instat_callback: error -108
[  897.929829] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  897.929856] option 5-2:1.0: device disconnected
[  897.930028] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  897.930051] option 5-2:1.1: device disconnected


en dit zie ik in syslog:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Jun 22 20:39:29 jamboPC kernel: [ 1089.236013] usb 5-2: new full speed USB device using uhci_hcd and address 61
Jun 22 20:39:30 jamboPC kernel: [ 1089.396027] usb 5-2: configuration #1 chosen from 1 choice
Jun 22 20:39:30 jamboPC kernel: [ 1089.402026] option 5-2:1.0: GSM modem (1-port) converter detected
Jun 22 20:39:30 jamboPC kernel: [ 1089.402129] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
Jun 22 20:39:30 jamboPC kernel: [ 1089.404638] option 5-2:1.1: GSM modem (1-port) converter detected
Jun 22 20:39:30 jamboPC kernel: [ 1089.404722] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB1
Jun 22 20:39:30 jamboPC modem-manager: (Huawei): (ttyUSB1) deferring support check
Jun 22 20:39:30 jamboPC kernel: [ 1089.422635] scsi181 : SCSI emulation for USB Mass Storage devices
Jun 22 20:39:30 jamboPC modem-manager: (ttyUSB0) opening serial device...
Jun 22 20:39:30 jamboPC kernel: [ 1089.424370] usb-storage: device found at 61
Jun 22 20:39:30 jamboPC kernel: [ 1089.424372] usb-storage: waiting for device to settle before scanning
Jun 22 20:39:30 jamboPC modem-manager: (ttyUSB0): probe requested by plugin 'Huawei'
Jun 22 20:39:31 jamboPC modem-manager: (ttyUSB0) closing serial device...
Jun 22 20:39:31 jamboPC modem-manager: (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2 claimed port ttyUSB0
Jun 22 20:39:31 jamboPC modem-manager: Added modem /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2
Jun 22 20:39:31 jamboPC modem-manager: Exported modem /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2 as /org/freedesktop/ModemManager/Modems/57
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): new GSM device (driver: 'option1')
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/59
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): now managed
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): device state change: 1 -> 2 (reason 2)
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 2).
Jun 22 20:39:31 jamboPC NetworkManager: <info>  (ttyUSB0): device state change: 2 -> 3 (reason 0)
Jun 22 20:39:33 jamboPC modem-manager: (ttyUSB1): re-checking support...
Jun 22 20:39:33 jamboPC modem-manager: (ttyUSB1) opening serial device...
Jun 22 20:39:35 jamboPC kernel: [ 1094.425375] usb-storage: device scan complete
Jun 22 20:39:35 jamboPC kernel: [ 1094.428365] scsi 181:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jun 22 20:39:35 jamboPC kernel: [ 1094.450331] sr1: scsi-1 drive
Jun 22 20:39:35 jamboPC kernel: [ 1094.450476] sr 181:0:0:0: Attached scsi CD-ROM sr1
Jun 22 20:39:35 jamboPC kernel: [ 1094.450565] sr 181:0:0:0: Attached scsi generic sg2 type 5
Jun 22 20:39:35 jamboPC modem-manager: (ttyUSB1) closing serial device...
Jun 22 20:39:35 jamboPC modem-manager: (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2 claimed port ttyUSB1
Jun 22 20:39:35 jamboPC kernel: [ 1095.011142] option: option_instat_callback: error -84
Jun 22 20:39:35 jamboPC kernel: [ 1095.088033] usb 5-2: USB disconnect, address 61
Jun 22 20:39:35 jamboPC kernel: [ 1095.089113] option: option_instat_callback: error -108
Jun 22 20:39:35 jamboPC kernel: [ 1095.089341] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jun 22 20:39:35 jamboPC kernel: [ 1095.089365] option 5-2:1.0: device disconnected
Jun 22 20:39:35 jamboPC kernel: [ 1095.089532] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jun 22 20:39:35 jamboPC kernel: [ 1095.089554] option 5-2:1.1: device disconnected
Jun 22 20:39:35 jamboPC modem-manager: Removed modem /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2
Jun 22 20:39:35 jamboPC NetworkManager: <info>  (ttyUSB0): now unmanaged
Jun 22 20:39:35 jamboPC NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 1 (reason 36)
Jun 22 20:39:35 jamboPC NetworkManager: <info>  (ttyUSB0): cleaning up...
Jun 22 20:39:35 jamboPC NetworkManager: <info>  (ttyUSB0): taking down device.


Nochtans, usb_modeswitch zou er toch moeten voor zorgen dat deze niet als opslagmedium wordt gezien?