wvdial + USB modem + Ubuntu

Paul Hardwick paul at peck.org.uk
Fri Aug 7 13:54:40 CEST 2009


Dom Latter wrote:
> I've got a USB 3G modem (WM66) and a laptop running Ubuntu 9.04.
>
> The modem works fine when I boot my Windows 2000 partition.
>
>
> In linux I do these:
> sudo usb_modeswitch
> sudo /sbin/modprobe usbserial vendor=0x1c9e product=0x6061
> sudo rmmod usb-storage
> sudo wvdial hsdpa
>
> and on the last get this output:
>
> --> WvDial: Internet dialer version 1.60
> --> Cannot get information for serial port.
> --> Initializing modem.
> --> Sending: AT+CFUN=1
> AT+CFUN=1
> OK
> --> Sending: ATZ
> ATZ
> OK
> --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> OK
> --> Sending: AT+CGDCONT=1,"IP","internetmas","",0,0
> AT+CGDCONT=1,"IP","internetmas","",0,0
> OK
> --> Modem initialized.
> --> Sending: ATDT*99#
> --> Waiting for carrier.
> ATDT*99#
>
> <wait a minute>
>
> --> Timed out while dialing.  Trying again.
> --> Sending: ATDT*99#
> --> Waiting for carrier.
> ATDT*99#
> ERROR
> --> Invalid dial command.
> --> Disconnecting at Fri Aug  7 00:42:01 2009
>
> My wvdial.conf:
>
> [Dialer Defaults]
> Init1 = AT+CFUN=1
> Init2 = ATZ
> Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> Modem Type = USB Modem
> ISDN = 0
> Modem = /dev/ttyUSB2
> Baud = 9600
>
> [Dialer hsdpa]
> Init4 = AT+CGDCONT=1,"IP","internetmas","",0,0
> Baud = 460800
> Username = off
> Password = off
> New PPPD = yes
> Phone = *99#
> Dial Command = ATDT
> Stupid Mode = 1
> Carrier Check = no
> Remote Name = "*"
>
> I've tried lots of things, e.g. ATDT*99***1#, and without "Stupid Mode", etc.
>
> I can also talk directly to the modem ("screen /dev/ttyUSB2"), for example:
>
> AT+CSQ
> +CSQ: 11,91
>
> OK
> ATI
> Manufacturer: LONGCHEER HOLDINGS LIMITED
> Model: HSDPA USB MODEM
> Revision: LQA0011.1.1_M531C
> IMEI: 356685023008962
> +GCAP: +CGSM,+DS,+ES
>
> I've also tried sniffing the USB port under Windows to see what AT commands are used
> and then replicating these - still no joy.
> _______________________________________________
> CLUG mailing list
> clug at cambridge-lug.org
> Website: http://www.cambridge-lug.org
>
>   
Hi Dom,

What other ports have been created? I would try configuring wvdial for 
/dev/ttyUSB0 as that is the port assigned for PPP traditionally with 
/dev/ttyUSB2 often used for out-of-band control/signalling. The 
assignment can vary between fw, chipset and device manufacturer.
It is common to block AT commands that don't make sense for a specific 
port. Generally the long form dial command should be more universal.

Use any modem terminal program to connect to the port - if your dial 
command works then you will see the console fill with garbage characters.

For devices that have a more advanced packet type interfaces but still 
offering PPP as legacy support then the PPP interface will be some other 
port like ttyUSB3
I guess you are in Spain or are roaming in the UK with a Spanish SIM?

Paul H
www.pharscape.org



More information about the CLUG mailing list