Changes

no edit summary
Line 4: Line 4:  
==Introduction==
 
==Introduction==
   −
The goal of this manual is to help configuring '''Teltonika Networking Devices''' to get additional custom Modbus registers for device monitoring via Modbus if default registers are not enough. Default Modbus registers can be found on our Wiki page: '''[https://wiki.teltonika-networks.com/view/{{{name}}}_Monitoring_via_Modbus Monitoring via Modbus]'''
+
The goal of this manual is to help configuring '''Teltonika Networking Devices''' to get additional custom Modbus registers for device monitoring via Modbus if default registers are not enough. Default Modbus registers can be found on our Wiki page: '''[[Monitoring_via_Modbus|Monitoring via Modbus]]'''
    
==Configuring Teltonika Networking Device==
 
==Configuring Teltonika Networking Device==
Line 27: Line 27:     
Insert following <b>script</b> (this script is for this manual purpose, yours might be different) example:
 
Insert following <b>script</b> (this script is for this manual purpose, yours might be different) example:
{{#switch:{{{name}}}
  −
|RUTX10=
   
<pre>
 
<pre>
 
  #!/bin/ash
 
  #!/bin/ash
Line 39: Line 37:  
  done
 
  done
 
</pre>
 
</pre>
|RUTX08=
+
 
<pre>
  −
#!/bin/ash
  −
while true
  −
do
  −
date > /tmp/regfile  #where data will be stored
  −
df | awk 'NR==3 {print $3}' >> /tmp/regfile
  −
df | awk 'NR==4 {print $3}' >> /tmp/regfile
  −
sleep 5
  −
done
  −
</pre>
  −
|
  −
<pre>
  −
#!/bin/ash
  −
while true
  −
do
  −
date > /tmp/regfile  #where data will be stored
  −
gsmctl -X >> /tmp/regfile
  −
gsmctl -E >> /tmp/regfile
  −
sleep 5
  −
done
  −
</pre>
  −
}}
   
After saving change execution rights with this command:
 
After saving change execution rights with this command:
   Line 73: Line 49:  
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 {{#switch:{{{name}}}
+
With this script we will be able to get routers local time and couple application values each 5 seconds.
|RUTX10= DF application |RUTX08= DF application | 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:
{{#switch:{{{name}}}
  −
|RUTX10=
   
<pre>
 
<pre>
 
Wed Jun 17 15:11:29 EEST 2020
 
Wed Jun 17 15:11:29 EEST 2020
Line 83: Line 56:  
27
 
27
 
</pre>
 
</pre>
|RUTX08=
+
 
<pre>
  −
Wed Jun 17 15:11:29 EEST 2020
  −
69
  −
27
  −
</pre>
  −
|
  −
<pre>
  −
Wed Jun 17 15:11:29 EEST 2020
  −
-69
  −
27
  −
</pre>
  −
}}
        Line 162: Line 123:     
[[File:Modbus custom reg6.png|border|class=tlt-border]]<br>
 
[[File:Modbus custom reg6.png|border|class=tlt-border]]<br>
[[Category:{{{name}}} Configuration Examples]]
 

Navigation menu