beautypg.com

Nokia 12 GSM MODULE REMOTE I/O User Manual

Page 35

background image

Table 7. The Input_Get X commands

Command Type

Command

Comments

Input_Get All

term123 Input_Get All

Response:

INPUT_GET ALL: OK

INPUT1: Y

INPUT2: Y

INPUT3: Y

INPUT4: Y

INPUT5: Y

INPUT6: Y

INPUT7: Y

INPUT8: Y

INPUT9: Y

INPUT10: Y

INPUT11: Y

The Y varies according to the input pin state and it can be:

xxxx mV if the input analog (pins 1-3), xxxx = value
between 0-2800

ON or OFF if the input is digital (pins 4 -11)

The command
reads all inputs
and the response
returns the value
and state

Input_Get X

term123 Input_Get X

Response:

INPUT_GET X: OK

INPUT X: Y

The X refers to input pin number,
X=1,2,3,4,5,6,7,8,9,10,11.

The Y varies according to the input pin state and it can be:

xxxx mV if the input is analog (pins 1-3), xxxx = value
between 0-2800

ON or OFF if the input is digital (pins 4-11)

The command
reads input pin X
and the response
returns the value
or state of it
according to
queried input pin

31/49