7141 questions

8568 answers


10608 members

0 votes
1,813 views 4 comments
Hi all,

I have some RUT955 units, I need to be able to read the bytes sent/received from a linux/python based device attached to the router.  Does anyone know a way to do this, MODBUS documents don't show this data as available through that route.


1 Answer

+1 vote


Do you need sent/received data from mobile network? Or you need to count data which was generated between router and "linux/python based device "?

Best answer

If you want to get data from router mobile WAN, then please check Wiki:



usage: gsmctl OPTIONS

   -e, --bsent <INTERFACE>       Get number of bytes sent

  -r, --brecv <INTERFACE>       Get number of bytes recieved

Hi, thanks for reading the question :-)

I need to get the mobile data.

For info the devices are Rasp Pis.

Had a play with using web-scraping to get the data off the routers built in web page but as my pis are headless and running only the CLI  I'm having trouble as the webpages are Java based and I can't render them without Xwindows.  I don't really want to have to go to xvfm/selenium etc just to get 2 numbers, the rest of the code on the Pis is running under Python2.7.
Typical, I typed my comment and submitted, then the JSON answer arrived.  Thats great I'll give it a go, thanks

Ok, nearly there, have the curl working to get session ID and pass that to the next command, how do i structure the gsmctl part of the command to get the data (highlighted does not work). I have it working to get the RSSI as per the example but can't grasp how to format the last bit

SUCCESS.. The following works with -e for the other value

curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [\"a74c8e07646f0da2bfddce35bf3de1f3\", \"file\", \"exec\", { \"command\":\"gsmctl\", \"params\": [\"-r\", \"wwan0\"] } ] }"
Thanks folks