Hi all,
I have been searching this mailing archive/list for a coulpe days now to see if this question has been asked before, alas, I could not find anything relative. I have attempted this on RedHat 9 and SuSE 8.2 (both patched and up to date. I have attempted kannel version 1.2.1 and kannel v 1.3.1 and the problem is still there. I have a Nokia 6210 mobile with a DUA9 data cable attached to /dev/ttyS0 of the linux box. My kannel configuration file has the following modem and smsc group configuration:
# MODEM CONFIGURATION
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true
# SMSC CONNECTIONS
group = smsc
smsc = at2
modemtype = nokiaphone
device = /dev/ttyS0
keepalive = true
speed = 19200
However when I fire up bearer box it appears that bearer cannot initialize/connect to the fone, here's my bearerbox debug output:
ember:/usr/local/sbin # ./bearerbox ../etc/sms.conf
2004-02-27 11:35:28 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2004-02-27 11:35:29 [0] WARNING: DLR: using default 'internal' for storage type.
2004-02-27 11:35:29 [0] DEBUG: Kannel bearerbox version `1.3.1'.
System Linux, release 2.4.20-4GB, version #1 Sat Feb 7 02:07:16 UTC 2004, machine i686.
Hostname ember.xxx.xxx.xxxxx.xxx, IP xx.xxx.x.xx.
Libxml version 20503.
Using native malloc.
2004-02-27 11:35:29 [0] INFO: SSL not supported, no SSL initialization done.
2004-02-27 11:35:29 [0] DEBUG: HTTP: Opening server at port 13000.
2004-02-27 11:35:29 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2004-02-27 11:35:29 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2004-02-27 11:35:29 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2004-02-27 11:35:29 [0] DEBUG: starting smsbox connection module
2004-02-27 11:35:29 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2004-02-27 11:35:29 [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype <nokiaphone>
2004-02-27 11:35:29 [0] DEBUG: AT2[/dev/ttyS0]: Reading modem definitions from <../etc/sms.conf>
2004-02-27 11:35:29 [0] DEBUG: AT2[/dev/ttyS0]: Found <1> modems in config
2004-02-27 11:35:29 [0] INFO: AT2[/dev/ttyS0]: read modem definition for <Nokia Phone>
2004-02-27 11:35:29 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
2004-02-27 11:35:29 [5] INFO: AT2[/dev/ttyS0]: opening device
2004-02-27 11:35:29 [5] DEBUG: AT2[/dev/ttyS0]: device opened
2004-02-27 11:35:29 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
2004-02-27 11:35:29 [0] INFO: ----------------------------------------
2004-02-27 11:35:29 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2004-02-27 11:35:29 [0] INFO: MAIN: Start-up done, entering mainloop
2004-02-27 11:35:29 [0] DEBUG: AT2[/dev/ttyS0]: start called
2004-02-27 11:35:29 [6] DEBUG: sms_router: time to sleep
2004-02-27 11:35:29 [6] DEBUG: sms_router: list_len = 0
2004-02-27 11:35:30 [5] DEBUG: AT2[/dev/ttyS0]: device opened
2004-02-27 11:35:30 [5] INFO: AT2[/dev/ttyS0]: init device
2004-02-27 11:35:30 [5] INFO: AT2[/dev/ttyS0]: speed set to 19200
2004-02-27 11:35:30 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M
The output of the status.html admin web command is:
Kannel bearerbox version `1.3.1'. System Linux, release 2.4.20-4GB, version #1 Sat Feb 7 02:07:16 UTC 2004, machine i686. Hostname ember.xxx.xxx.xxxxx.xxx, IP xx.xxx.x.xx. Libxml version 20503. Using native malloc.
Status: running, uptime 0d 0h 1m 41s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size 0
SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
DLR: 0 queued, using internal storage
No boxes connected
SMSC connections:
unknown AT2[/dev/ttyS0] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs)
The SMSC connections *always* appears to be in the connecting state....
Does anyone have any suggestions that I could follow to see if where I may be going wrong, I also read something about a serial port workaround somewhere in the README file, but could not find the details on what to actually do to "workaround" the serialport hangup issue, I'm not sure if this is related though. Do you recommend using the DUA9 cable or the DLR-3/DLR-3P cables for this kind of configuration. We are hoping to connect 2 Nokia 6210's to this box but if I cannot get the first one working, then I'm in a bind.
Thanks
Bruce
