Chapter 4. Hardware commands
4.7
AT#RDIO
Command to read versatile I/O status
ALLOWED: exec-info
AT#RDIO=(channel)
–
channel: 1 or 2
–
mode:
•
"DI": digital input
•
"DO": digital output
•
"AN": analogue input
–
status:
•
for mode = "DI" or "DO" : 0 or 1
•
for mode = "AN" : voltage in mV or current in mA (which one depends on AT#VAMODE)
exec :
AT#RDIO=1
#RDIO: 1,"AN",35
OK
state :
AT#RDIO?
ERROR
info :
AT#RDIO=?
#RDIO: (1-2)
OK
4.8
AT#OPSET
To control versatile I/O in output mode
ALLOWED: exec-info
Note:
–
On Power up the device output state will be reset.
–
Before setting the output value, the channel need to be configured as digital output first
AT#OPSET=(channel),(status)
M110 Series Cellular Modem mPACK Command Reference
22