Hello,
Thank you for your question.
1. It should be possible by executing JSON-RPC code:
{
"jsonrpc": "2.0", "id": 1, "method": "call", "params":
[
"session_code", "file", "exec",
{
"command": "rut_fota -fk"
}
]
}
Replace sesssion_code with your device session ID.
This command will update FW and keep all of your settings. As far as I've tested this command will not work on legacy FW, if your RUT240 uses older FW then RUT2_R_00.07.XX.X, the command rut_fota will not work.
2. Yes, it works the same as in the question above, just replace "rut_fota -fk" with the command you want to execute, most likely you will use UCI commands to change the configuration, you can find more about UCI commands here: https://wiki.teltonika-networks.com/view/UCI_command_usage
Also if you need more information about JSON-RPC usage in our devices, read this article: https://wiki.teltonika-networks.com/view/RUT955_Monitoring_via_JSON-RPC_windows
For the update options, you can also update FW from SSH by running the rut_fota -fk command or activating FW update by sending an SMS message to the routers SIM card: fw_upgrade admin_password
And here you can read more about Mobile Utilities on our devices: https://wiki.teltonika-networks.com/view/RUT240_Mobile_Utilities
Let me know if you need further help.
Kind regards,
Edvinas