WIFI-N-USB

From embeddedTS Manuals
Revision as of 14:48, 20 September 2011 by Mark (talk | contribs)
WIFI-N-USB
Wifi-n-usb.jpg
Released Mar. 2011
Accessories Product Page
Files
Binaries
Sources
Ralink Drivers
Operating Temperature
Cold 0C
Hot 45C

Overview

The WIFI-N-USB or USB-N13 is an 802.11 B, G, and N device that operates on the 2.4GHZ spectrum. This uses the rt3070L chipset provided by ralink. This module measures 7.0 cm L* 2.2 cm W* 1.0 ccm H (Weight 12 gm). The WIFI-N-USB has 2 built in antennas, and has a maximum range of 490 ft (150m).

Depending on the rt3070sta driver version this device may show up as ra0, or rausb0. Aside from the drivers, some older boards with smaller flashes did not include the iwconfig or wpa_supplicant tools. Check your board's FTP directory for copies of these binaries.

Usage

Infrastructure Mode

Connect to an Open Access point

# Replace linksys with your network name
iwconfig ra0 essid "linksys" 
# Set a static ip address
#ifconfig ra0 192.168.1.101

# Request an IP address from a DHCP server
# Depending on your board, this could be pump, dhclient, or udhcpc
dhclient ra0

Connect to a WEP Encrypted Access point

# Replace linksys with your network name, as well as the 'testing' key.
iwconfig ra0 essid "linksys" key "testing"

# Set a static ip address
#ifconfig ra0 192.168.1.101

# Request an IP address from a DHCP server
# Depending on your board, this could be pump, dhclient, or udhcpc
dhclient ra0

Connect to a WPA Encrypted Access point

ifconfig ra0 up

# Generate a configuration file for wpa_supplicant to use
wpa_passphrase the_essid the_password > /etc/wpa_supplicant_custom.conf

# Insert "proto=RSN" into "network" block in /etc/wpa_supplicant_custom.conf
vi /etc/wpa_supplicant_custom.conf

# Use wpa_supplicant to associate with AP and run it in the background (-B)
wpa_supplicant -ira0 -Dralink -c/etc/wpa_supplicant_custom.conf -B

# Set a static ip address
#ifconfig ra0 192.168.1.101

# Request an IP address from a DHCP server
# Depending on your board, this could be pump, dhclient, or udhcpc
dhclient ra0

Adhoc Mode

ifconfig ra0 up

# Set ra0 to adhoc mode.  Change "testing" to set the broadcasted network name.
iwconfig ra0 mode ad-hoc channel 3 enc off essid "testing"

# Set a static ip address
#ifconfig ra0 192.168.1.101

Master Mode

Unfortunately the driver does not yet support this functionality. When it does this page will be updated.

Troubleshooting