Chapter 3: AT Commands Reference

Example

+MIOD: (00000000-11111111),(0,1),( 00000000-11111111)

AT+MIOD=00010000,0

// Set IO pin #5 to be output.

OK

 

AT+MIOD?

 

+MIOD: 11101111

// 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 5th converter functions as an input voltage monitor of the G24-L.

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, unsolicited, according to report interval timer, or solicited.

Command

Syntax

Response/Action

Remarks

Type

 

 

 

 

 

 

 

 

Set

AT+MMAD=

+MMAD:

If average is active on that

 

<Converter_number>[

<Converter_number>, <Average>

converter, the response

 

,[<Report>],[<Rate>],[

OK

value shall be the latest

 

average calculated.

 

<Low>],[<High>]

Or :

 

 

 

[,<Num_Of_Samples>,

+CME ERROR: <err>

 

 

[<Average_Calc_Dura

 

 

 

 

 

tion>],

+MMAD:

If average is not active on

 

[<Report_Interval]]]

 

<Converter_number>,

 

 

that converter, the response

 

 

<Converted_Value>

value shall be the

 

 

OK

converted value.

 

AT+MMAD=

Or:

 

 

+MMAD:

 

 

<Converter_number>

 

 

<Converter_number>, <Average>

 

 

 

 

 

 

OK

If average is active on that

 

 

 

converter, and report

 

 

 

interval not seted, the

 

 

 

response value shall be the

 

 

 

latest average calculated

 

 

 

(solicited message).

 

 

 

 

April 15, 2008

G24-L AT Commands Reference Manual

3-149

Page 213
Image 213
PIONEERPOS G24-LC manual +MMAD, Query and Monitor ADC Value, April 15 G24-L AT Commands Reference Manual 149, At+Mmad=