Skip to content

Application DemoStatistics

Jose Saldana edited this page Apr 6, 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..

It distinguishes between

  • Internal statistics
  • External statistics

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

Active 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