KPN UMTS on Linux: Difference between revisions

From DWIKI
mNo edit summary
 
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
===/usr/local/bin/umtsinit===
===/usr/local/bin/umtsinit===


  #!/bin/sh DEFAULTPIN="0000";
  #!/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===
  /dev/ttyUSB0 460800  
  /dev/ttyUSB0 460800  
  connect '/usr/sbin/chat -v -f /etc/ppp/chat-umts'  
  connect '/usr/sbin/chat -v -f /etc/ppp/umts-chat'  
  novj  
  novj  
  crtscts  
  crtscts  
Line 36: Line 36:
  noaccomp  
  noaccomp  
  usepeerdns
  usepeerdns


===/etc/ppp/umts-chat===
===/etc/ppp/umts-chat===
Line 48: Line 47:
  ABORT '\nNO DIALTONE\r'  
  ABORT '\nNO DIALTONE\r'  
  ABORT '\nRINGING\r\n\r\nRINGING\r'  
  ABORT '\nRINGING\r\n\r\nRINGING\r'  
  '' \rAT  
  '' \rAT  
  TIMEOUT 12  
  TIMEOUT 12  
  OK ATZ  
  OK ATZ  
  OK 'AT+cgdcont=1,"IP","internet",,0,0'  
  OK 'AT+cgdcont=1,"IP","internet",,0,0'  
  OK ATD*99***1#
  OK ATD*99***1#


===Connecting===
===Connecting===
Line 67: Line 65:


===In English===
===In English===
*http://gentoo-wiki.com/HOWTO_Huawei_E630_HSDPA_Data_card
*http://gentoo-wiki.com/HOWTO_Huawei_E630_HSDPA_Data_card (this wiki is still offline, patience)
*http://www.kuix.de/umts/vodafone/
*http://www.kuix.de/umts/vodafone/

Latest revision as of 10:38, 28 February 2009

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

Related docs

In Dutch

In English