KPN UMTS on Linux: Difference between revisions
From DWIKI
Line 9: | Line 9: | ||
===/usr/local/bin/umtsinit=== | ===/usr/local/bin/umtsinit=== | ||
#!/bin/sh | #!/bin/sh | ||
#based on script from http://www.xs4all.nl/helpdesk/mobielinternet/umts/linux/ | #based on script from http://www.xs4all.nl/helpdesk/mobielinternet/umts/linux/ | ||
DEFAULTPIN="0000"; | |||
TTYDEV="/dev/ttyUSB0"; | TTYDEV="/dev/ttyUSB0"; | ||
if [ $1 ] ; then | if [ $1 ] ; then | ||
Line 20: | Line 21: | ||
sleep 1; | sleep 1; | ||
echo "at+cpin=\"$PIN\"" > $TTYDEV; | echo "at+cpin=\"$PIN\"" > $TTYDEV; | ||
echo "PIN passed to $TTYDEV"; | echo "PIN passed to $TTYDEV"; | ||
===/etc/ppp/peers/umts=== | ===/etc/ppp/peers/umts=== |
Revision as of 14:38, 28 February 2008
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 #based on script from http://www.xs4all.nl/helpdesk/mobielinternet/umts/linux/ DEFAULTPIN="0000"; 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