Hi Ronen,

At first glance, I noticed that your use of global-sender in the smsbox group is incorrect. The user guide describes how to use it, but I don't think that it's what's preventing your modem from working.

I am not using fastrack modems, but I am using modems with the wavecom chipset (Multitech GRPS). I have the speed set to 115200. I tried changing the speed for one of my modems to 9600 and found that I got the same error that you reported below. Try again with speed = 115200. Also, you will probably want to add this line to your modems group (though it would be good to look up exactly what capabilities you can use with CNMI on your particular modem):
init-string = AT+CNMI=2,2,0,1,0;+CMEE=1

The CMEE part will tell your modem to give you better error reports

hope this helps,
Nathan

Amity, Ronen wrote:

Hi All,

I am trying to configure kannel to send sms with the wavecom fastrack gsm modem (/dev/ttyS0).

Can someone help me and spot what do I miss ?

Ronen

p.s.

Here is my configuration :

Kannel.conf :

cat kannel.conf

group = core

admin-port = 13000

smsbox-port = 13001

##RR wapbox-port = 13002

admin-password = xxx

wdp-interface-name = "*"

log-file = "/var/log/kannel/bearerbox.log"

access-log = "/var/log/kannel/bearer-access.log"

group = smsc

smsc = at

modemtype = wavecom

device = /dev/ttyS0

speed = 9600

group = smsbox

bearerbox-host = localhost

sendsms-port = 13013

global-sender = 13013

log-file = "/var/log/kannel/smsbox.log"

access-log = "/var/log/kannel/sms-access.log"

group = sendsms-user

username = xxx

password = xxx

# SERVICES

group = sms-service

keyword = nop

text = "You asked nothing and I did it!"

# there should be default always

group = sms-service

keyword = default

text = "No service spesified"

group = modems

id = wavecom

name = "wavecom"

need-sleep = true

here is the log :

[EMAIL PROTECTED] etc]# /usr/sbin/bearerbox  /etc/kannel.conf

2008-03-02 16:27:32 [10679] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0

2008-03-02 16:27:32 [10679] [0] WARNING: DLR: using default 'internal' for storage type.

2008-03-02 16:27:32 [10679] [0] INFO: DLR using storage type: internal

2008-03-02 16:27:32 [10679] [0] DEBUG: Kannel bearerbox version `1.4.1'.

Build `Sep  8 2007 16:47:54', compiler `3.4.6 20060404 (Red Hat 3.4.6-8)'.

System Linux, release 2.6.9-42.ELsmp, version #1 SMP Wed Jul 12 23:27:17 EDT 2006, machine i686.

Hostname monsrv, IP 10.166.2.51.

Libxml version 2.6.16.

Using OpenSSL 0.9.7a Feb 19 2003.

Using native malloc.

2008-03-02 16:27:32 [10679] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'.

2008-03-02 16:27:32 [10679] [0] INFO: Started access logfile `/var/log/kannel/bearer-access.log'.

2008-03-02 16:27:32 [10679] [0] INFO: HTTP: Opening server at port 13000.

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)

2008-03-02 16:27:32 [10679] [0] DEBUG: starting smsbox connection module

2008-03-02 16:27:32 [10679] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)

2008-03-02 16:27:32 [10679] [0] INFO: Set SMS resend frequency to 60 seconds.

2008-03-02 16:27:32 [10679] [0] INFO: SMS resend retry set to unlimited.

2008-03-02 16:27:32 [10679] [0] INFO: DLR rerouting for smsc id <(null)> disabled.

2008-03-02 16:27:32 [10679] [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype <wavecom>

2008-03-02 16:27:32 [10679] [0] DEBUG: AT2[/dev/ttyS0]: Reading modem definitions from </etc/kannel.conf>

2008-03-02 16:27:32 [10679] [0] DEBUG: AT2[/dev/ttyS0]: Found <1> modems in config

2008-03-02 16:27:32 [10679] [0] INFO: AT2[/dev/ttyS0]: read modem definition for <wavecom>

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)

2008-03-02 16:27:32 [10679] [0] DEBUG: starting UDP sender/receiver module

2008-03-02 16:27:32 [10679] [0] INFO: Adding interface *

2008-03-02 16:27:32 [10679] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200>

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender)

2008-03-02 16:27:32 [10679] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201>

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver)

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 11 (gw/bb_udp.c:udp_sender)

2008-03-02 16:27:32 [10679] [0] DEBUG: starting wapbox connection module

2008-03-02 16:27:32 [10679] [0] ERROR: Missing wapbox-port variable, cannot start WAP

2008-03-02 16:27:32 [10679] [0] DEBUG: starting WDP router

2008-03-02 16:27:32 [10679] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 10679.

2008-03-02 16:27:32 [10679] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 10679.

2008-03-02 16:27:32 [10679] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 10679.

2008-03-02 16:27:32 [10679] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 10679.

2008-03-02 16:27:32 [10679] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 10679.

2008-03-02 16:27:32 [10679] [0] DEBUG: Started thread 12 (gw/bearerbox.c:wdp_router)

2008-03-02 16:27:32 [10679] [0] INFO: ----------------------------------------

2008-03-02 16:27:32 [10679] [0] INFO: Kannel bearerbox II version 1.4.1 starting

2008-03-02 16:27:32 [10679] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 10679.

2008-03-02 16:27:32 [10679] [6] INFO: AT2[/dev/ttyS0]: opening device

2008-03-02 16:27:32 [10679] [6] DEBUG: AT2[/dev/ttyS0]: device opened

2008-03-02 16:27:32 [10679] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 10679.

2008-03-02 16:27:32 [10679] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 10679.

2008-03-02 16:27:32 [10679] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 10679.

2008-03-02 16:27:32 [10679] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) maps to pid 10679.

2008-03-02 16:27:32 [10679] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) maps to pid 10679.

2008-03-02 16:27:32 [10679] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) maps to pid 10679.

2008-03-02 16:27:32 [10679] [12] DEBUG: udp_die: removing producers from udp-lists

2008-03-02 16:27:32 [10679] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) terminates.

2008-03-02 16:27:32 [10679] [7] DEBUG: sms_router: time to sleep 30.00 secs.

2008-03-02 16:27:32 [10679] [0] INFO: MAIN: Start-up done, entering mainloop

2008-03-02 16:27:32 [10679] [0] DEBUG: AT2[/dev/ttyS0]: start called

2008-03-02 16:27:32 [10679] [7] DEBUG: sms_router: gwlist_len = 0

2008-03-02 16:27:33 [10679] [6] DEBUG: AT2[/dev/ttyS0]: device opened

2008-03-02 16:27:33 [10679] [6] INFO: AT2[/dev/ttyS0]: init device

2008-03-02 16:27:33 [10679] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600

2008-03-02 16:27:33 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M

2008-03-02 16:27:37 [10679] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to ATZ, ignoring

2008-03-02 16:27:37 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2008-03-02 16:27:41 [10679] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to AT. Trying again

2008-03-02 16:27:41 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2008-03-02 16:27:45 [10679] [6] ERROR: AT2[/dev/ttyS0]: Second attempt to send AT failed

2008-03-02 16:27:45 [10679] [6] ERROR: AT2[/dev/ttyS0]: Opening failed. Terminating

2008-03-02 16:27:45 [10679] [6] INFO: AT2[/dev/ttyS0]: closing device

2008-03-02 16:27:45 [10679] [6] INFO: AT2[/dev/ttyS0]: opening device

2008-03-02 16:27:45 [10679] [6] DEBUG: AT2[/dev/ttyS0]: device opened

2008-03-02 16:27:46 [10679] [6] DEBUG: AT2[/dev/ttyS0]: device opened

2008-03-02 16:27:46 [10679] [6] INFO: AT2[/dev/ttyS0]: init device

2008-03-02 16:27:46 [10679] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600

2008-03-02 16:27:46 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M

2008-03-02 16:27:50 [10679] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to ATZ, ignoring

2008-03-02 16:27:50 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2008-03-02 16:27:54 [10679] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to AT. Trying again

2008-03-02 16:27:54 [10679] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M

Reply via email to