Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
▪ Start the adapter<br />
sudo ifup wlan0<br />
▪ Double-check whether you are connected - below the WLAN interface has been<br />
given an IP address - looks good!<br />
root@raspberrypi:~# ifconfig<br />
eth0 Link encap:Ethernet HWaddr b8:27:eb:76:7e:2e<br />
inet addr:192.168.202.75 Bcast:192.168.202.255 Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST MTU:1488 Metric:1<br />
RX packets:1060 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:95749 (93.5 KiB) TX bytes:48493 (47.3 KiB)<br />
lo Link encap:Local Loopback<br />
inet addr:127.0.0.1 Mask:255.0.0.0<br />
UP LOOPBACK RUNNING MTU:16436 Metric:1<br />
RX packets:8 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)<br />
wlan0 Link encap:Ethernet HWaddr b0:48:7a:91:5c:f4<br />
inet addr:192.168.222.161 Bcast:192.168.222.255 Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br />
RX packets:31 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:2260 (2.2 KiB) TX bytes:1542 (1.5 KiB)<br />
If you are now connected, well done! If not, check your editing and also have a look at<br />
the output of dmesg to see if you have any error messages. You can also view the system<br />
log for messages - for example: sudo cat /var/log/messages | more<br />
You are connected, you can ping and be pinged, hovewer to add network connectivity<br />
you may want to specify define default gateway:<br />
sudo route add default gw 192.168.1.254 wlan0<br />
Notes<br />
USB interrupt/dma system debug messages<br />
Firing up the TP-Link USB WLAN interface generates a lot of debug messages in the<br />
system log like this:<br />
DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK