KPN UMTS on Linux

From DWIKI

UMTS with the KPN 720 pccard (Huawei E620)

The Kernel

Since pcmcia-cs/cardmgr are deprecated, the way to go now is documented here.

PPP configuration

/usr/local/bin/umtsinit

#!/bin/sh DEFAULTPIN="0000"; 
#based on script from http://www.xs4all.nl/helpdesk/mobielinternet/umts/linux/
TTYDEV="/dev/ttyUSB0"; 
if [ $1 ] ; then 
 PIN=$1; 
else 
 PIN=$DEFAULTPIN; 
fi 
echo "at" > $TTYDEV; 
sleep 1; 
echo "at+cpin=\"$PIN\"" > $TTYDEV; 
echo "PIN passed to $TTYDEV"; 


/etc/ppp/peers/umts

/dev/ttyUSB0 460800 
connect '/usr/sbin/chat -v -f /etc/ppp/umts-chat' 
novj 
crtscts 
noauth 
defaultroute 
debug 
nodeflate 
noccp 
noipdefault 
noaccomp 
usepeerdns

/etc/ppp/umts-chat

TIMEOUT 5 
ECHO ON 
ABORT '\nBUSY\r' 
ABORT '\nERROR\r' 
ABORT '\nNO ANSWER\r' 
ABORT '\nNO CARRIER\r' 
ABORT '\nNO DIALTONE\r' 
ABORT '\nRINGING\r\n\r\nRINGING\r' 
 \rAT 
TIMEOUT 12 
OK ATZ 
OK 'AT+cgdcont=1,"IP","internet",,0,0' 
OK ATD*99***1#


Connecting

Run umtsinit and wait for the LED to turn blue, then run pppd call umts.


Disconnecting

poff umts

Related docs

In Dutch

In English