Hello,
I am trying to get access to my RUT955 over JSON so I can get GPS coordinates.
After successfully logging into the router I cannot get coordinates.
Here are the steps which I did (following the documentation):
POST @ http://192.168.0.1/ubus
I am logging in and getting session without any problems.
----------------------------------SEND----------------------------------------
{
"jsonrpc":"2.0", "id":1, "method":"call", "params":
[
"00000000000000000000000000000000", "session", "login",
{
"username":"admin", "password":"AltproRAS90"
}
]
}
----------------------------------SEND----------------------------------------
----------------------------------RECEIVE---------------------------------------
{
"jsonrpc": "2.0",
"id": 1,
"result": [0, {
"ubus_rpc_session": "7b78d382cc4d454b55f4cabdafd882ed",
"timeout": 300,
"expires": 299,
"acls": {
"access-group": {
"core": ["read", "write"],
"network/dns": ["read", "write"],
"network/firewall/attack_prevention": ["read", "write"],
..... and all the rest .......
}
----------------------------------RECEIVE---------------------------------------
I am trying to get GPS but no coordinates are returned just this message.
----------------------------------SEND----------------------------------------
{
"jsonrpc": "2.0", "id": 1, "method": "call", "params":
[
"581a05de18fd543582af4feb11d4bcbf","file", "exec",
{
"command":"gpsctl", "params":["-ix"]
}
]
}
----------------------------------SEND----------------------------------------
----------------------------------RECEIVE---------------------------------------
RESPONSE ERROR: {"jsonrpc":"2.0","id":1,"result":[6]}
----------------------------------RECEIVE---------------------------------------
I am trying to get serial number ... but again same message is returned.
----------------------------------SEND----------------------------------------
{
"jsonrpc": "2.0", "id": 1, "method": "call", "params":
[
"581a05de18fd543582af4feb11d4bcbf","file", "exec",
{
"command":"mnf_info", "params":["name", "sn", "mac"]
}
]
}
----------------------------------SEND----------------------------------------
----------------------------------RECEIVE---------------------------------------
RESPONSE ERROR: {"jsonrpc":"2.0","id":1,"result":[6]}
----------------------------------RECEIVE---------------------------------------
What could be the cause for such behaviour?
Thank you in advance for helping out.