Hello list.

I have a huge problems, so if anyone can help, i will appreciate it. I am
using Debian stable on Celeron 400mhz with Siemens TC35i terminal GSM modem.
Here is the problem:

2004-06-01 19:53:43 [0] INFO: Kannel bearerbox II version 1.2.1 starting
2004-06-01 19:53:43 [0] INFO: Loading store file /tmp/storeSMS.file
2004-06-01 19:53:43 [0] INFO: Store-file size 0, starting to unpack
2004-06-01 19:53:43 [0] INFO: Retrieved 0 messages, non-acknowledged
messages: 0
2004-06-01 19:53:43 [0] INFO: MAIN: Start-up done, entering mainloop
2004-06-01 19:53:43 [0] DEBUG: AT2[modem]: start called
2004-06-01 19:53:43 [7] DEBUG: sms_router: list_len = 0
2004-06-01 19:53:43 [12] DEBUG: udp_die: removing producers from udp-lists
2004-06-01 19:53:43 [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router)
terminates.
2004-06-01 19:53:44 [6] DEBUG: AT2[modem]: device opened
2004-06-01 19:53:44 [6] INFO: AT2[modem]: init device
2004-06-01 19:53:44 [6] INFO: AT2[modem]: speed set to 9600
2004-06-01 19:53:44 [6] DEBUG: AT2[modem]: --> AT^M
2004-06-01 19:53:48 [6] DEBUG: AT2[modem]: --> AT^M
2004-06-01 19:53:52 [6] ERROR: AT2[modem]: no answer from modem
2004-06-01 19:53:52 [6] ERROR: AT2[modem]: Opening failed. Terminating
2004-06-01 19:53:52 [6] INFO: AT2[modem]: closing device
2004-06-01 19:53:52 [6] DEBUG: Thread 6
(gw/smsc/smsc_at2.c:at2_device_thread) terminates.

at these lines:
2004-06-01 19:53:44 [6] DEBUG: AT2[modem]: --> AT^M
2004-06-01 19:53:48 [6] DEBUG: AT2[modem]: --> AT^M

modem on serial port replies with OK, but kannel seems not to reach it.
(kermit)

now i got to this:
elarm:~# /usr/sbin/bearerbox /etc/kannel/kannel.conf
2004-06-03 21:01:57 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2004-06-03 21:01:57 [0] DEBUG: Loading include file `/etc/modems.conf' (on
line
56 of file /etc/kannel/kannel.conf).
2004-06-03 21:01:57 [0] WARNING: DLR: using default 'internal' for storage
type.
2004-06-03 21:01:57 [0] DEBUG: Kannel bearerbox version `1.2.1'.
System Linux, release 2.4.18-bf2.4, version #1 Son Apr 14 09:53:28 CEST
2002, ma
chine i686.
Hostname elarm, IP 127.0.0.1.
Libxml version 20507.
Using OpenSSL 0.9.7b 10 Apr 2003.
Using MySQL 3.23.56.
Using native malloc.

2004-06-03 21:01:57 [0] INFO: Added logfile `/var/log/kannel/bearerbox.log'
with
 level `0'.
2004-06-03 21:01:57 [0] INFO: Started access logfile
`/var/log/kannel/kannel-acc
ess.log'.
2004-06-03 21:01:57 [0] DEBUG: Started thread 1
(gw/bb_store.c:store_cleanup)
2004-06-03 21:01:57 [0] DEBUG: HTTP: Opening server at port 13000.
2004-06-03 21:01:57 [0] DEBUG: Started thread 2 (gwlib/fdset.c:poller)
2004-06-03 21:01:57 [0] DEBUG: Started thread 3 (gwlib/http.c:server_thread)
2004-06-03 21:01:57 [0] DEBUG: Started thread 4 (gw/bb_http.c:httpadmin_run)
2004-06-03 21:01:57 [0] DEBUG: starting smsbox connection module
2004-06-03 21:01:57 [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2004-06-03 21:01:57 [0] INFO: AT2[modem]: configuration doesn't show
modemtype.
will autodetect
2004-06-03 21:01:57 [0] DEBUG: Started thread 6
(gw/smsc/smsc_at2.c:at2_device_t
hread)
2004-06-03 21:01:57 [6] DEBUG: AT2[modem]: detecting modem type
2004-06-03 21:01:57 [6] INFO: AT2[modem]: opening device
2004-06-03 21:01:57 [6] DEBUG: AT2[modem]: device opened
2004-06-03 21:01:57 [6] INFO: AT2[modem]: speed set to 9600
2004-06-03 21:01:57 [6] DEBUG: AT2[modem]: --> ^M
2004-06-03 21:01:57 [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2004-06-03 21:01:57 [0] INFO: ----------------------------------------
2004-06-03 21:01:57 [0] INFO: Kannel bearerbox II version 1.2.1 starting
2004-06-03 21:01:57 [0] INFO: Loading store file /tmp/storeSMS.file
2004-06-03 21:01:57 [0] INFO: Store-file size 0, starting to unpack
2004-06-03 21:01:57 [0] INFO: Retrieved 0 messages, non-acknowledged
messages: 0
2004-06-03 21:01:57 [0] INFO: MAIN: Start-up done, entering mainloop
2004-06-03 21:01:57 [0] DEBUG: AT2[modem]: start called
2004-06-03 21:01:57 [7] DEBUG: sms_router: time to sleep
2004-06-03 21:01:57 [7] DEBUG: sms_router: list_len = 0
2004-06-03 21:01:59 [6] DEBUG: AT2[modem]: --> AT^M
2004-06-03 21:02:03 [6] DEBUG: AT2[modem]: --> AT&F^M
2004-06-03 21:02:07 [6] DEBUG: Thread 6
(gw/smsc/smsc_at2.c:at2_device_thread) t
erminates.



My kannel.conf:
----------------------------------------------------
group = core
admin-port = 13000
admin-password = elarm
# admin-deny-ip = "*.*.*.*"
# admin-allow-ip = ""
#wapbox-port = 9201
#wapbox-port = 13002
smsbox-port = 13001
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1;212.93.228.*"
box-allow-ip = "*"
unified-prefix
="-,+38641,041;-,+38631,031;-,+38640,040;-,+38670,070;-,+38651,051;"
access-log= "/var/log/kannel/kannel-access.log"
store-file = "/sms"
#dlr-storage = mysql

#group = wapbox
#bearerbox-host = genera.cust.moj.net
#log-file = "/var/log/kannel/wapbox.log"
#log-level = 3

group = smsbox
bearerbox-host = localhost
# http port
sendsms-port = 13005
sendsms-chars = "0123456789 "
global-sender = +38640423288
#access-log = "/var/log/kannel/kannel-sms-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/smsaccess.log"
#reply-emptymessage = "GENERA Lynx d.o.o. Ljubljana"

group = smsc
smsc = at2
smsc-id = modem
modemtype = Ssiemens_tc35i
modemtype = auto
device = /dev/ttyS0
speed = 9600
#speed = 19200
pin = 4342
my-number = +38640423288
sms-center = +38641001333
include = "/etc/modems.conf"



modems.conf
----------------------------------------------------
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"

group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true

group = modems
id = Ssiemens_tc35i
name = "Siemens TC35i"
detect-string = "SIEMENS"
detect-string2 = "TC35i"
#init-string = "ATEO+CNMI=2,0,0,2,1"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 9600
enable-hwhs = "AT\\Q1"   #Q3 not working either
need-sleep = false

group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 9600
#speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true

----------------------------------------------------

elarm:~# stty -a -F /dev/ttyS0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext =
^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

----------------------------------------------------

elarm:~# setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
--> Same as in BIOS

kermit works only after "set carrier-watch off". May this be the problem?
Where to set it permanently?

Any answers will be appreciated. I know that TC35terminal (without the i)
works fine.

Best regards,

Nejc Menard
Slovenia




Reply via email to