Saturday, January 26, 2013

Configuring Kannel with GSM modem

These is sample config for Alcatel X200L(1bbb:0017) We assume that you have setup you modem(for example you have your modem at /dev/ttyUSB0-4)

1. Add kannel to dialout group (/etc/groups)
2. Config some stuff:
/etc/kannel/kannel.conf:
/etc/kannel/modems.conf:
Important params:

* device - You should find out on what device you can access the modem with AT commands. So we try all of them from 0 to 4. This device works with 3 and 4.

* init-string - this one is extremely important. If it is not correct you even may not connect to the modem, can't send a message or can't receive DLRs. If you get "got +CMT but pdu_extract failed" message when receive a DLR it is highly possible that the init-string is not the correct one for your device.