Archive for April, 2013

A1 Telekom PPP Configuration Files

Wednesday, April 10th, 2013

If you are using a USB Modem on your Linux/OSX, you might want to use PPP for connecting to the host. For doing that, you require two files. On is the Conneciton (PPP)-File. It containts configuration information for the modem and connection. I’m using the following PPP File (Filename is ‘ppp’)

# usbserial device, some options:
/dev/ttyUSB0
460800
idle 7200
lock
crtscts
modem
noauth
# dns, routing
usepeerdns
replacedefaultroute
defaultroute
noipdefault
# avoid compression:
noccp
nobsdcomp
novj
# usually doesnt matter for GPRS/UMTS connections:
user "ppp@a1plus.at"
password "ppp"
# connect script
connect "/usr/sbin/chat -V -f /etc/ppp/peers/A1-chat"

At the End of the connection file, the Chat File is called. The Chat Files contains various AT-Commands for making the USB Modem ready to connect to the network. This is the Chat File I’m using. (the SIM has a disabled PIN). Filename is ‘A1-Chat’.

ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 120
#Display Modem Information
""   "ATI"
#Software Rest
""   "ATZ"
#Factory Default
""   "AT&F"
#enable ECHO
OK    "ATE1"
#A1 Specific Stuff
OK    'AT+CGDCONT=1,"IP","A1.net"'
SAY "CGDCONT Done"
TIMEOUT 60
OK   "ATDT*99***1#"
CONNECT

The two files are located in /etc/ppp/peers/. In order to establish the connection use

pppd call ppp

or

pppd call ppp nodetach

(for debug output). To close the connection use poff ppp.

If found the following sites helpful: