Using the o2 Laptop Card with Ubuntu

lsusb shows the card as:
Bus 007 Device 002: ID 0af0:6701 Option
and the Feisty kernel supports it out of the box.

Using umtsmon I can set the PIN and not worry about it anymore. However, I was unable to connect using the tool.

I had some difficulties with connectiong to the APN “surfo2” so I’ll just post my working ppp scripts:

/etc/ppp/peers/o2s:

#device
/dev/ttyUSB0

# baud speed
460800

# log all packets to syslog
debug

#use hardware flow control
crtscts

#disable compression:
noccp
nobsdcomp
noaccomp
novj

# create a lock file for the serial device
lock

# we do not neet to authenticate ourselves?
noauth

# Disables the default behaviour when no local IP address is specified, which is to
# determine (if possible) the local IP address from the hostname. With this option, the
# peer will have to supply the local IP address during IPCP negotiation (unless it speci‐
# fied explicitly on the command line or in an options file).
noipdefault

noproxyarp

# add default route using the peer as the gateway
defaultroute

# ask the peer for up to 2 dns servers
usepeerdns

# use this for auth to the peer
user ”
password ”

# chatscript to use
connect “/usr/sbin/chat -v -f /etc/chatscripts/o2-surfo2”

# accept te peers ip adresses for both connection ends
ipcp-accept-remote
ipcp-accept-local

and /etc/chatscrips/o2-surfo2

'ABORT' "BUSY"
'ABORT' "ERROR"
'ABORT' "NO ANSWER"
'ABORT' "NO CARRIER"
'ABORT' "NO DIALTONE"
'ABORT' "Invalid Login"
'ABORT' "Login incorrect"
'TIMEOUT' '10'
'' 'ATZ'
'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
# this next line is extra for O2
'OK' 'AT+CGDCONT=1,"IP","surfo2"'
'TIMEOUT' '60'
'OK' 'ATDT*99***1#'
'CONNECT' ''
'TIMEOUT' '5'

, , , , ,

About Jörn Dreyer

learned in a bank, studied business informatics, took the red pill and went down the rabbit hole of software engineering, working on my Ph.D.