DNA-CAR-550 Carrier Board
Chapter 2
12
Connecting to the Internet with CAR-550
Edit: TBD
Checked: TBD
Date:210
Vers:
Draft
Scheidt & Bachmann
550_Chap2.fm
© Copyright February 15, 2010 Scheidt &
Bachmann USA
www.ueidaq.com
Vers:
1.0
printed February 2010
Fax: 781-821-2891
Electronic Industries, Inc.
-821-2890
Tel: 508-921-4600
www.ueidaq.com
Vers:
1.2
Date: February 2010
550_Chap2.fm
© Copyright 2010 all rights reserved
United Electronic Industries, Inc.
ap_scan=1
network={
ssid=
<put your access point ESSID here>
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk=
<put your pre-shared key generated with
wpa_passphrase here>
priority=2
}
Specify that you want to connect as a client to a network with an access point in
managed mode:
iwconfig wlan0 essid <name of your access point>
mode managed
Run
wpa_supplicant
in daemon mode to authenticate with the access point:
wpa_supplicant –iwlan0 –c/etc/wpa_supplicant.conf –
Dwext –B
Run
iwconfig
to verify that the authentication worked:
wlan0 IEEE 802.11bg ESSID:"fred"
Mode:Managed Frequency:2.447 GHz Access Point:
00:13:10:AA:FA:10
Bit Rate=1 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off
Fragment thr=2352 B
Encryption key:B507-40C4-9A48-806D-D664-
910F-B354-6CF4-DEBF-EA54-CE6F-B291-BD0E-593F-BFA9-
405D [2] Security mode:open
Power Management:off
Link Quality=80/100 Signal level:-31 dBm
Rx invalid nwid:0 Rx invalid crypt:0
Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0
Missed beacon:0
If there is a DHCP server on your network, get an IP address for your wifi
interface:
udhcpc –i wlan0 –s /etc/udhcpc/default.script
Otherwise, assign a static IP address to your wifi interface, as follows:
ifconfig wlan0 192.168.100.3 netmask 255.255.255.0
route add default gateway 192.168.100.1