Prev
Next

How to setup anyRemote (AT-style)

Some definitions:

AT+CKPD command: AT command which emulate phone keypad

AT+CMER command: AT command which enables/disables unsolicited event codes for key presses, display changes and indicator state changes

CKPD key: CKPD command has the following format AT+CKPD="X", where "X" is key-kode for button to emulate. So, CKPD key is "X"

CKPD sequence - sequence of CKPD keys.

Step by step setup:

1. Since anyRemote will try to determine phone model automatically it is good idea to try any of configurational file from cfg-example directory. I hope it will works out-of-the box for Motorola, Siemens and SE users. If you was not lucky please read further.

2. Firstly it needs to verify will You phone works with anyRemote at all. Cell phones known to work:

Cell phones known not to work:

3. Run terminal emulator (Minicom or cu) and connect to Your cell phone.

For example(Bluetooth):

or (IR):

or (cable):

It should answers "Connected."

Enter AT or ATZ and get answer "OK"

Enter AT+CMER=? and get something like:

or just

If You got "ERROR" on "AT+CMER=..." seems Your cell phone will not work with anyRemote.

Also, it seems phone does not support keycode "echo" mode if answer looks like (second item is "(0)"):

Enter

and get answer or

If You got "OK" - did You see "1" on the screen of Your cell phone ? (Sagem users should use AT+CKPD="49" instead)

If You got "ERROR" on "AT+CKPD=..." Your will not be able to send keyboard emulation command to Your phone from anyRemote.

I hope You've got "OK" on both of these questions :)

4. Determine exact format of "AT+CMER=x,x,x,x,x" command

This command swith Your phone to "echo" mode - phone will starts to send codes of pressed keys over bluetooth.

So, enter, say:

AT+CMER=3,1,0,0,0 and get "OK",then press button "1" on the phone keyboard.

You should in terminal emulator see something like:

or

Try to find variant of "CMER=..." command which will work fo You.

Seems switch-off "echo" mode command is similar for all phones (at least for Motorola, Siemens, Sagem and SE), it is

CMER=3,0,0,0,0

The value You've found should be specified in configuration file. anyRemote will try to determine model of the phone upon connecting, and can use predefined "CMER=..." commands for Motorola, Sagem, Siemens and SE phones.

5. Create "dictionary" of key codes.

One-by-one press all keys on the phone keyboard and inspect corresponding +CKEV codes in terninal emulator window. That codes will be used in configuration file.There are exists such files for SE,Motorola, Siemens, Benq-Siemens and Sagem phones. That files could be found in keymaps/ directory.

Prev
Next
Home