Mmad, Query And Monitor Adc Value - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

Example
+MIOD: (00000000-11111111),(0,1),( 00000000-11111111)
AT+MIOD=00010000,0// Set IO pin #5 to be output.
OK
AT+MIOD?
+MIOD: 111011111// Pins 1-4 and 6-8 are input. Pin 5 is output.
OK
AT+MIOD=00001111,0// Set IO pins 1-4 to be output level mode.
OK
AT+MIOD=11110000,1// Set IO pins 5-8 to be input level mode.(Default settings).
OK
AT+MIOD?
+MIOD: 11110000 // Pins 1-4 output pins, 5-8 input pins.
OK

+MMAD, Query and Monitor ADC Value

This command intends to query and monitor ADC value.
This command returns the current ADC values for the requested channel. The values received
from the first 3 converters represent the DC voltage levels of the input to pins 37, 43 and 47 on
the 70 pin connector.
The returned value is a multiplication of the input level by 100 (e.g. input level of 1.56V will
return 156).
th
The 4
be converted according to conversion table
th
The 5
The returned value is a multiplication of the input level by 100 (e.g. input level of 1.56v will
return 156).
This command can also calculate the average of the samples in a given duration and to forward it
as unsolicited or solicited report according to the report interval timer.
Command
Type
Set
December 31, 2007
converter functions as a temperature sensor which its values are pure numbers that should
converter functions as an input voltage monitor of the G24.
Syntax
AT+MMAD=
<Converter_number>[
,[<Report>],[<Rate>],[
<Low>],[<High>]
[,<Num_Of_Samples>,
[<Average_Calc_Dura
tion>],
[<Report_Interval]]]
AT+MMAD=
<Converter_number>
AT Commands Reference Manual
Chapter 3: AT Commands Reference
(Table
3-144).
Response/Action
+MMAD:
<Converter_number>, <Average>
OK
Or:
+CME ERROR: <err>
+MMAD:
<Converter_number>,
<Converted_Value>
OK
Or:
+MMAD:
<Converter_number>, <Average>
OK
Remarks
If average is active on that
converter, the response
value will be the latest
average calculated.
If average is not active on
that converter, the response
value will be the converted
value.
If average is active on that
converter, and report
interval not set, the
response value will be the
latest average calculated
(solicited message).
3-219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents