Specifications

AVIDdirector-M2M Technical Reference Guide
February 5, 2009 ©AVIDwireless 2004-2009 All Rights Reserved Page 19 of 55
Through M2MXML the user can program on device behavior such as trigger limits, sensor dead-
zones, polling modes, scheduled execution, and I/O control. This means that for many M2M
applications no embedded device programming is required and all device behavior and operation
can be specified by M2MXML commands sent over-the-air (OTA) to the device.
M2M_IODevice implements a nominal 200ms polling of the input devices and each AVIDdirector-
M2M device can be added to the polling loop by setting the POLLING attribute in the M2MApp.ini
configuration file or by a SetConfiguration command to the M2M_IODevice with the property
POLLING set to true. When polling, each device is set to input mode and any transitions are sent
as PerceptReadings to the M2MXML portal.
For the internal M2MIO Devices (the 22 TTL devices) these parameters can be used for each of the
TTLn ports:
.IOTYPE=type, where type is AIN, DIN, AOUT or DOUT
.POLLING=true
.READING_PROCESSOR_CLASSNAME=classname of IODeviceReadingProcessor instance to
use. An IODeviceReadingProcessor has methods called for initialize, startReading,
processControlCommand, processDigitalPerceptRequest, processAnalogPerceptRequest,
processSetDigitalOutput, processSetAnalogOutput and endReading
.ABSOLUTE_REPORT_TIME=nnn Set an absolute GMT time to report the current reading value.
Time is in GMT seconds for each day.
.PERIODIC_REPORT_TIME=nnn Set an periodic time to report the current reading value. Time is
in milliseconds
.REPORT_MINIMUM_INTERVAL_TIME=nnn Set period of time, in milliseconds, to wait before we
report a change in a value
.DIGITAL_TRIGGER_HIGH=true|false Report if the input goes from a low to a high. For digital
inputs.
.DIGITAL_TRIGGER_LOW=true|false Report if the input goes from a high to a low . For digital
inputs.
.INVERT=true|false If set true this will invert the reported value. For digital inputs.
.PULLUP_INPUT=true|false Set the port to have an active pull-up using the PSoC. For digital
inputs.
.PULLDOWN_INPUT=true|false Set the port to have an active pull down using the PSoC. For digital
inputs.
.PULSEHIGH_TIME=nnn Set the time to pulse the output high. Time in milliseconds. For digital
outputs.
.PULSELOW_TIME=nnn Set the time to pulse the output low. Time in milliseconds. For digital
outputs.
.ANALOG_OFFSET=dd.dd Sets offset applied to the analog input or output. For Analog I/O.
.ANALOG_FACTOR=dd.dd Sets factor (multiplier) applied to the analog input or output. For Analog
I/O.