← Back to team overview

ubuntuforums-unanswered team mailing list archive

[Question #35013]: connection via mobile phone (problem with bad init string)

 

Question #35013 on wvdial in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/wvdial/+question/35013

Description changed to:
I'd like to connect to the Internet with a Huawei E220 HDSPA USB stick
using the German carrier eplus.  There are a number of people who
apparently get this stick to work, for the life of me, I can't.  I have
read https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220 but
I still have problems.

I think the modem is detected fine in my hardy installation

  $ lsusb
  Bus 003 Device 001: ID 0000:0000  
  Bus 002 Device 001: ID 0000:0000  
  Bus 001 Device 019: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
  Bus 001 Device 001: ID 0000:0000  

The "default" and "stick" entry in /etc/wvdial.conf look like this

  [Dialer Defaults]
  Modem   =       /dev/ttyUSB0
  Baud    =       460800
  New PPPD = yes
  Stupid Mode = 1
  Dial Command = ATDT 
  
  [Dialer stick]
  Init1 = ATZ
  Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  Init3 = AT+CGDCONT=1,"IP","internet.eplus.de"
  ISDN = 0
  Modem Type = Analog Modem
  New PPPD = yes
  Password = gprs
  Phone = *99#
  Modem = /dev/ttyUSB0
  Username = eplus
  Dial Attempts = 1
  Baud = 460800

But "sudo wvdial stick" fails with "Bad init string" which is strange
because the AT+CGDCONT line on which wvdial.conf fails seems exactly
like those found all over the internet.

  --> 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
  --> Sending: AT+CGDCONT=1,"IP","internet.eplus.de"
  AT+CGDCONT=1,"IP","internet.eplus.de"
  ERROR
  --> Bad init string.
  --> 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
  --> Sending: AT+CGDCONT=1,"IP","internet.eplus.de"
  AT+CGDCONT=1,"IP","internet.eplus.de"
  ERROR
  --> Bad init string.
  --> 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
  --> Sending: AT+CGDCONT=1,"IP","internet.eplus.de"
  AT+CGDCONT=1,"IP","internet.eplus.de"
  ERROR
  --> Bad init string.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.