RC11xx(HP)-TM
RC25xx(HP)-TM
RC17xx(HP)-TM
2016 Radiocrafts AS
RC11xx(HP)/25xx(HP)/17xx(HP)-TM Data Sheet rev. 1.48 Page 34 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
Input / Output Functions
Tinymesh™ modules have eight connection pins for application Input / Output control, in addition to the
dedicated
PULSE COUNTER
input and the UART serial port.
The Gateway Device must be configured for
PACKET MODE OPERATION
to support the Input / Output
functions. Sampled analogue and digital GPIO values may be found in all
GENERAL EVENT PACKET
FORMAT
received from Router- or End devices.
Outputs may be controlled by the
SET OUTPUTS
and
SET PWM
commands from the Gateway.
Routers- and End Devices will trigger event packet delivery from several sources:
•
By an analogue input signal changing value(
ANALOGUE INPUT
)
•
A digital input changing value (
DIGITAL INPUT
)
•
A timed event (
AUTOMATIC STATUS REPORTING
)
•
By a request command from Gateway (
GET STATUS
)
By default, all eight GPIO pins are inputs. Any of the GPIOs may however be changed to function as
outputs with default high- or default low level.
Additionally, GPIO 0 and 1 may be configured to function as analogue inputs, and GPIO 7 may be used
for 0-100% duty cycle PWM output.
Each GPIO pin is supported by individual configuration settings for function selection (
GPIO
) and (
GPIO
TRIG
) condition.
Digital Input
When a GPIO has been configured to act as an input through the
GPIO
configuration setting, a separate
GPIO TRIG
configuration setting is used to determine if the input signal should be used to trigger an
event message. The trigger function may for instance be used to trigger an alarm condition. The
configuration settings allow for triggering on digital signals when changing from high to low level, from
low to high, or both. The default setting is
no trig
. Digital inputs are pre-configured with a 20k pull-up
resistor. See the
GPIO
pin description.
With no external signal connected, a digital input will always read as digital ‘1’ in Event Messages.
Digital Input De-bouncing
Digital inputs are protected by a de-bounce mechanism, to eliminate problems with unstable signals or
settling times for micro switches or detectors. The de-bounce setting is common for all digital inputs, and
settable in intervals of 1ms by changing the
INPUT DE-BOUNCE
Configuration Parameter. The default
setting is 10ms, meaning that any digital input must deliver a stable input (no change) for at least 10ms,
to trigger an event.
Digital Input ‘Trig Hold’
The
TRIG HOLD
function creates an 8-bit bitmap of inputs that have been triggered (meeting configured
digital input
GPIO
trig conditions) during the last
IMA TIME
sampling period.
The 'Trig Hold' data may be included in the
STATUS MESSAGE (IMA)
packets by changing the default
configuration of the
IMA MESSAGE DATA FIELD CONTENTS
.
The trig hold function is useful in data logging applications where several similar trigger events may
occur over a time period, but the transmission of all event messages would introduce unnecessarily high
levels of data traffic.
Pulse Counter
The pulse counter function uses a separate
PULSE COUNTER
input, not shared by the eight configurable
GPIO
inputs. The pulse counter is enabled by changing the
PULSE COUNTER MODE
configuration.
The pulse counter is a four-byte rolling counter, set to zero at module Reset. The current counter value
is reported by the
STATUS MESSAGE (IMA)
event, that may be triggered either on a timed basis by
setting the
IMA TIME
parameter, or by issuing a
GET STATUS
command from the Gateway.
The counter status may be viewed either in a two-byte format, by selecting the
IMA MESSAGE DATA
FIELD CONTENTS
parameter = 2, or in a four byte format, by setting
IMA MESSAGE ADDRESS FIELD
CONTENTS
8
= 1