Raspberry Pi Adventures

Join me on my fun ride

WiFi Tools for Raspberry Pi

3 Comments

List of Commands for Wifi Monitoring/Troubleshooting

iwconfig manipulate the basic wireless parameters
iwlist allow to initiate scanning and list frequencies, bit-rates, encryption keys...
iwspy allow to get per node link quality
iwpriv allow to manipulate the Wireless Extensions specific to a driver (private)
ifrename allow to name interfaces based on various static criteria

Read More : Wireless Tools for Linux

Command 1 : iwlist

$sudo iwlist wlan0 scan

Returns
wlan0 Scan completed :
Cell 01 - Address: Your Mac ID
ESSID:"Your SSID"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
24 Mb/s; 48 Mb/s
Extra:rsn_ie=301401....ac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Signal level=100/100

Command 2 : iwconfig

iwconfig command is similar to ifconfig command, but is dedicated to the Linux wireless interfaces. It is used to manipulate the basic wireless parameters such as ssid, mode, channel, bit rates, encryption key, power and much more.

$iwconfig

Returns
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Your SSID" Nickname:"rtl_wifi"
Mode:Managed Frequency:2.462 GHz Access Point: Your Mac ID
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=94/100 Signal level=59/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

The name of the MAC protocol used
ESSID (Network Name)
The NWID
The frequency (or channel)
The sensitivity
The mode of operation
Access Point address
The bit-rate
The RTS threshold
The fragmentation threshold
The encryption key
The power management settings

If you wanted to know just about your Wifi Card just type
$iwconfig wlan0

 See link quality continuously on screen

$cat /proc/net/wireless
$watch -n 1 cat /proc/net/wireless

Returns
Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
wlan0: 0000 99. 61. 0. 0 0 0 0 0 0

Command 4: wavemon

wavemon is a monitoring application for wireless network devices

$sudo apt-get install wavemon
$sudo wavemon

References
Wi-Fi on the Command Line | Linux Journal
8 Linux Commands: To Find Out Wireless Network Speed, Signal Strength And Other Information

Advertisements

Author: Sanket Sonavane

Sanket Sonavane Software Developer, IoT Enthusiast, Photographer, Bike Rider, Chef, AndroidUser, MacOSXNewbie & 3x3x3 Cuber ;) Loves computers, programming, web developement, micro-controllers, gadgets, automation and many more such tech innovations that defines the way we live in the modern age and likes to explore what more can be done to help the human race :)

3 thoughts on “WiFi Tools for Raspberry Pi

  1. How can I write the information like received signal strength at specific times into a file? I am working on indoor localization, and I need to keep value of signal strength readings at different position in the room for N specified number of times.

  2. what package do I need to apt-get ? My Raspi says “command not found” if I want to iwlist

  3. Hi there, thanks for your post, it was really interesting. I notice if you use “iwlist” or “iwconfig”, the Wi-Fi Signal level is displayed as “59/100”, I wonder if it is possible to change it to display as “dBm”? Any suggestions? Many thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s