Motorola G24 Benutzerhandbuch

Seite von 642
Chapter 3:  AT Commands Reference
 December  31, 2007
AT Commands Reference Manual
3-213
Example
AT+MPSU?
 +MPSU: 0
OK
AT+MPSU=?
+MPSU: (0-2)
OK
AT+MPSU=2
OK
/* reset and after it UART2 is open for full functionality */
+MIOC, Motorola I/O Configure
This command defines the G24 8 GPIO pins data value. The feature is flex enabled or disabled.
This command is a basic command.
The feature is active by default, however, changing the FLEX can eliminate it.
Note:
Support of the GPIO pins comes instead of supporting the keypad of the Evaluation 
board.
Command 
Type
Syntax
Response/Action
Remarks
Set
AT+MIOC=<Pin 
selection>,<Data vector>
OK
or:
+CME ERROR: <err>
The set command defines the logic 
value of selected pins to high or low 
when pin is configured as output.
The G24 saves the new setting in flex. 
Only selected pins are affected. Set 
action is allowed only for pins 
configured as output.
In case <Data vector> includes values 
of input pins, those values will be 
ignored. In case <pin selection> 
includes input pins, an error will be 
issued "Operation not allowed". No 
action will take place.
Read
+ MIOC?
+MIOC: <Data vector>
OK
The read command returns the actual 
logical value of the 8 GPIO pins.
Test
+ MIOC=?
+MIOC: (list of 
supported <Pin 
selection>s),(list of 
supported <Data 
vector>s)
OK
or:
+CME ERROR: <err>
The test command returns the possible 
ranges of <Pin selection>s and <Data 
vector>s.