kAnyRemote
Prev
Next

How to setup kAnyRemote from scratch

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:

0. Get bluetooth subsystem working. Your bluetooth phone should be paired already.

If You use IR connection, IrDA service should be configured and Your phone should be visible in output of irdadump utility. If You plans to use cable connection, then plug-in the cable.

1. Compile and install kAnyRemote.

Type the following:

Starting from v1.2 there are precompiled binary file src/kanyremote.precompiled supplied with archive.

2. Since kAnyRemote 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.

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

Cell phones known not to work:

4. 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 kAnyRemote.

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 kAnyRemote.

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

5. 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. kAnyRemote will try to determine model of the phone upon connecting, and can use predefined "CMER=..." commands for Motorola, Sagem, Siemens and SE phones.

6. 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.

Prev
Next
Home