forked from lalithsuresh/odin
-
Notifications
You must be signed in to change notification settings - Fork 17
Application DemoStatistics
Rubén edited this page May 24, 2018
·
11 revisions
The code is here.
It presents a menu to the user, who can get different statistics from the APs and the connected STAs.
See the application running in the following video:
It distinguishes between
- Internal statistics
- External statistics
- Active scanning (Matrix of "distance in dBs")
- Passive scanning (Matrix of RSSI heard from STAs)
This is an example of the internal statistics obtained in the internal wireless interface of an AP (Agent):
[DemoStatistics] =======Internal statistics=======
[DemoStatistics] Agent [0]: /192.168.1.13
[DemoStatistics] Txpower: 10 dBm
[DemoStatistics] Channel: 1
[DemoStatistics] Last heard: 389 ms ago
[DemoStatistics]
[DemoStatistics] Agent [1]: /192.168.1.15
[DemoStatistics] Txpower: 10 dBm
[DemoStatistics] Channel: 6
[DemoStatistics] Last heard: 1893 ms ago
[DemoStatistics]
[DemoStatistics] Agent [2]: /192.168.1.14
[DemoStatistics] Txpower: 10 dBm
[DemoStatistics] Channel: 6
[DemoStatistics] Last heard: 142 ms ago
This is an example of the statistics of a single STA:
[DemoStatistics] =================================
[DemoStatistics] <<<<<<<<< Rx statistics >>>>>>>>>
Uplink station MAC: 30:07:4D:9E:8E:C8
IP: 192.168.2.215
num packets: 4175
avg rate: 51261.7964072 kbps
avg signal: -30.5969219499 dBm
avg length: 295.96239521 bytes
air time: 213.734666667 ms
init time: 1519733522.191784021 sec
end time: 1519733574.866460499 sec
[DemoStatistics] <<<<<<<<< Tx statistics >>>>>>>>>
Downlink station MAC: 30:07:4D:9E:8E:C8
IP: 192.168.2.215
num packets: 3849
avg rate: 54000 kbps
avg signal: 10 dBm
avg length: 702.74564822 bytes
air time: 400.721185185 ms
init time: 1519733525.415637841 sec
end time: 1519733574.344232353 sec
Passive scanning can also be used to gather information about the wireless environment:
[DemoStatistics]
Select agent [0-2]: 0
Select channel to scan [1-11]: 2
Select time to scan (msec): 2000
[DemoStatistics] <<<<< Scanning in channel 2 >>>>>>
Station MAC: 76:A0:26:C1:E1:AA
num packets: 1
avg rate: 1000 kbps
avg signal: -70 dBm
avg length: 126 bytes
air time: 1.008 ms
init time: 1519733747.339689262 sec
end time: 1519733747.339826638 sec
AP of client: unknown
Channel of AP: unknown
Code: non-Wi-5 STA
Station MAC: DC:EF:09:E6:9C:DB
num packets: 16
avg rate: 1000 kbps
avg signal: -54.1879014765 dBm
avg length: 162 bytes
air time: 20.736 ms
init time: 1519733746.736829563 sec
end time: 1519733748.477789793 sec
AP of client: unknown
Channel of AP: unknown
Code: non-Wi-5 STA
This is an example of the active scanning statistics with 4 APs:
[DemoStatistics] ========Active scanning (Matrix of "distance in dBs")========
[DemoStatistics] Agent to send measurement beacon: /192.168.1.7
AP MAC: 14:CC:20:AC:72:91
avg signal: -31.3936258323 dBm
AP MAC: 14:CC:20:AC:72:91
avg signal: -20.6498744445 dBm
AP MAC: 14:CC:20:AC:72:91
avg signal: -30.1345598285 dBm
[DemoStatistics] Agent to send measurement beacon: /192.168.1.1
AP MAC: 18:D6:C7:86:96:D2
avg signal: -30.1322826573 dBm
AP MAC: 18:D6:C7:86:96:D2
avg signal: -30.1322826573 dBm
AP MAC: 18:D6:C7:86:96:D2
avg signal: -30.139743705 dBm
[DemoStatistics] Agent to send measurement beacon: /192.168.1.3
AP MAC: 18:D6:C7:86:97:BC
avg signal: -21.1163317623 dBm
AP MAC: 18:D6:C7:86:97:BC
avg signal: -30.2889719889 dBm
AP MAC: 18:D6:C7:86:97:BC
avg signal: -39.5785848496 dBm
[DemoStatistics] Agent to send measurement beacon: /192.168.1.2
AP MAC: 18:D6:C7:86:98:25
avg signal: -30.065637695 dBm
AP MAC: 18:D6:C7:86:98:25
avg signal: -30 dBm
AP MAC: 18:D6:C7:86:98:25
avg signal: -30.3385826726 dBm
[DemoStatistics] =============================================================
192.168.1.7 ---------- -31.39 dBm -20.64 dBm -30.13 dBm
192.168.1.1 -30.13 dBm ---------- -30.13 dBm -30.13 dBm
192.168.1.3 -21.11 dBm -30.28 dBm ---------- -39.57 dBm
192.168.1.2 -30.06 dBm -30 dBm -30.33 dBm ----------
[DemoStatistics] =============================================================
Passive scanning can also be used to gather information about the STAs associated to Wi5 APs:
[DemoStatistics] ==============Passive scanning (Matrix of RSSI)==============
[DemoStatistics] AP /192.168.1.7 in channel: 3
[DemoStatistics] AP /192.168.1.1 in channel: 1
[DemoStatistics] AP /192.168.1.3 in channel: 11
[DemoStatistics] AP /192.168.1.2 in channel: 6
[DemoStatistics] =============================================================
[DemoStatistics] [ AP7 ][ AP1 ][ AP3 ][ AP2 ] - RSSI [dBm]
[DemoStatistics] Client /192.168.2.202 in agent /192.168.1.3
[DemoStatistics] [-50,00][-50,00][-40,00][-99,90]
[DemoStatistics] =============================================================