Changes

no edit summary
Line 1: Line 1: −
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.4'''] firmware version .</p>
+
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version .</p>
 
==Introduction==
 
==Introduction==
   Line 195: Line 195:  
Navigate to the router's '''WebUI → Network → Wireless''' and see if the SSID has changed.
 
Navigate to the router's '''WebUI → Network → Wireless''' and see if the SSID has changed.
 
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''Before'''</p></div>
 
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''Before'''</p></div>
[[File:Postmna ssid before.png|border|center|class=tlt-border|768x157px]]
+
[[File:Json_rpc_wifi_before.png|border|center|class=tlt-border|768x157px]]
    
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''After'''</p></div>
 
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''After'''</p></div>
[[File:Webui ssid changed.png|border|center|class=tlt-border|778x156px]]
+
[[File:Json_rpc_wireless_after.png|border|center|class=tlt-border|778x156px]]
    
====Setting Multiple Parameters====
 
====Setting Multiple Parameters====
Line 227: Line 227:     
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''Before'''</p></div>
 
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''Before'''</p></div>
[[File:Postman dhcp before.png|border|center|class=tlt-border|792x263px]]
+
[[File:Json_rpc_dhcp_before.png|border|center|class=tlt-border|792x263px]]
    
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''After'''</p></div>
 
<div style="display: flex; justify-content: center; align-items: center;"> <p>'''After'''</p></div>
[[File:Postman dhcp after.png|border|center|class=tlt-border|799x264px]]
+
[[File:Json_rpc_dhcp_after.png|border|center|class=tlt-border|799x264px]]
    
'''Note''': Remember always to use the commands in the order (set, commit, reload_config)
 
'''Note''': Remember always to use the commands in the order (set, commit, reload_config)
Line 237: Line 237:     
If the commands found in the guide above did not suffice your needs, this section provides a list of additional ones. The commands presented in this section will be for both Linux and Windows operating systems. They should be used as syntax examples for your own purposes.
 
If the commands found in the guide above did not suffice your needs, this section provides a list of additional ones. The commands presented in this section will be for both Linux and Windows operating systems. They should be used as syntax examples for your own purposes.
===WiFi clients list===
  −
----
  −
This command returns a list of devices connected to your WLAN and some additional information about the connection.
  −
  −
'''Windows:'''
  −
{
  −
    "jsonrpc": "2.0", "id": 1, "method": "call", "params":
  −
    [
  −
        "86fc586fa1471622473434ff0176fd66", "<span style=color:red>iwinfo</span>", "<span style=color:red>assoclist</span>",
  −
        {
  −
            "device":"wlan0"
  −
        }
  −
    ]
  −
}
  −
  −
'''Linux:'''
  −
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:
  −
{"jsonrpc":"2.0","id":1,"result":[0,{"results":
  −
[{"mac":"<span style=color:green>E4:02:9B:XX:XX:XX</span>","signal":<span style=color:blue>-32</span>,"noise":<span style=color:blue>-88</span>,"inactive":<span style=color:blue>10</span>,"rx":
  −
{"rate":<span style=color:blue>1000</span>,"mcs":<span style=color:blue>0</span>,"40mhz":<span style=color:blue>false</span>,"short_gi":<span style=color:blue>false</span>},"tx":
  −
{"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>}},
  −
{"mac":"<span style=color:green>D8:C7:71:XX:XX:XX</span>","signal":<span style=color:blue>-12</span>,"noise":<span style=color:blue>-88</span>,"inactive":<span style=color:blue>400</span>,"rx":
  −
{"rate":<span style=color:blue>1000</span>,"mcs":<span style=color:blue>0</span>,"40mhz":<span style=color:blue>false</span>,"short_gi":<span style=color:blue>false</span>},"tx":
  −
{"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>}}]}]}
  −
  −
To obtain these values, the Linux '''iwinfo''' command and '''assoclist''' parameter (red) are used. Highlighted in green are the devices connected to the router via WiFi 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.
   
===WiFi information===
 
===WiFi information===
 
----
 
----
Line 275: Line 247:  
         "a70ceeba344b6046625d8bcec132796c", "<span style=color:red>iwinfo</span>", "<span style=color:red>info</span>",  
 
         "a70ceeba344b6046625d8bcec132796c", "<span style=color:red>iwinfo</span>", "<span style=color:red>info</span>",  
 
         {
 
         {
             "device":"wlan0"
+
             "device":"radio0"
 
         }
 
         }
 
     ]
 
     ]
Line 281: Line 253:     
'''Linux:'''
 
'''Linux:'''
  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
+
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"a70ceeba344b6046625d8bcec132796c\", \"<span style=color:red>iwinfo</span>\", \"<span style=color:red>info</span>\", {\"device\":\"radio0\"} ] }" http://<span style=color:black>192.168.1.1</span>/ubus
    
'''Response:'''
 
'''Response:'''
Line 362: Line 334:     
'''Response:'''
 
'''Response:'''
  {"jsonrpc":"2.0","id":1,"result":[0,{"data":"<span style=color:blue>RUTXXX_R_00.07.02.0</span>\n"}]}
+
  {"jsonrpc":"2.0","id":1,"result":[0,{"data":"<span style=color:blue>RUTXXX_R_00.07.08</span>\n"}]}
    
This command ('''file''', '''read''', highlighted in red) is an alternative to the Linux '''cat''' command. All you need is to specify the path (in this case '''/etc/version''', highlighted in red) to the file that you wish to read.
 
This command ('''file''', '''read''', highlighted in red) is an alternative to the Linux '''cat''' command. All you need is to specify the path (in this case '''/etc/version''', highlighted in red) to the file that you wish to read.
Line 385: Line 357:     
The success response for this command is an empty message. If the response contains no data, the command was executed successfully.  
 
The success response for this command is an empty message. If the response contains no data, the command was executed successfully.  
===Set SIM card information===
  −
----
  −
In this last example we'll try to change the mobile connection's MTU and Service mode values.
  −
  −
'''Windows:'''
  −
{
  −
    "jsonrpc":"2.0", "id":1, "method":"call", "params":
  −
    [
  −
        "558a9b03c940e52f373f8c02498952e3", "<span style=color"red>uci</span>", "<span style=color:red>set</span>",
  −
        {
  −
            "config":"<span style=color:orange>simcard</span>", "type":"<span style=color:orange>sim1</span>", "match":
  −
            {
  −
                "service":"<span style=color:orange>auto</span>",
  −
                "mtu":"<span style=color:orange>1500</span>"
  −
            },
  −
            "values":
  −
            {
  −
                "service":"<span style=color:orange>lte-only</span>",
  −
                "mtu":"<span style=color:orange>1476</span>"
  −
            }
  −
        }
  −
    ]
  −
}
  −
  −
'''Linux:'''
  −
curl -d "{\"jsonrpc\":\"2.0\", \"id\":1, \"method\":\"call\", \"params\":[\"558a9b03c940e52f373f8c02498952e3\", \"<span style=color:red>uci</span>\", \"<span style=color:red>set</span>\", {\"config\":\"<span style=color:orange>simcard</span>\", \"type\":\"<span style=color:orange>sim1</span>\", \"match\":{\"service\":\"<span style=color:orange>auto</span>\", \"mtu\":\"<span style=color:orange>1500</span>\"}, \"values\":{\"service\":\"<span style=color:orange>lte-only</span>\", \"mtu\":\"<span style=color:orange>1476</span>\"} } ] }" http://<span style=color:black>192.168.1.1</span>/ubus
  −
  −
'''Response:'''
  −
{"jsonrpc":"2.0","id":1,"result":[<span style=color:blue>0</span>]}
  −
  −
The command used is ''uci set'' (highlighted in red). The config file name is '''simcard''', section '''sim1''', options '''mtu''' and '''service''' (configs, sections and options highlighted in orange). The response shown above is a positive response, but don't forget to execute ''uci commit'' and ''reload_config'' afterwards or else your changes will not take effect.
      
==See Also==
 
==See Also==