个人工具

“UbuntuHelp:EvdoNetworking”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/EvdoNetworking}} {{Languages|UbuntuHelp:EvdoNetworking}} === Evdo Networking in Ubuntu === I've started this page to document how I got Sprint Evd...)
 
第3行: 第3行:
 
=== Evdo Networking in Ubuntu ===
 
=== Evdo Networking in Ubuntu ===
 
I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft).  There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card.
 
I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft).  There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card.
 
 
Most of these steps probably apply to many cards.  I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor ExpressCard.  This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card".   
 
Most of these steps probably apply to many cards.  I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor ExpressCard.  This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card".   
 
 
Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint.
 
Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint.
 
 
Step 1.  Activate your card using Windows.  There's likely a way to do it in Linux, I just don't know how.  (If you do, please edit this page!)
 
Step 1.  Activate your card using Windows.  There's likely a way to do it in Linux, I just don't know how.  (If you do, please edit this page!)
 
 
Step 2.  Figure out what kind of network card you have by looking through your device list for an Evdo card.  Anything that says CDMA is a good bet.  
 
Step 2.  Figure out what kind of network card you have by looking through your device list for an Evdo card.  Anything that says CDMA is a good bet.  
 
<pre><nowiki>
 
<pre><nowiki>
 
$ less /proc/bus/usb/devices
 
$ less /proc/bus/usb/devices
 
 
8 Spd=12  MxCh= 0
 
8 Spd=12  MxCh= 0
 
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
 
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
第21行: 第16行:
 
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
 
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
Step 3.  Try to load usbserial, using the Vendor & ProdID strings from step #2.
 
Step 3.  Try to load usbserial, using the Vendor & ProdID strings from step #2.
 
<pre><nowiki>
 
<pre><nowiki>
 
$ sudo modprobe vendor=0x413c product=0x8128
 
$ sudo modprobe vendor=0x413c product=0x8128
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
Step 4.  If that worked as expected, go ahead and add usbserial to /etc/modules.
 
Step 4.  If that worked as expected, go ahead and add usbserial to /etc/modules.
 
<pre><nowiki>
 
<pre><nowiki>
第36行: 第29行:
 
usbserial vendor=0x413c product=0x8128
 
usbserial vendor=0x413c product=0x8128
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
Step 5.  Save the following file as /etc/ppp/peers/sprint:
 
Step 5.  Save the following file as /etc/ppp/peers/sprint:
 
<pre><nowiki>
 
<pre><nowiki>
第52行: 第44行:
 
passive # transmit the echo but don't fail if there is no response
 
passive # transmit the echo but don't fail if there is no response
 
noauth # don't expect the modem to authenticate itself
 
noauth # don't expect the modem to authenticate itself
 
 
# do not send lcp echo requests
 
# do not send lcp echo requests
 
lcp-echo-interval 0  
 
lcp-echo-interval 0  
 
 
# if the connection fails, try to reconnect, forever
 
# if the connection fails, try to reconnect, forever
 
persist
 
persist
 
maxfail 0
 
maxfail 0
 
 
connect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-connect"
 
connect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-connect"
 
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-disconnect"  
 
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-disconnect"  
 
</nowiki></pre>  
 
</nowiki></pre>  
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)  If you'd like to tweak it, look at the options in 'man pppd'.  One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference.
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)  If you'd like to tweak it, look at the options in 'man pppd'.  One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference.
 
 
Step 6.  Save the following file as /etc/ppp/peers/sprint-connect:
 
Step 6.  Save the following file as /etc/ppp/peers/sprint-connect:
 
<pre><nowiki>
 
<pre><nowiki>
第80行: 第68行:
 
</nowiki></pre>  
 
</nowiki></pre>  
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)
 
 
Step 7.  Save the following file as /etc/ppp/peers/sprint-disconnect:
 
Step 7.  Save the following file as /etc/ppp/peers/sprint-disconnect:
 
<pre><nowiki>
 
<pre><nowiki>
第88行: 第75行:
 
</nowiki></pre>  
 
</nowiki></pre>  
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)
 
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.)
 
 
Step 8.  Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time:
 
Step 8.  Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time:
 
<pre><nowiki>
 
<pre><nowiki>
第95行: 第81行:
 
provider sprint
 
provider sprint
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
Step 9.  Restart your networking:
 
Step 9.  Restart your networking:
 
<pre><nowiki>
 
<pre><nowiki>
 
$ sudo /etc/init.d/networking restart
 
$ sudo /etc/init.d/networking restart
 
</nowiki></pre>  
 
</nowiki></pre>  
 
 
Congratulations!  You're done!
 
Congratulations!  You're done!
 
 
Were your experiences different?  Were you able to get a different card working under Ubuntu, or a different provider?  Please edit this page and help those who will follow in your footsteps!
 
Were your experiences different?  Were you able to get a different card working under Ubuntu, or a different provider?  Please edit this page and help those who will follow in your footsteps!
 
 
==== Useful Links ====
 
==== Useful Links ====
 
http://kenkinder.com/evdo-pc5740/
 
http://kenkinder.com/evdo-pc5740/

2007年11月30日 (五) 17:09的版本

Evdo Networking in Ubuntu

I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft). There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card. Most of these steps probably apply to many cards. I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor ExpressCard. This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card". Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint. Step 1. Activate your card using Windows. There's likely a way to do it in Linux, I just don't know how. (If you do, please edit this page!) Step 2. Figure out what kind of network card you have by looking through your device list for an Evdo card. Anything that says CDMA is a good bet.

$ less /proc/bus/usb/devices
8 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=413c ProdID=8128 Rev= 0.00
S:  Manufacturer=Novatel Wireless Inc.
S:  Product=Novatel Wireless EXPD CDMA
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA

Step 3. Try to load usbserial, using the Vendor & ProdID strings from step #2.

$ sudo modprobe vendor=0x413c product=0x8128

Step 4. If that worked as expected, go ahead and add usbserial to /etc/modules.

$ sudo nano /etc/modules

and add the line:

# evdo
usbserial vendor=0x413c product=0x8128

Step 5. Save the following file as /etc/ppp/peers/sprint:

#the USB serial device of the EVDO PCMCIA card.
ttyUSB0
#your login information
user [email protected]
230400 # speed
#debug
defaultroute # use the cellular network for the default route
usepeerdns # use the DNS servers from the remote network
#-detach # keep pppd in the foreground
crtscts # hardware flow control
lock # lock the serial port
passive # transmit the echo but don't fail if there is no response
noauth # don't expect the modem to authenticate itself
# do not send lcp echo requests
lcp-echo-interval 0 
# if the connection fails, try to reconnect, forever
persist
maxfail 0
connect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-disconnect" 

(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) If you'd like to tweak it, look at the options in 'man pppd'. One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference. Step 6. Save the following file as /etc/ppp/peers/sprint-connect:

SAY 'Starting Sprint\n'
TIMEOUT 120
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'NO CARRIER'
'' 'ATZ'
'OK' 'AT&F0'
'OK' 'ATE0v1'
'' 'AT+CSQ'
'OK' 'ATDT#777'
'CONNECT' 

(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) Step 7. Save the following file as /etc/ppp/peers/sprint-disconnect:

"" "\K"
"" "+++ATH0"
SAY "Disconnected from Sprint." 

(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) Step 8. Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time:

auto ppp0
iface ppp0 inet ppp
provider sprint

Step 9. Restart your networking:

$ sudo /etc/init.d/networking restart

Congratulations! You're done! Were your experiences different? Were you able to get a different card working under Ubuntu, or a different provider? Please edit this page and help those who will follow in your footsteps!

Useful Links

http://kenkinder.com/evdo-pc5740/ http://www.evdoforums.com/viewtopic.php?p=6180#6180 http://www.cs.drexel.edu/~kfu22/evdo/