FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14244 questions

16889 answers

27799 comments

54527 members

0 votes
188 views 2 comments
by
I want to periodically retrieve some information from a RUT950, automatically. I have set MQTT up both my laptop and the router, and I can get some statistics from the router. However, MQTT is not supporting LTE RSRP, SINR, RSRQ etc, information that can be obtained by running gsmctl commands. Is there a way, that I can publish new messages in MQTT so that I receive them on my laptop or should be another way?

1 Answer

+1 vote
by
Hi,

Sorry, but our MQTT can only send data / information that is documented here: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT

That's at least without any firmware / MQTT package changes, that would be required for new data values to appear there.

What I would suggest is trying out JSON-RPC, which will let you send the command to the router and get the response of it. This way you will be able to use gsmctl commands and not only.

https://wiki.teltonika-networks.com/view/RUT950_Monitoring_via_JSON-RPC_windows

EB.
by

Thank you ErnastB. 

I want to automatically configure the router - is there a list with the settings we can update? For setting a custom APN  and from the dev console I can see something like <input type="hidden" value="1" name="cbi.cbe.simcard.sim1.auto_apn" />, is the name follows the pattern config.type and then match is the auto_apn?

    "jsonrpc":"2.0", "id":1, "method":"call", "params": 
    [
        "558a9b03c940e52f373f8c02498952e3", "uci", "set",
        {
            "config":"simcard", "type":"sim1", "match":
            {
                "service":"auto",
                "mtu":"1500"
            },
            "values":
            {
                "service":"lte-only",
                "mtu":"1476"
            }
        }
    ] 
by

This JSON-RPC string controls uci settings, so if you'll go to CLI and enter uci show you should be able to see the strings that are controlled to change particular settings.

But I didn't understand your question I believe, is that what you were looking for?

EB.