Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strano problema con wvdial
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
fabiolino
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2006
Posts: 103
Location: bologna

PostPosted: Sun Dec 27, 2009 6:09 pm    Post subject: strano problema con wvdial Reply with quote

Ciao a tutti.
La mia penna 3 HDSPA mi crea uno strano problema di connessione da un po' di tempo ma in qualche modo mi sono sempre arrangiato.
In pratica quando mi collego con wvdial la connessione sembra andare a buon fine, e per qualche secondo riesco a navigare,
fino a quando non vi è un modem hung up:
Code:

--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: AT+COPS?
AT+COPS?
+COPS: 0,0,"H3G",2
OK
--> Sending: AT+CGDCONT=1,"ip","datacard.tre.it"
AT+CGDCONT=1,"ip","datacard.tre.it"
OK
--> Modem initialized.
--> Sending: ATM1L3DT*99#
--> Waiting for carrier.
ATM1L3DT*99#
CONNECT
--> Carrier detected.  Waiting for prompt.
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Sun Dec 27 19:24:06 2009
--> Pid of pppd: 4456
--> Using interface ppp0
--> pppd: t[7f]
--> pppd: t[7f]
--> pppd: t[7f]
--> pppd: t[7f]
--> pppd: t[7f]
--> local  IP address 10.98.23.237
--> pppd: t[7f]
--> remote IP address 10.64.64.64
--> pppd: t[7f]
--> primary   DNS address 62.13.171.4
--> pppd: t[7f]
--> secondary DNS address 62.13.171.5
--> pppd: t[7f]
--> pppd: t[7f]
--> Connect time 0.4 minutes.
--> pppd: t[7f]
--> pppd: t[7f]
--> pppd: t[7f]
--> Disconnecting at Sun Dec 27 19:24:35 2009
--> 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
--> Cannot open /dev/ttyACM0: No such file or directory
--> Cannot open /dev/ttyACM0: No such file or directory
--> Cannot open /dev/ttyACM0: No such file or directory
--> Disconnecting at Sun Dec 27 19:24:35 2009


Dal messaggio si evince che il dispositivo /dev/ttyACM0 non viene trovato infatti con ls -la /dev/ttyACM* risulta:
Code:

crw-rw---- 1 root uucp 166, 1 27 dic 19:24 /dev/ttyACM1


Sembra quasi che il dispositivo sia cambiato al volo 8O passando da ttyACM0 a ttyACM1 ma come mai.

Se serve vi posto anche il wvdial.conf:
Code:

[Dialer H3G]
Modem = /dev/ttyACM0
Modem Type = Analog Modem
Baud = 460800
Init1 =
Init2 = ATX3
Init3 = AT+COPS?
Init4 = AT+CGDCONT=1,"ip","datacard.tre.it"
Dial Command = ATM1L3DT
Carrier Check = on
Phone = *99#
Auto DNS = on
Check Def Route = on
Username = none
Password = none[Dialer Defaults]


La cosa piu' strana è che se rifaccio eject /dev/sr1 e poi wvdial H3G il problema il piu' delle volte non si ripresenta piu'.
Certe volte sono costretto a togliere e rimettere la pennetta pre farla funzionare.
Mi sono permesso di provarla anche su altre distro e fa' lo stesso difetto.

Qualcuno sa darmi lumi.
_________________
http://www.fabiospadaro.com
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sun Dec 27, 2009 6:14 pm    Post subject: Reply with quote

al posto di utilizzare l'eject, prima di lanciare wvdial lancia usb_modeswitch, non dimenticarti di configurare il file /etc/usb_modeswitch.conf
_________________
LP
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Mon Dec 28, 2009 3:23 am    Post subject: Reply with quote

anche a me capita con il cellulare umts collegato via usb. Io ho sempre dato la colpa al difettoso collegamento usb che produceva un "unplug-plug". Ora provo anche io a seguire il consiglio di lucapost :)
Back to top
View user's profile Send private message
fabiolino
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2006
Posts: 103
Location: bologna

PostPosted: Mon Dec 28, 2009 11:41 am    Post subject: Reply with quote

lucapost wrote:
al posto di utilizzare l'eject, prima di lanciare wvdial lancia usb_modeswitch, non dimenticarti di configurare il file /etc/usb_modeswitch.conf

Non mi funziona.
Ho impostato usb_modeswitch.conf:
Code:

DefaultVendor=0x05c6
DefaultProduct=0x2001

TargetVendor=0x1e0e
TargetProduct =0x3100


ed eseguito usb_modeswitch
Code:

# usb_modeswitch

 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
 Found default devices (1)
Accessing device 004 on bus 002 ...
Using endpoints 0x05 (out) and 0x83 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

Received inquiry data (detailed identification)
-------------------------
  Vendor String: PHD     
 Product String: MMC Storage     
Revision String: 2.31
-------------------------

Device description data (identification)
-------------------------
Manufacturer: PHD     , Incorporated
     Product: USB MMC Storage
  Serial No.: 000000000002
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.


Ed effettiamente permane
Code:

# lsusb
Bus 002 Device 004: ID 05c6:2001 Qualcomm, Inc.

_________________
http://www.fabiospadaro.com
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Dec 28, 2009 11:54 am    Post subject: Reply with quote

Nel file /etc/usb_modeswitch.conf prova a lasciare anche le linee MessageEndpoint e MessageContent.
Puoi inoltre postare il modello corretto della tua chiavetta 3G?

Inoltre, il vendor non dovrebbe cambiare...
_________________
LP
Back to top
View user's profile Send private message
fabiolino
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2006
Posts: 103
Location: bologna

PostPosted: Mon Dec 28, 2009 1:20 pm    Post subject: Reply with quote

lucapost wrote:
Nel file /etc/usb_modeswitch.conf prova a lasciare anche le linee MessageEndpoint e MessageContent.
Puoi inoltre postare il modello corretto della tua chiavetta 3G?

Inoltre, il vendor non dovrebbe cambiare...


modem MD-@ MOMODESIGN gestore 3.
Da premettere che i valori in usb_modeswitch.conf li ho inseriti a mano dato che il modello della mia penna non era presente tra quelli proposti.

Il valore di DefaultVendor e DefaultProduct li ho dedotti da lsusb nel momento in cui ho inserito la chiavetta e quindi nel momento in cui la chiavetta è stata eiconosciuta come USB storage mentre i valori di TargetVendor e TargetProduct li ho presi facendo prima una eject /dev/sr1 e poi prendendomi i valori dalla lsusb. Di conseguenza è per me difficle capire dove andare a prendere il MessageEndpoint e MessageContent.
_________________
http://www.fabiospadaro.com
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Dec 28, 2009 1:44 pm    Post subject: Reply with quote

forse la tua chiavetta non è ancora supportata da quel tool... :roll:
_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum