OpenWrt Forum Archive

Topic: Site survey

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Has anyone made some useful improvements in webif, so WR/OpenWRT can have site survey tool like DDWRT ?

If there has been some effort let me know. I'm  planning to do it myself if it does not exist.

SILVER

This effort is being undertaken. I've already added a survey page, but MUCH work needs to be done still. I'll soon parse the output and show nice progressbars to indicate the signal integrity.

Currently, when the radio is not in client mode, the user can press a button to have it automatically switched to client mode, perform a survey, then switched back to its original mode.

Soon, an early alpha package for OpenWrt will be available (mostly for testing and input and contributions from others).

I encourage you to work on the code that is being developer rather than start fresh on a page to avoid redundency in work. Improving the output on the survey page is on my agenda, but if you start on it, please let me know so we don't overlap.

For now (this may change soon), I am committing new webif changes to svn repository http://x-wrt.googlecode.com/svn/trunk/ (/packages/webif) . Once things have been polished enough, we'll give them to nbd to review for submission into OpenWrt.

Freifunk 1.0 webif has some site-survey-like page, but just in client mode for wireless, and it's bundled in status page as - WLAN Scan subpage.

SSID, channel, WEP or not and power in dB. It's graphically rich, but it's far from what DDWRT has in it's packages.

Can DDWRT webif packages regarding site survey (with some modifications) be included into OpenWRT webif ?

Have you seen Freifunk wlan scan feature ?

Another thing I'm looking forward which may be out-of-scope ot this thread is this :

D-Link DWL-900 in client mode can connect to specific AP MAC address not just given SSID. This feature is very interestring if there are more AP's in the neighbourhood with same SSID. If one wants to connect to specific AP, not just the one with highest power or other constraints. Is this doable in OpenWRT web-if or some other way ?

Any ideas ?

SILVER

(Last edited by silver71 on 14 Sep 2006, 11:27)

No, DD-WRT's webif can not be used with OpenWrt (within reason). Totally different. And I haven't seen freifunk's.. maybe u can show me a screenshot if you have one and I'll try to add any useful things from it.

How's this for the survey page? It's 100% functional now.

http://www.bitsum.com/images/survey0.png

Please, everyone interested in the webif join the efforts we're already making. We need to centralize all our work. Join #x-wrt on freenode.

(Last edited by db90h on 14 Sep 2006, 15:54)

For the Wlan Scan - below is the relevant code from the /www/cgi-bin-status.html page of the freifunk firmware:

Freifunk's cgi pages are written as straight sh shell scripts.  As you can see - it uses the wl tool.

I would really like to see a wireless survey page that uses the techniques used in the WiViz wireless scanning tool - but instead of icons bouncing around the screen, list survey results as moving bar graphs.  WiViz is cool because it can see APs *and* their clients and report RSSI for all of them.

cat<<EOF
</TD>
</TR>
<TR>
<TD COLSPAN="7"> </TD>
</TR>
<TR>
<TH>SSID</TH>
<TH>Channel</TH>
<TH>Ad-Hoc</TH>
<TH>Open</TH>
<TH>Signal</TH>
<TH>Max.</TH>
<TH>BSSID</TH>
</TR>
<TR>
<TD COLSPAN="7">
EOF

/usr/sbin/wl -i $WLDEV scan
sleep 2
echo '</TR></TR>'
/usr/sbin/wl -i $WLDEV scanresults|sed -ne'
/^$/d
/^WSEC/d
/^SSID:/{
s/["\\]//g
s/: \(.*\)/="\1"/
h
d
}
/^Supported Rates:/{
s/.* \([0-9]\+\).*/RATE="\1"/
H
g
s/\n/ /g
p
}
s/ dBm//g
s/: \+\([^      ]\+\)/="\1"/g
s/ \+"/"/g
s/Mode="Ad Hoc"/ADHOC="yes"/
s/Mode="[^"]\+"/ADHOC="no"/
s/Capability=".* WEP .*/OPEN="no"/
s/Capability.*/OPEN="yes"/g
H
'|while read line; do
eval $line
gif=$(( $RSSI - $noise ))
gif=$(( $gif / 5 ))
test $gif -gt 5 && gif=5
test $gif -lt 0 && gif=0
cat<<EOF
<TR><TD>$SSID</TD><TD>$Channel</TD>
<TD><IMG SRC="images/$ADHOC.gif" ALT="ad hoc" TITLE="Ad-Hoc mode" ALIGN="ABSMIDDLE"></TD>
<TD><IMG SRC="images/$OPEN.gif" ALT="$OPEN" TITLE="No WEP/WPA" ALIGN="ABSMIDDLE"></TD>
<TD><IMG SRC="images/power$gif.gif" ALT="P=$gif" TITLE="RSSI: $RSSI dBm, Noise: $noise dBm" ALIGN="ABSMIDDLE"></TD>
<TD>$RATE</TD><TD>$BSSID</TD></tr>
EOF
done
echo '<TR><TD colspan="7"> '

cat<<EOF
</TD>
</TR>
</TABLE></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>
</FORM>
EOF

Maybe this is obvious to anybody who knows details about atheros (and other) wireless mini-PCI and other devices.  Can a more basic site survey, one that monitors each channel or frequency for a suitable time interval and reports the range of signal levels seen, be done?  Just because a channel has no SSID that is being broadcast, and no adhoc packets that can be received, doesn't mean its quiet spectrum.  My relatively expensive Trango radios do have such a site survey, but I certainly would like to use the openwrt system I have installed to check its own environment without having to go mount something else.  Of course, if there's some relatively inexpensive piece of equipment, especially one that rotates a directional antenna and keeps track of signals in all directions over several hours, maybe a dedicated survey instrument would be worthwhile.  Anybody know what's available, in software for atheros equipment, or any specialized 802.11 bands survey instruments?

The discussion might have continued from here.