Analog digital converters measurements +adc, Mobile equipment event reporting +cmer – Multi-Tech Systems CDMA Wireless Modem User Manual

Page 96

Advertising
background image

Chapter 14 – Specific AT Commands

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

96

Analog Digital Converters Measurements +ADC

Description: This command returns the current raw value of the specified ADC data item. Two external

and four internal items can be queried.

VBATT

Battery voltage (+Vbatt) being supplied to the Modem.

THERM

Thermistor level (internal temperature) of the Modem.

HDET

Internal

test

use

only.

ADC_0

External general-purpose user defined input (pin 33).

ADC_1

External general-purpose user defined input (pin 38).

ADC_CHG_MON Battery charger monitor (CHG_IN).

Values:

<item>

0: VBATT: 0 to 2.5 volts. Returned value = (+V_BAT*256)/(2.5*2.5) Range: 0-255
1: THERM: 100 °C (68) to –40 °C (240). Returned value = (vt*256)/2.5 vt = -0.012*T +
1.864 “T” is thermistor temperature in °Celsius. Range: 68-240 or
-1.2288 °C per step.
2: HDET: Internal use. Value range: 0-255
3: ADC_0: 0 to 2.5 volts. Value = (Vadc*256)/2.5 Value range: 0-255
4: ADC_1: 0 to 2.5 volts. Value = (Vadc*256)/2.5 Value range: 0-255
5: ADC_CHG_MON: 0 to 4.2 volts. Value = (CHG_IN*256)/4.2 Value range: 0-255

Syntax:

Command syntax: AT+ADC=<item>

Command

Possible Responses

AT+ADC=0
Note: Select VBATT

+ADC: 211
OK
Note: raw value for VBATT (~2.29 volts)

AT+ADC=1
Note: Select THERM

+ADC: 94
OK
Note: raw thermistor temperature (~34 ° C)

AT+ADC=?
Note: Ask for the list of possible
values

+ADC: (0-5)
Note: possible values 0 –5

AT+ADC?
Note: Ask for the current item
selected

+ADC: 1
OK
Note: THERM selected

Mobile Equipment Event Reporting +CMER

Description: This command enables or disables the sending of unsolicited result codes in the case of a

key press.

Values:

<keyp> (keypad) :

0: No keypad event reporting.
1: Keypad events are reporting using the unsolicited response: +CKEV: <key>, <press>.
See Chapter 3, Key Press or Release, for more information on +CKEV.

Syntax:

Command syntax: AT+CMER=<keyp>

Command

Possible Responses

AT+CMER?
Note: Display current setting.

+CMER: 0
OK
Note: Keypad event reporting disabled.

AT+CMER=1
Note: Enable keypad event reporting.

OK
Note: Keypad event reporting enabled.

Advertising