个人工具

UbuntuHelp:SierraWirelessMC8780

来自Ubuntu中文

跳转至: 导航, 搜索

Sierra Wireless MC8780 builtin 3G modem This wiki is for Gusty. It can als be used for Hardy and above. Only the driver stated below is already in newer kernels > 2.6.23. There is a bug for kernels lower than 2.6.22 where it can't regonize the modem. I got a e-mail from Kevin Lloyd the builder of the driver and there is a 1.2.6 which isn't in the 2.6.22 kernel follow this :

http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=608

Now the Mini-PCI gets recognize. Be ware you sim card has to be in the reader to activate the modem Reboot and then in terminal do

 dmesg | grep sierra

you should get something like this [ 25.928000] sierra 4-1:1.0: Sierra USB modem (3 port) converter detected [ 25.928000] usbcore: registered new interface driver sierra You can find a lot on forums message stating that you need to connect to /dev/ttyUSB0 with minicom for example or gcom (comgt). Only thing is it will not work. You need to connect to /dev/ttyUSB2. Do gcom -d /dev/ttyUSB2 info and get the information from your card like imei number. We are going to use wvdial to get or connection up and running. Make sure other network devices are off. This includes wireless. Having the same wvdial config file from this page

http://ubuntuforums.org/showthread.php?t=49056

Enter this in you /etc/wvdial.conf

[Dialer Defaults]

Phone = *99#
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT

[Dialer pin]

Init1 = AT+CPIN="1234"

[Dialer option]

Modem = /dev/ttyUSB2
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

[Dialer 2gonly]

Init4 = AT+COPS=0,0,"Vodacom-SA",0

[Dialer 3gonly]

Init4 = AT+COPS=0,0,"Vodacom-SA",2

[Dialer internet]

Init5 = AT+CGDCONT=1,"IP","internet";

[Dialer internetvpn]

Init5 = AT+CGDCONT=1,"IP","internetvpn";

[Dialer myapn]

Init5 = AT+CGDCONT=1,"IP","myapn"

[Dialer 384k]

Init6 = AT+CGEQMIN=1,4,64,384,64,384
Init7 = AT+CGEQREQ=1,4,64,384,64,384

[Dialer 144k]

Init6 = AT+CGEQMIN=1,4,64,144,64,144
Init7 = AT+CGEQREQ=1,4,64,144,64,144

[Dialer 64k]

Init6 = AT+CGEQMIN=1,4,64,64,64,64
Init7 = AT+CGEQREQ=1,4,64,64,64,64

Also put this in your /etc/ppp/peers/wvdial

plugin passwordfd.so
noauth
name wvdial
replacedefaultroute
noipdefault
nomagic
usepeerdns
ipcp-accept-local
ipcp-accept-remote
nomp
noccp
nopredictor1
novj
novjccomp
nobsdcomp

Everthing is setup now. Then do the two commands below

  • Internet is the APN i'm using , change it to your liking ask for provider
wvdial pin option internet 
(press ^C after the PIN has been passed to the modem, wait until green LED stops flashing)
wvdial option internet 

Keep the terminal open to leave the connection open. At the end of the output is should say

WvDial<*1>: Carrier detected.  Starting PPP immediately.
WvDial<Notice>: Starting pppd at Fri Dec 28 21https://help.ubuntu.com/community/T4220?action=edit:07:47 2007
WvDial<Notice>: Pid of pppd: 7192
WvDial<*1>: Using interface ppp0
WvDial<*1>: local  IP address 10.64.3.60
WvDial<*1>: remote IP address 10.64.64.64
WvDial<*1>: primary   DNS address 10.11.12.13
WvDial<*1>: secondary DNS address 10.11.12.14

Enter the command route and see if you're route table get's populated. This takes 30 second aprox. If you see a filled route table check with a browser and if you get a page your done.