AT Commands Reference
206 98-08901C68-O
4.11.1.3 +MKPD, Auxiliary Keypad Control
This command enables accessories to control the press and release of key presses. This command uses virtual keycodes, which
may not be supported by all members of the g20 product family. If a key is not supported by a g20, the g20 returns a +CME
ERROR: indicating that error 25 (Invalid character) has occurred.
Only a single key may be pressed at a given time. Sending in a new key press without releasing the previous key results in the
previous key being automatically released.
Set Command
The following table shows the +MKPD parameters.
Example
AT+MKPD=m,1 //Emulate pressing the MENU button
OK
+CKEV: M,1 //If +CMER is configured to echo and phone not locked
AT+MKPD=m,0 //Emulate releasing the MENU button
OK
+CKEV: M,0
Command Response/Action
+MKPD=<key>,<state> OK
or:
+CME ERROR: <err>
Table 100. +MKPD Parameters
<Parameter> Description
<state> Key press state
0 Release
1Press
<key> Virtual keycodes, described in Table 99, “Character Codes”
on page 204