Joerg Ostertags Mini HowTo Seite

HowTo

O2 Surf Stick from Tchibo

Task

Getting a mobile Internet connection with either HSDPA/UMTS/EDGE/GPRS with a UMTS Surf Stick from O2-Tchibo.

Method

use kppp

Problem

pppd with debian has noauth disabled :-(

Solution

as root:
  • apt-get install kppp
  • Adding the user who wants to dial to the Group dip (and dialup) (vi /etc/group).
  • edit /etc/ppp/peers/kppp-options:
    noauth
    This Hint can be found in: /usr/share/doc/kppp/README.Debian
  • Remove the PIN from the SIM-Card before using in Unix. (Makes Things easier)
    This can be done with the Windows Tool or with a normal Mobile-Phone.
Add Profile to kppp
 APN: webmobil1
 Number: *99#
This will result in a configuration like: ~/.kde/share/config/kppprc:
pppdArguments=

[Account0]
AccountingEnabled=0
AccountingFile=
Authentication=1
AutoDNS=1
AutoName=0
BeforeConnect=
BeforeDisconnect=
CallbackPhone=
CallbackType=0
Command=
DNS=
DefaultRoute=1
DialPrefix=
DisconnectCommand=
Domain=tchibo.de
ExDNSDisabled=0
Gateway=0.0.0.0
IPAddr=0.0.0.0
Name=Tchibo
Password=Tchibo
Phonenumber=*99#
ScriptArguments=
ScriptCommands=
StorePassword=1
SubnetMask=0.0.0.0
Username=Tchibo
VolumeAccountingEnabled=0
pppdArguments=-detach,

[General]
DefaultAccount=Tchibo
DefaultModem=Huawai
NumberOfAccounts=1
NumberOfModems=1
PPPDebug=0
ShowLogWindow=1

[Graph]
Background=255,255,255
Enabled=true
InBytes=0,0,255
OutBytes=255,0,0
Text=0,0,0

[Modem0]
AnswerResponse=CONNECT
AnswerString=ATA
BusyResponse=BUSY
BusyWait=0
ConnectResponse=CONNECT
DLPResponse=DIGITAL LINE DETECTED
Device=/dev/ttyUSB0
DialString=ATDT
Enter=CR
EscapeGuardTime=50
EscapeResponse=OK
EscapeString=+++
FlowControl=Hardware [CRTSCTS]
HangUpResponse=OK
HangupString=+++ATH
InitDelay=50
InitResponse=OK
InitString=ATZ
InitString1=
Name=Huawai
NoCarrierResponse=NO CARRIER
NoDialToneDetection=ATX3
NoDialToneResp=NO DIALTONE
PreInitDelay=50
RingResponse=RING
Speed=921600
Timeout=60
ToneDuration=70
UseLockFile=1
Volume=1
VolumeHigh=M1L3
VolumeMedium=M1L1
VolumeOff=M0L0
WaitForDialTone=1

[WindowPosition]
WindowPositionConWinX=483
WindowPositionConWinY=355

Gnome:

With ubuntu and gnome network manager the config looks like this: ~/.gconf/system/networking/connections/3/gsm/%gconf.xml
<?xml version="1.0"?>
<gconf>
        <entry name="band" mtime="1247329413" type="int" value="0">    </entry>
        <entry name="network-type" mtime="1247329413" type="int" value="0">        </entry>
        <entry name="apn" mtime="1247329413" type="string">            <stringvalue>webmobil1</stringvalue>  </entry>
        <entry name="number" mtime="1247329413" type="string">         <stringvalue>*99#</stringvalue>       </entry>
        <entry name="name" mtime="1247329413" type="string">           <stringvalue>gsm</stringvalue>        </entry>
</gconf>

/var/log/messages

Jul 12 14:43:42 cool kernel: [221230.333876] usb 2-3.1.7: new high speed USB device using ehci_hcd and address 19
Jul 12 14:43:43 cool kernel: [221230.471201] usb 2-3.1.7: configuration #1 chosen from 1 choice
Jul 12 14:43:43 cool kernel: [221230.482106] scsi21 : SCSI emulation for USB Mass Storage devices
Jul 12 14:43:43 cool kernel: [221230.482429] usb 2-3.1.7: New USB device found, idVendor=12d1, idProduct=1003
Jul 12 14:43:43 cool kernel: [221230.482429] usb 2-3.1.7: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jul 12 14:43:43 cool kernel: [221230.482429] usb 2-3.1.7: Product: HUAWEI Mobile
Jul 12 14:43:43 cool kernel: [221230.482429] usb 2-3.1.7: Manufacturer: HUAWEI Technology
Jul 12 14:43:43 cool kernel: [221230.482429] usb 2-3.1.7: USB disconnect, address 19
Jul 12 14:43:49 cool kernel: [221239.525094] usb 2-3.1.7: new high speed USB device using ehci_hcd and address 20
Jul 12 14:43:50 cool kernel: [221239.668641] usb 2-3.1.7: configuration #1 chosen from 1 choice
Jul 12 14:43:50 cool kernel: [221239.676055] usb-storage: probe of 2-3.1.7:1.0 failed with error -5
Jul 12 14:43:50 cool kernel: [221239.676077] option 2-3.1.7:1.0: GSM modem (1-port) converter detected
Jul 12 14:43:50 cool kernel: [221239.676149] usb 2-3.1.7: GSM modem (1-port) converter now attached to ttyUSB2
Jul 12 14:43:50 cool kernel: [221239.677426] usb-storage: probe of 2-3.1.7:1.1 failed with error -5
Jul 12 14:43:50 cool kernel: [221239.677426] option 2-3.1.7:1.1: GSM modem (1-port) converter detected
Jul 12 14:43:50 cool kernel: [221239.677426] usb 2-3.1.7: GSM modem (1-port) converter now attached to ttyUSB3
Jul 12 14:43:54 cool kernel: [221244.830508] scsi24 : SCSI emulation for USB Mass Storage devices
Jul 12 14:43:58 cool kernel: [221249.801178] scsi25 : SCSI emulation for USB Mass Storage devices
Jul 12 14:43:58 cool kernel: [221249.803969] usb 2-3.1.7: New USB device found, idVendor=12d1, idProduct=1003
Jul 12 14:43:58 cool kernel: [221249.803974] usb 2-3.1.7: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jul 12 14:43:58 cool kernel: [221249.803976] usb 2-3.1.7: Product: HUAWEI Mobile
Jul 12 14:43:58 cool kernel: [221249.803978] usb 2-3.1.7: Manufacturer: HUAWEI Technology
Jul 12 14:43:59 cool kernel: [221251.033327] scsi 24:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jul 12 14:43:59 cool kernel: [221251.056610] sr0: scsi-1 drive
Jul 12 14:43:59 cool kernel: [221251.056610] sr 24:0:0:0: Attached scsi generic sg7 type 5
Jul 12 14:44:03 cool kernel: [221255.400933] scsi 25:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
Jul 12 14:44:03 cool kernel: [221255.408937] sd 25:0:0:0: [sdc] 15954944 512-byte hardware sectors (8169 MB)
Jul 12 14:44:03 cool kernel: [221255.408937] sd 25:0:0:0: [sdc] Write Protect is off
Jul 12 14:44:03 cool kernel: [221255.428486] sd 25:0:0:0: [sdc] 15954944 512-byte hardware sectors (8169 MB)
Jul 12 14:44:03 cool kernel: [221255.444294] sd 25:0:0:0: [sdc] Write Protect is off
Jul 12 14:44:03 cool kernel: [221255.444304]  sdc: sdc1
Jul 12 14:44:03 cool kernel: [221255.453861] sd 25:0:0:0: [sdc] Attached SCSI removable disk
Jul 12 14:44:03 cool kernel: [221255.453861] sd 25:0:0:0: Attached scsi generic sg8 type 0