subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
259 views 0 comments
by anonymous
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
by anonymous


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:

Also if you need more information about JSON-RPC usage in our devices, read this article:

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:

Let me know if you need further help.

Kind regards,


Best answer