• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: 3g/UMTS USB modem running on sheevaplug  (Read 5464 times)
paketecuento
Newbie
*

Karma: 0
Posts: 19


View Profile
« on: February 28, 2010, 04:38:20 AM »

After some weeks searching the web and dealing with wvdial bug in debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521473), finally I've got my huawei 3g modem running on my sheeva. My model is K3520/e169 but sholud apply to any other modem.

I've tested with Ubuntu jaunty 9.04 2.6.30.2 in NAND and Debian 2.6.30.2 (SD and USB boot). Fresh install.

First of all, thanks to PaulF for his time and effort to help me. Credits go to http://www.nslu2-info.de/board8-nslu2/debian-auf-der-nslu2/7893-wvdial-liefert-fehler/.

This configuration is for Spain (movistar). You should search for your specific provider (perhaps the people can post their own...)

1.- Install wvdial

Code:
apt-get install wvdial

2.- Edit /etc/resolv.conf and be sure it's empty

3.- Edit /etc/network/interfaces and put

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

4.- Edit /etc/ppp/peers/movistar

Code:
connect "/usr/sbin/chat -v -f /etc/chatscripts/movistar"
noauth

debug
/dev/ttyUSB0
460800
defaultroute
noipdefault
user movistar
password movistar
ipcp-accept-remote
remotename movistar
ipparam movistar
crtscts
lock
nomagic
nobsdcomp
novj
novjccomp

usepeerdns

lcp-echo-failure 4
lcp-echo-interval 65535

5.- Edit /etc/chatscripts/movistar

Code:
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      15
OK          ATE1
OK          'AT+CGDCONT=1,"IP","movistar.es","",0,0'
OK          ATD*99***1#
CONNECT      ""

6.- Run

Code:
pon movistar

You should check /var/log/messages and be sure you have something like this...

Code:
Feb 28 11:27:54 ubuntu pppd[2673]: pppd 2.4.5 started by root, uid 0
Feb 28 11:27:55 ubuntu chat[2677]: timeout set to 5 seconds
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nBUSY\r)
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nERROR\r)
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nNO ANSWER\r)
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nNO CARRIER\r)
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nNO DIALTONE\r)
Feb 28 11:27:55 ubuntu chat[2677]: abort on (\nRINGING\r\n\r\nRINGING\r)
Feb 28 11:27:55 ubuntu chat[2677]: send (^MAT^M)
Feb 28 11:27:55 ubuntu chat[2677]: timeout set to 15 seconds
Feb 28 11:27:55 ubuntu chat[2677]: expect (OK)
Feb 28 11:27:55 ubuntu chat[2677]: AT^M^M
Feb 28 11:27:55 ubuntu chat[2677]: OK
Feb 28 11:27:55 ubuntu chat[2677]:  -- got it
Feb 28 11:27:55 ubuntu chat[2677]: send (ATE1^M)
Feb 28 11:27:55 ubuntu chat[2677]: expect (OK)
Feb 28 11:27:55 ubuntu chat[2677]: ^M
Feb 28 11:27:55 ubuntu chat[2677]: ATE1^M^M
Feb 28 11:27:55 ubuntu chat[2677]: OK
Feb 28 11:27:55 ubuntu chat[2677]:  -- got it
Feb 28 11:27:55 ubuntu chat[2677]: send (AT+CGDCONT=1,"IP","movistar.es","",0,0$
Feb 28 11:27:56 ubuntu chat[2677]: expect (OK)
Feb 28 11:27:56 ubuntu chat[2677]: ^M
Feb 28 11:27:56 ubuntu chat[2677]: AT+CGDCONT=1,"IP","movistar.es","",0,0^M^M
Feb 28 11:27:56 ubuntu chat[2677]: OK
Feb 28 11:27:56 ubuntu chat[2677]:  -- got it
Feb 28 11:27:56 ubuntu chat[2677]: send (ATD*99***1#^M)
Feb 28 11:27:56 ubuntu chat[2677]: expect (CONNECT)
Feb 28 11:27:56 ubuntu chat[2677]: ^M
Feb 28 11:27:56 ubuntu chat[2677]: ATD*99***1#^M^M
Feb 28 11:27:56 ubuntu chat[2677]: CONNECT
Feb 28 11:27:56 ubuntu chat[2677]:  -- got it
Feb 28 11:27:56 ubuntu chat[2677]: send (^M)
Feb 28 11:27:56 ubuntu pppd[2673]: Serial connection established.
Feb 28 11:27:56 ubuntu pppd[2673]: Using interface ppp0
Feb 28 11:27:56 ubuntu pppd[2673]: Connect: ppp0 <--> /dev/ttyUSB0
Feb 28 11:27:57 ubuntu pppd[2673]: CHAP authentication succeeded
Feb 28 11:27:57 ubuntu pppd[2673]: CHAP authentication succeeded
Feb 28 11:27:57 ubuntu pppd[2673]: kernel does not support PPP filtering
Feb 28 11:27:57 ubuntu kernel: PPP Deflate Compression module registered
Feb 28 11:28:00 ubuntu pppd[2673]: Could not determine remote IP address: defau$
Feb 28 11:28:00 ubuntu pppd[2673]: local  IP address 88.29.109.211
Feb 28 11:28:00 ubuntu pppd[2673]: remote IP address 10.64.64.64
Feb 28 11:28:00 ubuntu pppd[2673]: primary   DNS address 194.179.1.100
Feb 28 11:28:00 ubuntu pppd[2673]: secondary DNS address 194.179.1.101

If not, check again the configuration to be sure there is no mistake...

6.1.- ifconfig should show

Code:
ppp0      Link encap:Point-to-Point Protocol
          inet addr:88.29.109.211  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1228 (1.2 KB)  TX bytes:622 (622.0 B)

7.- Finally add a route

Code:
route add default ppp0

You should now ping google....

Good luck
Logged

Pages: [1]
Print
Jump to: