The G120 has 1 x Ignition Digital Input and 6 x Digital Inputs with configurable pull up/pull down parameters. These inputs detect the voltage at the input, check it against the thresholds and then record the digital input as ON ( 1 ) or OFF ( 0 ). This can then be used to determine the state of an asset, such as
- Ignition ON/OFF
- Pump ON/OFF
- Button Press
- Pulse Counting
- Door open/close
This article provides general information about Digital Inputs on the G120.
- Input voltage range = 0-48V
- On/Off Thresholds
- Pull Up Enabled
- Input registers low/off below 0.8V
- High/On above 1.0V
- Pull down enabled
- Registers low/off below 2.0V
- High/On above 2.4V
- Pull Up Enabled
The G120 has a configurable Active Level and Bias Resistor
- The Active Level determines the physical line level (high or low) at which the input is considered on.
- The Bias Resistor essentially determines the state of the input when nothing is connected to the input. Since often we would leave them disconnected, or 'open circuit' meaning the state isn't well defined. The bias resistor handles this.
There are 3 options:
- Pull up: pull the input high
- Pull down: pull the input low
- Disable: do not bias the input
These options are useful when one of the states being read is open-circuit (disconnected/high impedance). In this case, enable the bias resistor setting in the opposite state to the level being switched to. This is commonly used when working with an "open collector" output. The pull up/down is a "weak" pull up/down.
Results of different configurations.
|Bias Resistor||Active High||Input||Result|
Setting Up a Digital Input
The following pins represent the Digital Inputs on the G120
- Digital Input 1: Pin 16 - Pink
- Digital Input 2: Pin 17 - Blue
- Digital Input 3: Pin 18 - Green/Black
- Digital Input 4: Pin 19 - Brown
- Digital Input 5: Pin 4 - Brown/Blue
- Digital Input 6: Pin 5 - Violet/Red
Please see G120 Harness Definition for wire colour information.
To set up a digital input, we first need to add the corresponding Digital Input parameter tab.
Function - Either Digital Input or Pulse Counting.
Digital Input - The virtual input number that you want it mapped to.
Bias Resistor and Active Level - See table above.
Log/Upload on Active - By default, the device will only log a record when the input changes. It is not immediately uploaded. In most cases we want to turn this on. So set Upload on Active/Inactive to Yes
Buzzing Parameters - We can optionally have any buzzers connected to notify us that the input is on/off.
Emergency Uploads - A device can be set to not upload in certain areas. This can be set up as part of Geofence Downloads to Device. If the Emergency Uploads is set to Yes, then the device will upload even in a no comms zone.
Config 1 - Debounce Time. By default, the input must stay on continuously for 1000ms = 1sec for the device to register it as on and send an update to the server.
Buzz on Active/Inactive
We can configure the device to sound any connected buzzers, or flash an LED, when an input is active/on or inactive/off.
This can be very useful for providing feedback to drivers/operators, for example:
- Sounding a buzzer when a seatbelt is undone or a tailgate is open.
- Sounding a buzzer when a duress button has been pressed, to provide feedback that it was registered (note, this doesn't confirm that it has been received by the server). This can also help prevent false alerts as drivers are notified of accidental presses and can contact response teams.
We can configure buzzing with these parameters. Setting the count to 255 enables continuous buzzing, for the entire time an input is on/off.
Example - 3 beeps when an input goes active.
This would result in the below when the input goes active:
Buzzer on 20ms -> off 20ms -> on 20ms -> off 20ms -> on 20ms -> off 20ms
Example - Continuous buzzing when an input is on, long buzzes (500ms on/off)
Buzz only when the ignition is on
We may want to set up the device to buzz when an input is active, and the ignition is on. i.e. we want to buzz if the tailgate is left open and the engine is running. We can solve this using the Input Monitor.