Can I log client's information - rssi,snr, up/download, etc on every 10 sec?

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Can I log client's information - rssi,snr, up/download, etc on every 10 sec?

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Can I log client's information - rssi,snr, up/download, etc on every 10 sec?
Can I log client's information - rssi,snr, up/download, etc on every 10 sec?
2020-04-19 04:02:10 - last edited 2020-04-19 04:05:07
Model: EAP225  
Hardware Version:
Firmware Version:

I want to log the client's information(rssi, snr, up/download, etc) for research purpose.

 

Omada controller gives the client's information[1-2].

 

I heard that Omada controller can be installed in Raspberry Pi[3], and it is based on Java and MongoDB.

 

Can I directly access DB to get client's information?

 

[1] Omada Demo Page, https://emulator.tp-link.com/omada-controller/index.html#clients

[2] Omada gives lots of information as a JSON format, https://emulator.tp-link.com/omada-controller/data/getGridActiveClients_all.json?token=11a2b945e2a84feb85af070db13350a1

[3] Omada on Rpi2, https://community.tp-link.com/en/business/forum/topic/152609

  0      
  0      
#1
Options
3 Reply
Re:Can I log client's information - rssi,snr, up/download, etc on every 10 sec?
2020-04-19 12:57:14

Hello @shuggie,

 

The Omada software is available for Windows as well as Linux, and it's free.  So by all means give it a go.  Yes, I've heard it's based on Mongo as well.  When I was running the Omada application on my PC, I never tried to connect to the database directly.  Now that I'm running the OC-200 I cannot get to it at all -- cannot ssh to OC-200.

 

-Jonathan

  0  
  0  
#2
Options
Re:Can I log client's information - rssi,snr, up/download, etc on every 10 sec?
2020-04-19 13:05:16
https://www.tp-link.com/us/support/download/eap225/#Controller_Software
  0  
  0  
#3
Options
Re:Can I log client's information - rssi,snr, up/download, etc on every 10 sec?
2020-04-19 13:10:27 - last edited 2020-04-19 13:29:28

 

shuggie wrote

Can I directly access DB to get client's information?

 

Sure, why not? But I don't know whether EAPs send the data as often as every 10 seconds. You have to find out for yourself.

 

Create a script:

 

$ cat >clientStats <<-\HERE

#!/bin/sh

 

case $# in
  0)    query="\$and: [ { site: 'Default' }, { duration: { \$ne: 0 } } ]" ;;
  1)    query="\$and: [ { site: '$1' }, { duration: { \$ne: 0 } } ]" ;;
  *)    echo "Usage: ${0##*/} [site]"; exit 1 ;;
esac

 

mongo --port 27217 tpeap --eval "
db.client.find(
                { $query },
                { ssid: 1,
                  mac: 1,
                  snr: 1,
                  rssi: 1,
                  download: 1,
                  upload: 1,
                  duration: 1,
                  _id: 0
                }
        ).sort({ mac: -1 }).forEach(function(doc) {
                print(tojson(doc));
        }
);"

HERE

 

Run it:

 

$ chmod +x clientStats

$ ./clientStats
MongoDB shell version: 2.4.10
connecting to: 127.0.0.1:27217/tpeap
{
    "mac" : "00-17-F2-XX-YY-ZZ",
    "ssid" : "Radio Moskau",
    "snr" : 27,
    "rssi" : -68,
    "download" : NumberLong(4430),
    "upload" : NumberLong(12332),
    "duration" : NumberLong(186)
}

 

 

If you modify/enhance the script or add a nice graphical representation of the results, please share with the forum.

 

For installation of Omada controller on a RasPi see this thread. The thread [3] you linked to is way too old.

 

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  1  
  1  
#4
Options

Information

Helpful: 0

Views: 887

Replies: 3