Changes

Line 304: Line 304:  
     "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 
     "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 
     [
 
     [
         "86fc586fa1471622473434ff0176fd66", "iwinfo", "assoclist",
+
         "86fc586fa1471622473434ff0176fd66", "<span style=color:red>iwinfo</span>", "<span style=color:red>assoclist</span>",
 
         {
 
         {
 
             "device":"wlan0"
 
             "device":"wlan0"
Line 312: Line 312:     
'''Linux:'''
 
'''Linux:'''
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"86fc586fa1471622473434ff0176fd66\", \"iwinfo\", \"assoclist\", {\"device\":\"wlan0\"} ] }" http://<span style=color:black>192.168.1.1</span>/ubus
+
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"86fc586fa1471622473434ff0176fd66\", \"<span style=color:red>iwinfo</span>\", \"<span style=color:red>assoclist</span>\", {\"device\":\"wlan0\"} ] }" http://<span style=color:black>192.168.1.1</span>/ubus
    
'''The response''' should look something like this:
 
'''The response''' should look something like this:
Line 323: Line 323:  
  {"rate":<span style=color:blue>72200</span>,"mcs":<span style=color:blue>7</span>,"40mhz":<span style=color:blue>false</span>,"short_gi":<span style=color:blue>true</span>}}]}]}
 
  {"rate":<span style=color:blue>72200</span>,"mcs":<span style=color:blue>7</span>,"40mhz":<span style=color:blue>false</span>,"short_gi":<span style=color:blue>true</span>}}]}]}
   −
Highlighted in green are the devices connected to the router via Wi-Fi as identified by their MAC addresses. The response information about the connection with the device, such as signal strength, noise, time of inactivity (idle time), rx, tx rate, HT mode (all highlighted in blue).  
+
To obtain these values, Linux '''iwinfo''' command and '''assoclist''' parameter (red) is used. Highlighted in green are the devices connected to the router via Wi-Fi as identified by their MAC addresses. The response information about the connection with the device, such as signal strength, noise, time of inactivity (idle time), rx, tx rate, etc., is highlighted in blue.  
    
===Wi-Fi information===
 
===Wi-Fi information===
Line 333: Line 333:  
     "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 
     "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 
     [
 
     [
         "a70ceeba344b6046625d8bcec132796c", "iwinfo", "info",  
+
         "a70ceeba344b6046625d8bcec132796c", "<span style=color:red>iwinfo</span>", "<span style=color:red>info</span>",  
 
         {
 
         {
 
             "device":"wlan0"
 
             "device":"wlan0"
Line 341: Line 341:     
'''Linux:'''
 
'''Linux:'''
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"a70ceeba344b6046625d8bcec132796c\", \"iwinfo\", \"info\", {\"device\":\"wlan0\"} ] }" http://<span style=color:black>192.168.1.1</span>/ubus
+
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"a70ceeba344b6046625d8bcec132796c\", \"<span style=color:red>iwinfo</span>\", \"<span style=color:red>info</span>\", {\"device\":\"wlan0\"} ] }" http://<span style=color:black>192.168.1.1</span>/ubus
    
'''Response:'''
 
'''Response:'''
Line 348: Line 348:  
  {"enabled":<span style=color:blue>false</span>},"hwmodes":["<span style=color:blue>b</span>","<span style=color:blue>g</span>","<span style=color:blue>n</span>"],"hardware":{"name":"<span style=color:blue>Generic MAC80211</span>"}}]}
 
  {"enabled":<span style=color:blue>false</span>},"hwmodes":["<span style=color:blue>b</span>","<span style=color:blue>g</span>","<span style=color:blue>n</span>"],"hardware":{"name":"<span style=color:blue>Generic MAC80211</span>"}}]}
   −
The relevant information, such as Wi-Fi SSID, Wi-Fi MAC address, Wi-Fi channel, Encryption type, etc., is highlighted in blue
+
As with the clients list command described above, to obtain this information Linux '''iwinfo''' command is used, this time with the '''info''' parameter (red). The relevant information, such as Wi-Fi SSID, Wi-Fi MAC address, Wi-Fi channel, Encryption type, etc., is highlighted in blue
    
===Device Serial/Mac number===
 
===Device Serial/Mac number===
 +
 +
'''Windows:'''
 +
{
 +
    "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 +
    [
 +
        "805725a19ab0fba6c2b44ecf2f952fb9","file", "exec",
 +
        {
 +
            "command":"mnf_info", "params":["sn"]
 +
        }
 +
    ]
 +
}
 +
 +
'''Linux:'''
 +
curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"805725a19ab0fba6c2b44ecf2f952fb9\",\"file\", \"exec\",{ \"command\":\"mnf_info\", \"params\":[\"sn\"] } ] }" http://<span style=color:black>192.168.1.1</span>/ubus
 +
 +
'''Response:'''
    
===Firmware number===
 
===Firmware number===

Navigation menu