The DWL-G122 Wireless USB Adapter and the FOX board LX
DWL-G122 Product info
Thanks to the availability of a new version of RaLink driver, the DLink WiFi adapter C1 version now works well under Phrozen SDK svn version 28 (Keep the SDK updated).
# make menuconfig
Enable the flag:
Driver settings ---> [*] Enable WLAN supportSelect the new item Wireless networking (WLAN) ---> and enable the flag:
[*] wireless tools
Select now the item DLink DWL-G122 (None) ---> and enable the flag:
( ) None ( ) B1 (*) C1
Save, exit and type:
# ./configure ... # make ...Now reflash your board with the new fimage generated. To do that close the network boot jumper J8, reset the board and type:
# make flash ...
After a while your board will reboot with the new image.
Connect the FOX Board to the LAN by the Ethernet port and login to the default ip address 192.168.0.90.
When you are logged in type:
# tail -f /var/log/messages
Insert the WiFi USB adapter. You will see the following messages:
crisv10_irq dbg: ctr_status_irq, controller status: host_mode started crisv10_irq dbg: ctr_status_irq, controller status: host_mode started running usb 1-2: new full speed USB device using hc-crisv10 and address 5 idVendor = 0x7d1, idProduct = 0x3c03
Exit from the tail command pressing CTRL-C and type:
# /etc/init.d/wireless start * Bringing up rausb0... + IP: 192.168.10.90 + WEP: off + Channel: 1 + ESSID: FOX + Mode: ad-hoc
The Wifi adapter will go up with the default IP address 192.168.10.90.
Now see the TCP/IP configuration typing:
# ifconfig rausb0 rausb0 Link encap:Ethernet HWaddr 00:17:9A:D0:12:EE inet addr:192.168.10.90 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:102 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:8034 (7.8 KiB)
And see the wireless configuration parms typing:
# iwconfig Warning: Driver for device rausb0 has been compiled with version 19 of Wireless Extension, while this program supports up to version 17. Some things may be broken... rausb0 RT73 WLAN ESSID:"" Mode:Ad-Hoc Frequency=1 MHz Cell: D6:48:6D:35:23:32 Bit Rate=11 Mb/s RTS thr:off Fragment thr:off Encryption key:off Link Quality=0/100 Signal level:-121 dBm Noise level:-115 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
rausb is the device name of your WiFi adapter.
IP if the default IP address @wikipedia='IP_address' assigned to the adapter.
SUBNET is the subnet mask of your network.
ESSID @wikipedia='ESSID' is the Extended Service Set ID and identify the name of the wireless network. By specifying the ESSID you make sure that you connect to your wireless network instead of your neighbors network by mistake.
WIFI_DEFAULT="0" WIFI_GATEWAY=""WIFI-DEFAULT tells is the WiFi adapter is the default gateway adapter and WIFI_GATEWAY indicates the IP address of the gateway on the network.
CHANNEL is the wireless channel @wikipedia='WiFi#Channels' that you want to use.
Set MODE="ad-hoc" to contact another host (another FOX Board for example) without using any Access Point @wikipedia='Access_point'.
Set MODE="managed" to link the FOX Board to Access Point@wikipedia='Access_point'.
This parm is the key to use in WEP @wikipedia='Wired_Equivalent_Privacy' encryption. When equal to "off" no encryptions is used.
Once you have changed the settings, you need to restart the wireless interface by executing the following commands.
# /etc/init.d/wireless stop # /etc/init.d/wireless startThe wireless will be running with the new settings.
Atmel© Certified Partner
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The mantainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems doesn't provide any direct support for the Open Source preinstalled software but provides, through these pages and forum posts, all the information required to obtain the sources, install, use and update the Open Source softwares runnable on the FOX Board, NetusG20, AriaG25 and Terra platforms. Please note that all the preinstalled softwares, used on the Acme Systems products, are Open Source and you will have to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff here are our contacts please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS so could be better to post your questions directly to the forum listed below to be sure that all the contributors of this site and the large software developers community will read and reply to your questions.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.