个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的9个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:AirCard8X0}}
 
{{Languages|UbuntuHelp:AirCard8X0}}
 
== Sierra Wireless AC850 wireless card installation in Ubuntu ==
 
== Sierra Wireless AC850 wireless card installation in Ubuntu ==
 
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
|<tablestyle="background-color: #fdd; color: #000;"> /!\ '''This document is a work in progress''' -- it is incomplete and some parts '''do not work'''. This being updated from [http://ubuntuforums.org/showthread.php?t=154092 info at the Ubuntu Forums].
+
| /!\ '''This document is a work in progress''' -- it is incomplete and some parts '''do not work'''. This being updated from [http://ubuntuforums.org/showthread.php?t=154092 info at the Ubuntu Forums].
 
|}
 
|}
 
 
'''Hardware used:'''
 
'''Hardware used:'''
 
* Sierra Wireless AC850 PC-Card
 
* Sierra Wireless AC850 PC-Card
 
* Thinkpad r60e
 
* Thinkpad r60e
 
 
=== Initial setup ===
 
=== Initial setup ===
 
+
Before you start, make sure that the [[UbuntuHelp:AirCard|AirCard]] is not inserted into the PCMCIA slot.  
Before you start, make sure that the AirCard is not inserted into the PCMCIA slot.  
+
 
+
 
==== Getting the firmware files ====
 
==== Getting the firmware files ====
* Download the [http://www.sierrawireless.com/software/8x0/AirCard_8xx_Linux.tar.gz Aircard_Linux.tar] file, extract it:
+
<ol><li>Download the [http://www.sierrawireless.com/software/8x0/AirCard_8xx_Linux.tar.gz Aircard_Linux.tar] file, extract it:<pre><nowiki>
<pre><nowiki>user@laptop:~$ tar -xzvf AirCard_8xx_Linux.tar.gz
+
user@laptop:~$ tar -xzvf AirCard_8xx_Linux.tar.gz
 
[messages indicating extraction of files...]
 
[messages indicating extraction of files...]
 
</nowiki></pre>
 
</nowiki></pre>
* Copy the firmware file and overwrite the older version 7xx into /lib/firmware:  
+
</li><li>Copy the firmware file and overwrite the older version 7xx into /lib/firmware: <pre><nowiki>
<pre><nowiki>sudo mv  SW_8xx_SER.dat /lib/firmware/SW_7xx_SER.cis  
+
sudo mv  SW_8xx_SER.dat /lib/firmware/SW_7xx_SER.cis  
</nowiki></pre>
+
</nowiki></pre></li></ol>
  
 
==== Configuring Ubuntu to recognize the AC850 ====
 
==== Configuring Ubuntu to recognize the AC850 ====
 
+
The following will configure the [[UbuntuHelp:AirCard|AirCard]] as a serial-only device:
The following will configure the AirCard as a serial-only device:
+
<ol><li>Add the following to the '''/etc/pcmcia/config''' file under the ''Modems and other serial devices'' section:<pre><nowiki>
 
+
card "Sierra Wireless AC850 3G Network Adapter R1"
* Add the following to the '''/etc/pcmcia/config''' file under the ''Modems and other serial devices'' section:
+
<pre><nowiki>card "Sierra Wireless AC850 3G Network Adapter R1"
+
 
manfid 0x0192, 0x0710
 
manfid 0x0192, 0x0710
 
cis "cis/SW_8xx_SER.dat"
 
cis "cis/SW_8xx_SER.dat"
 
bind "serial_cs"
 
bind "serial_cs"
 
</nowiki></pre>
 
</nowiki></pre>
* Copy the file SW_8xx_SER.dat in the archive in /etc/pcmcia/cis/
+
</li><li>Copy the file SW_8xx_SER.dat in the archive in /etc/pcmcia/cis/
* Restart the computer
+
</li><li>Restart the computer
* Insert the AirCard
+
</li><li>Insert the [[UbuntuHelp:AirCard|AirCard]]</li></ol>
 
+
When the card is inserted two high beeps should be heard, indicating that the AirCard has been recognized and the serial driver has been successfully loaded. The AirCard can be accessed as /dev/modem when inserted. Running minicom should allow access to the AT command interface.
+
  
 +
When the card is inserted two high beeps should be heard, indicating that the [[UbuntuHelp:AirCard|AirCard]] has been recognized and the serial driver has been successfully loaded. The [[UbuntuHelp:AirCard|AirCard]] can be accessed as /dev/modem when inserted. Running minicom should allow access to the AT command interface.
 
==== Serial port mapping ====
 
==== Serial port mapping ====
 
 
We now must create a ''udev rules'' file so the card is mapped to a UMTS device.
 
We now must create a ''udev rules'' file so the card is mapped to a UMTS device.
 
 
First, find out the card ID:
 
First, find out the card ID:
* From a terminal window:  
+
<ol><li>From a terminal window: <pre><nowiki>
<pre><nowiki>user@laptop:~$ pccardctl ident
+
user@laptop:~$ pccardctl ident
</nowiki></pre> should give something like  
+
</nowiki></pre> should give something like <pre><nowiki>
<pre><nowiki>Socket 0:
+
Socket 0:
product info: "Sierra Wireless", "AC850", "3G Network Adapter", "R1"
+
  product info: "Sierra Wireless", "AC850", "3G Network Adapter", "R1"
manfid: 0x0192, '''0x0710'''
+
  manfid: 0x0192, '''0x0710'''
function: 6 (network)</nowiki></pre>
+
  function: 6 (network)</nowiki></pre>
* Take note of the second string at the ''manfid:'' line, in this case it's '''0x710'''
+
</li><li>Take note of the second string at the ''manfid:'' line, in this case it's '''0x710'''</li></ol>
  
 
Now create de udev rules file:
 
Now create de udev rules file:
* From a terminal window:  
+
<ol><li>From a terminal window: <pre><nowiki>
<pre><nowiki>gksudo gedit /etc/udev/rules.d/99-aircard.rules
+
gksudo gedit /etc/udev/rules.d/99-aircard.rules
</nowiki></pre>
+
* Insert this line, replace as appropriate the card ID:
+
<pre><nowiki>BUS=="pcmcia", SYSFS{card_id}=="0x0710", NAME="umts", SYMLINK="tts/umts", RUN+="/usr/local/bin/umtsinit"
+
 
</nowiki></pre>
 
</nowiki></pre>
 +
</li><li>Insert this line, replace as appropriate the card ID: <pre><nowiki>BUS=="pcmcia", SYSFS{card_id}=="0x0710", NAME="umts", SYMLINK="tts/umts", RUN+="/usr/local/bin/umtsinit"
 +
</nowiki></pre></li></ol>
  
 
For ''udev'' to recognize this new card's rules, it must be restarted. From a terminal window, type this command:
 
For ''udev'' to recognize this new card's rules, it must be restarted. From a terminal window, type this command:
<pre><nowiki>sudo /etc/init.d/udev restart
+
<pre><nowiki>
 +
sudo /etc/init.d/udev restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
You will see something like:
 
You will see something like:
<pre><nowiki>* Loading additional hardware drivers...  [ ok ]  
+
<pre><nowiki>
 +
* Loading additional hardware drivers...  [ ok ]  
 
</nowiki></pre>
 
</nowiki></pre>
 
+
If the device is mapped correctly, a /dev/umts device will be setup by udev. This can be verified with <pre><nowiki>
If the device is mapped correctly, a /dev/umts device will be setup by udev. This can be verified with  
+
ls /dev/um*
<pre><nowiki>ls /dev/um*
+
 
</nowiki></pre>
 
</nowiki></pre>
 
 
If it's not the case, check /var/log/syslog to see whether an error happened. This can be done with the command:
 
If it's not the case, check /var/log/syslog to see whether an error happened. This can be done with the command:
<pre><nowiki>tail /var/log/syslog
+
<pre><nowiki>
 +
tail /var/log/syslog
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Connecting to the Internet ===
 
=== Connecting to the Internet ===
 
 
Two scripts will be needed for this.
 
Two scripts will be needed for this.
 
 
Create the first one with this command:
 
Create the first one with this command:
<pre><nowiki>gksudo gedit /etc/chatscripts/ac850chat
+
<pre><nowiki>
 +
gksudo gedit /etc/chatscripts/ac850chat
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Copy this in the open editor window and save the result:
 
Copy this in the open editor window and save the result:
<pre><nowiki>'' AT
+
<pre><nowiki>
 +
'' AT
 
TIMEOUT 5
 
TIMEOUT 5
 
OK ATD*99#
 
OK ATD*99#
 
CONNECT ''</nowiki></pre>
 
CONNECT ''</nowiki></pre>
 
 
and also
 
and also
<pre><nowiki>gksudo gedit /etc/ppp/peers/ac850
+
<pre><nowiki>
 +
gksudo gedit /etc/ppp/peers/ac850
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Copy the following in the open editor:
 
Copy the following in the open editor:
<pre><nowiki>-detach
+
<pre><nowiki>
 +
-detach
 
/dev/umts
 
/dev/umts
 
57600
 
57600
第107行: 第94行:
 
lock
 
lock
 
connect '/etc/chatscripts/ac850chat'</nowiki></pre>
 
connect '/etc/chatscripts/ac850chat'</nowiki></pre>
 
 
The connection is established with the following instruction:
 
The connection is established with the following instruction:
<pre><nowiki>pon ac850
+
<pre><nowiki>
 +
pon ac850
 
</nowiki></pre>
 
</nowiki></pre>
 
 
The connection is terminated with:
 
The connection is terminated with:
<pre><nowiki>poff
+
<pre><nowiki>
 +
poff
 
</nowiki></pre>
 
</nowiki></pre>
 
 
If the connection is established but no data is received, it can be because another connection is active. Open the network manager and deactivete all other active connections.
 
If the connection is established but no data is received, it can be because another connection is active. Open the network manager and deactivete all other active connections.
 
 
''pon'' without argument will use the “more provider” configuration file. One can rename thus “more provider” in “provider.orig” and “ac850” in “more provider” with the instructions:
 
''pon'' without argument will use the “more provider” configuration file. One can rename thus “more provider” in “provider.orig” and “ac850” in “more provider” with the instructions:
 
+
<pre><nowiki>
<pre><nowiki>sudo mv /etc/ppp/peers/provider /etc/ppp/peers/provider.orig
+
sudo mv /etc/ppp/peers/provider /etc/ppp/peers/provider.orig
 
sudo mv /etc/ppp/peers/ac850 /etc/ppp/peers/provider
 
sudo mv /etc/ppp/peers/ac850 /etc/ppp/peers/provider
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== Connecting with GPRSSEC ====
 
==== Connecting with GPRSSEC ====
 
* Install GPRSEC from http://darrenalbers.com/gprsec/
 
* Install GPRSEC from http://darrenalbers.com/gprsec/
 
* Run gprsec, select preferences and select the serial port you determined from dmesg.
 
* Run gprsec, select preferences and select the serial port you determined from dmesg.
 
* Save the settings and click connect
 
* Save the settings and click connect
 
 
=== References ===
 
=== References ===
 
* [http://en.wikipedia.org/wiki/Universal_Mobile_Telecommunications_System Universal Mobile Telecommunications System] (UMTS)
 
* [http://en.wikipedia.org/wiki/Universal_Mobile_Telecommunications_System Universal Mobile Telecommunications System] (UMTS)
 
* [http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=118 Sierra Wireless] documentation
 
* [http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=118 Sierra Wireless] documentation
* [http://mycusthelp.com/sierrawireless/supportkbitem.asp?sSessionID=&Inc=4703&sFilA=FAQ%20[[category:Category&sFilB=Products&sFilC=&FA=19&FB=26&FC=-1]] Original article in German]
+
* [http://mycusthelp.com/sierrawireless/supportkbitem.asp?sSessionID=&Inc=4703&sFilA=FAQ%20[[category:Category&sFilB=Products&sFilC=&FA=19&FB=26&FC=-1 Original] article in German]]
 
* [http://wiki.chaostreff.ch/index.php/Sierra_Wireless_AC850 Another article] in German about the same hardware
 
* [http://wiki.chaostreff.ch/index.php/Sierra_Wireless_AC850 Another article] in German about the same hardware
 
* http://www.murga-linux.com/puppy/viewtopic.php?t=7648
 
* http://www.murga-linux.com/puppy/viewtopic.php?t=7648
 
* http://www.pcurtis.com/ubuntu-mobile.htm
 
* http://www.pcurtis.com/ubuntu-mobile.htm
 
* http://ubuntuforums.org/showthread.php?t=338004
 
* http://ubuntuforums.org/showthread.php?t=338004
 
 
=== Keywords ===
 
=== Keywords ===
 
 
AC 850, networking
 
AC 850, networking
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 17:18的最新版本

Sierra Wireless AC850 wireless card installation in Ubuntu

/!\ This document is a work in progress -- it is incomplete and some parts do not work. This being updated from info at the Ubuntu Forums.

Hardware used:

  • Sierra Wireless AC850 PC-Card
  • Thinkpad r60e

Initial setup

Before you start, make sure that the AirCard is not inserted into the PCMCIA slot.

Getting the firmware files

  1. Download the Aircard_Linux.tar file, extract it:
    user@laptop:~$ tar -xzvf AirCard_8xx_Linux.tar.gz
    [messages indicating extraction of files...]
    
  2. Copy the firmware file and overwrite the older version 7xx into /lib/firmware:
    sudo mv  SW_8xx_SER.dat /lib/firmware/SW_7xx_SER.cis 
    

Configuring Ubuntu to recognize the AC850

The following will configure the AirCard as a serial-only device:

  1. Add the following to the /etc/pcmcia/config file under the Modems and other serial devices section:
    card "Sierra Wireless AC850 3G Network Adapter R1"
    manfid 0x0192, 0x0710
    cis "cis/SW_8xx_SER.dat"
    bind "serial_cs"
    
  2. Copy the file SW_8xx_SER.dat in the archive in /etc/pcmcia/cis/
  3. Restart the computer
  4. Insert the AirCard

When the card is inserted two high beeps should be heard, indicating that the AirCard has been recognized and the serial driver has been successfully loaded. The AirCard can be accessed as /dev/modem when inserted. Running minicom should allow access to the AT command interface.

Serial port mapping

We now must create a udev rules file so the card is mapped to a UMTS device. First, find out the card ID:

  1. From a terminal window:
    user@laptop:~$ pccardctl ident
    
    should give something like

    Socket 0:

     product info: "Sierra Wireless", "AC850", "3G Network Adapter", "R1"
     manfid: 0x0192, '''0x0710'''
    
    function: 6 (network)
  2. Take note of the second string at the manfid: line, in this case it's 0x710

Now create de udev rules file:

  1. From a terminal window:
    gksudo gedit /etc/udev/rules.d/99-aircard.rules
    
  2. Insert this line, replace as appropriate the card ID:
    BUS=="pcmcia", SYSFS{card_id}=="0x0710", NAME="umts", SYMLINK="tts/umts", RUN+="/usr/local/bin/umtsinit"
    

For udev to recognize this new card's rules, it must be restarted. From a terminal window, type this command:

sudo /etc/init.d/udev restart

You will see something like:

* Loading additional hardware drivers...   [ ok ] 
If the device is mapped correctly, a /dev/umts device will be setup by udev. This can be verified with
ls /dev/um*

If it's not the case, check /var/log/syslog to see whether an error happened. This can be done with the command:

tail /var/log/syslog

Connecting to the Internet

Two scripts will be needed for this. Create the first one with this command:

gksudo gedit /etc/chatscripts/ac850chat

Copy this in the open editor window and save the result:

'' AT
TIMEOUT 5
OK ATD*99#
CONNECT ''

and also

gksudo gedit /etc/ppp/peers/ac850

Copy the following in the open editor:

-detach
/dev/umts
57600
noauth
debug
defaultroute
usepeerdns
crtscts
lock
connect '/etc/chatscripts/ac850chat'

The connection is established with the following instruction:

pon ac850

The connection is terminated with:

poff

If the connection is established but no data is received, it can be because another connection is active. Open the network manager and deactivete all other active connections. pon without argument will use the “more provider” configuration file. One can rename thus “more provider” in “provider.orig” and “ac850” in “more provider” with the instructions:

sudo mv /etc/ppp/peers/provider /etc/ppp/peers/provider.orig
sudo mv /etc/ppp/peers/ac850 /etc/ppp/peers/provider

Connecting with GPRSSEC

  • Install GPRSEC from http://darrenalbers.com/gprsec/
  • Run gprsec, select preferences and select the serial port you determined from dmesg.
  • Save the settings and click connect

References

Keywords

AC 850, networking