
DNA-CAR-550 Carrier Board
Chapter 2
11
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.
Retry min limit:7 RTS thr:off
Fragment thr=2352 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0
Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0
Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0
Missed beacon:0
2.2.2
Connect to an
Open Access
Point
Specify that you want to connect as a client to a network with an access point:
iwconfig wlan0 mode managed
STEP 1:
Set the ESSID of the access point:
iwconfig wlan0 essid <name of your access point>
STEP 2:
Bring up the wifi interface:
ifconfig wlan0 up
You can now scan the access points accessible by your wifi interface:
iwlist wlan0 scan
If there is a DHCP server on your network, get an IP address for your wifi
interface:
udhcpc –i wlan0 –s /etd/udhcpc/default.script
Otherwise, assign a static IP address to your wifi interface:
ifconfig wlan0 192.168.100.3 netmask 255.255.255.0
route add default gateway 192.168.100.1
2.2.3
Connect to an
Access Point
with WEP
Security
The procedure is almost identical to connecting to an open access point. In
addition, you need to specify your WEP key, as follows:
iwconfig wlan0 key <WEP key in hexadecimal>
128 bit WEP uses 26 hex characters, 64 bit WEP uses 10
2.2.4
Connect to an
Access Point
with WPA/
WPA2
Security
Generate the pre-shared key using the access point’s password:
wpa_passphrase <name of your access point>
<access point password>
Edit the file
/etc/wpa_supplicant.conf
and update the
ssid
and
psk
entry to
match the key generated by
wpa_passphrase
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0