个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
第3行: 第3行:
 
== Sierra Wireless AC850 wireless card installation in Ubuntu ==
 
== Sierra Wireless AC850 wireless card installation in Ubuntu ==
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
| /!\ '''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:'''
第9行: 第9行:
 
* Thinkpad r60e
 
* Thinkpad r60e
 
=== Initial setup ===
 
=== Initial setup ===
Before you start, make sure that the AirCard is not inserted into the PCMCIA slot.  
+
Before you start, make sure that the [[UbuntuHelp:AirCard|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 AirCard as a serial-only device:
+
The following will configure the [[UbuntuHelp:AirCard|AirCard]] as a serial-only device:
# Add the following to the '''/etc/pcmcia/config''' file under the ''Modems and other serial devices'' section:
+
<ol><li>Add the following to the '''/etc/pcmcia/config''' file under the ''Modems and other serial devices'' section:<pre><nowiki>
<pre><nowiki>
+
 
card "Sierra Wireless AC850 3G Network Adapter R1"
 
card "Sierra Wireless AC850 3G Network Adapter R1"
 
manfid 0x0192, 0x0710
 
manfid 0x0192, 0x0710
第29行: 第27行:
 
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>
 
</nowiki></pre>
# Insert this line, replace as appropriate the card ID:  
+
</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"
<pre><nowiki>BUS=="pcmcia", SYSFS{card_id}=="0x0710", NAME="umts", SYMLINK="tts/umts", RUN+="/usr/local/bin/umtsinit"
+
</nowiki></pre></li></ol>
</nowiki></pre>
+
 
 
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>
 
<pre><nowiki>
第62行: 第59行:
 
* Loading additional hardware drivers...  [ ok ]  
 
* 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  
+
If the device is mapped correctly, a /dev/umts device will be setup by udev. This can be verified with <pre><nowiki>
<pre><nowiki>
+
 
ls /dev/um*
 
ls /dev/um*
 
</nowiki></pre>
 
</nowiki></pre>
第117行: 第113行:
 
* 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

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