Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
Template:Networking rut2 9 modbus custom register block
(view source)
Revision as of 10:09, 29 September 2020
302 bytes removed
,
10:09, 29 September 2020
no edit summary
Line 30:
Line 30:
do
do
date > /tmp/regfile #where data will be stored
date > /tmp/regfile #where data will be stored
−
{{#switch:{{{series}}}
−
|RUT9XX =
−
−
gsmctl -X >> /tmp/regfile
−
gsmctl -E >> /tmp/regfile
−
|RUT2XX =
−
gsmctl -X >> /tmp/regfile
gsmctl -X >> /tmp/regfile
gsmctl -E >> /tmp/regfile
gsmctl -E >> /tmp/regfile
−
|RUTX =
−
−
gsmctl -q >> /tmp/regfile
−
gsmctl -c >> /tmp/regfile
−
|TRB1 =
−
gsmctl -q >> /tmp/regfile
−
gsmctl -c >> /tmp/regfile
−
|TRB2 =
−
−
gsmctl -q >> /tmp/regfile
−
gsmctl -c >> /tmp/regfile
−
}}
sleep 5
sleep 5
done
done
Line 65:
Line 46:
And script will run in the background.
And script will run in the background.
−
With this script we will be able to get routers local time and couple
3G signal
values each 5 seconds.
+
With this script we will be able to get routers local time and couple
GSM
values each 5 seconds.
Data stored in <b>regfile (cat /tmp/regfile)</b> looks like this:
Data stored in <b>regfile (cat /tmp/regfile)</b> looks like this:
Tomas
Administrators
2,698
edits