10442 questions

12453 answers


21848 members

0 votes
50 views 0 comments
Hello guys,

I have two questions regarding the JSON-RPC of the Teltonika RUT240.

1.) Is there a way to update the Firmware of the RUT240 via this RPC Interface?

2.) Is there a way to upload a new configuration file via the JSON RPC Interface?

My usecase is, that I want to update and configure the router from my own C# application.

If it is not possible via the RPC, is there another way to perform updates except via the GUI or the teltonika RMS?

Thank you for your answer,


1 Answer

+1 vote


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,


Best answer