Table of Contents

Delayed power off

In some applications it's needed that the NetModule router has to be online for a few minutes after the ignition has been turned off to. This allows applications to use the connectivity for a few minutes e.g. to upload operational data after the vehicle has reached the depot or rail yard.

How to

Depending on the power source the power supply and the IOs of the router should be connected as shown in the figures below.

A task has to be created binding the SDK script “power_on.are” to the trigger “system-startup”. This will switch the power source from ignition (clamp/Klemme 15 Zündplus) to steady plus (clamp/Klemme 30 Dauerplus).

A second task has to be created binding the SDK script “delayed_power_off.are” to the trigger “do-in1-off”. This will disconnect the steady plus power source after a given time (5 min).

For 9V to 40V power source:

For 18V to 57.6V power source:

The difference to a power supply between 9V and 40V is the 3k3, 0.25W resistor from ignition to DI1+ as shown in the figure below. This resistor is needed to protect the In-Port. Everything else is equal to the variant with power supply between 9V and 40V.

Scripts

power_on.are
/* DESC: This script can be used to enable steady plus after startup. Bind to trigger "system-startup"
 * Copyright (C) 2014 NetModule AG, Switzerland
 */
nb_dio_set("out1", 1);
delayed_power_off.are
/* DESC: This script can be used to disable "steady plus" after a defined time.
 * Copyright (C) 2014 NetModule AG, Switzerland
 */
 
sleep(300); //time to disable steady plus in secs - here 5 mins
if (nb_dio_get("in2") == 0) //just cut steady plus if ignition is not available
	nb_dio_set("out1", 0);