New phone support

From GnokiiWiki

Jump to: navigation, search

My phone is not mentioned as supported by gnokii, but it seems that it is similar to the one of the mentioned in the supported phones list? What should I do to check this out?

It is quite simple. If you use AT compatible phone you can just use 'model = AT' in the config file. If you have Nokia and you would like to enable FBUS mode (it has more facilities then AT mode), there are few things you should do.

For example, let's say you want to check the support for Nokia 6211, which should be compatible with Nokia 6210. First, find the correct driver. The drivers are located in the common/phones/ directory within the gnokii sources:

pkot@bzzzt:~/gnokii/common/phones$ grep -n 6210 *
nk7110.c:148:      "7110|6210|6250|7190",      /* Supported models */
nk7110.c:958:   /* This is ugly hack. But the picture message format in 6210
nk7110.c:1197:  /* Nokia 6210 and family does not show not "fixed" messages from the
nk7110.c:1610:  /* 6210/7110 needs to seek the first free pos to inhabit with next note */

Line 148 in this case is the one you want as it is where we define the GSM_Phone structure. Just add new model, so the line will contain:

7110|6210|6250|7190|6211

Once this is done, look in the file common/misc.c. It contains a large phone capabilities table. Find the one for the phone that is similar to yours. In our case this is 6210:

{"6210",  "NPE-3", PM_CALLERGROUP | PM_CALENDAR | PM_SPEEDDIAL | PM_NETMONITOR | PM_EXTPBK | PM_SMS | PM_FOLDERS }

We will replace two first fields as for our phone. The second field is the phone model identifier. In most of the phones to get this type on your phone keyboard the following sequence: *#0000#. If it doesn't work search the Internet for the information. Let's say in our example that the string is NPL-3. Our line will contain:

{"6211",  "NPL-3", PM_CALLERGROUP | PM_CALENDAR | PM_SPEEDDIAL | PM_NETMONITOR | PM_EXTPBK | PM_SMS | PM_FOLDERS }

This is almost everything. If you have Linux and need to enable the IrDA connection, edit the common/devices/unixirda.c file. Find there the phone[] table. It contains the numerous Nokia models mentioned. Add your phone name there. In our case: "Nokia 6211". Recompile the sources and add "model = 6211" (according to your Nokia model) to the config and try if it works. In any case let us know (to the gnokii mailing list) about the result.

Personal tools