Changes

Line 1: Line 1:  +
<p style="color:red">The information in this page is updated in accordance with firmware version '''[https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads 00.07.02.7]'''.
 +
 
==Introduction==
 
==Introduction==
   Line 30: Line 32:  
* '''Electromagnetic Relay'''
 
* '''Electromagnetic Relay'''
   −
Relay choice depends on vehicle's electrical system voltage. If this setup is installed into a Vehicle with 12 V system, then a relay similar to the [https://www.digikey.com/en/products/detail/panasonic-electric-works/CB1-12V/646971 CB1-12V] could be used. Otherwise, if the electrical system is 24 V, a relay similar to the [https://www.digikey.com/en/products/detail/panasonic-electric-works/CB1-24V/646972 CB1-24V] could be used. When choosing a relay, the most important aspect is '''Coil Voltage''', therefore I recommend using aforementioned relays based on the voltage.
+
Relay choice depends on vehicle's electrical system voltage. If this setup is installed into a Vehicle with 12 V system, then a relay with '''12 V Coil Voltage''' should be used. Otherwise, if the electrical system is 24 V, a relay with '''24 V Coil Voltage''' should be used.  
    
When building this schematic, you can ground the device and the relay on the same spot, for example, chassis of the vehicle.
 
When building this schematic, you can ground the device and the relay on the same spot, for example, chassis of the vehicle.
Line 48: Line 50:  
If you chose the first option, no additional device configuration is needed. If you would like a set up based on the second schematic, you would need to do additional configuring in the device.  
 
If you chose the first option, no additional device configuration is needed. If you would like a set up based on the second schematic, you would need to do additional configuring in the device.  
   −
===Startup script===
+
===Setting Output pin state===
 
----
 
----
First of all, we need a custom startup script to toggle a second relay to ON position. Follow these steps to configure startup behavior:
+
First of all, we need to set the second relay to ON position by setting the Output pin to High state. Follow these steps to configure default Output pin state:
 +
 
 +
* Navigate to '''Services -> Input/Output -> Status'''.
 +
* Press on the Output pin state to turn on.
 +
 
 +
[[File:Outputstate ignitiondetectionsolution.png|950px|border|class=tlt-border]]
    +
Otherwise, the output pin can be set to high using startup script:
 
* Navigate to '''System -> Custom scripts -> Startup script'''.
 
* Navigate to '''System -> Custom scripts -> Startup script'''.
 
* Above the exit 0 text, input command to turn on the output Pin: ''ubus call ioman.gpio.dout1 update '{"value":"1"}'''
 
* Above the exit 0 text, input command to turn on the output Pin: ''ubus call ioman.gpio.dout1 update '{"value":"1"}'''
 
* Press '''Save & Apply'''.
 
* Press '''Save & Apply'''.
   −
[[File:Startupscriptoutput.png|border|class=tlt-border]]
+
[[File:Startupscriptoutput.png|500px|border|class=tlt-border]]
    
===Input/Output Juggler configuration===
 
===Input/Output Juggler configuration===
Line 65: Line 73:  
* In the general tab, press enable to turn on I/O Juggler functionality.
 
* In the general tab, press enable to turn on I/O Juggler functionality.
   −
[[File:Enableiojuggler.png|border|class=tlt-border]]
+
[[File:Enableiojuggler.png|border|500px||class=tlt-border]]
    
===Action configuration===
 
===Action configuration===
Line 74: Line 82:  
[[File:Typeoutputnamedelayoff.png|1100px|border|class=tlt-border]]
 
[[File:Typeoutputnamedelayoff.png|1100px|border|class=tlt-border]]
   −
In the new window, configure the settings according to the explanations below.
+
In the new window, configure the settings according to the explanations below. Here we are not using '''Maintain''' option in order for the relay to be set to ON position once the ignition is on again.
    
* Type: Output.
 
* Type: Output.
 
* Execution delay (how long you would like to keep the router on after the ignition turns off): your preferred time in seconds.
 
* Execution delay (how long you would like to keep the router on after the ignition turns off): your preferred time in seconds.
 
* Control: Output (4) (Output pin on which the relay control is connected).
 
* Control: Output (4) (Output pin on which the relay control is connected).
* State: Low.
+
* Maintain: Off
 +
* State copying: On
 +
* Source: Input (3)
    
Leave everything else as default, press '''Save & Apply'''.
 
Leave everything else as default, press '''Save & Apply'''.
Line 104: Line 114:  
----
 
----
 
'''Disclaimer''': The information contained on this article is meant to provide an example on how to achieve Ignition detection functionality. If you decide to modify, use different components or connect the schematics differently - you are doing so at your own risk.
 
'''Disclaimer''': The information contained on this article is meant to provide an example on how to achieve Ignition detection functionality. If you decide to modify, use different components or connect the schematics differently - you are doing so at your own risk.
 +
[[Category:Hardware application]]