Hi ,
I finally cud connect nokia 3230 GSM phone (symbian OS) and kannel with bluetooth !! But somehow i'm getting errors in bearbox ,when i accept (pressing yes option) connection request made by computer on my nokia 3230 phone

My bearbox log :

./bearerbox -V 1 xxx.conf
2006-11-07 00:12:16 [7290] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 1 2006-11-07 00:12:16 [7290] [0] WARNING: DLR: using default 'internal' for storage type.
2006-11-07 00:12:16 [7290] [0] INFO: DLR using storage type: internal
2006-11-07 00:12:16 [7290] [0] DEBUG: Kannel bearerbox version `1.4.1'.
Build `Nov 3 2006 16:16:49', compiler `3.3.5 20050117 (prerelease) (SUSE Linux)'. System Linux, release 2.6.11.4-20a-default, version #1 Wed Mar 23 21:52:37 UTC 2005, machine i686.
Hostname xxxxxxx, IP 10.0.0.27.
Libxml version 2.6.17.
Using native malloc.

2006-11-07 00:12:16 [7290] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. 2006-11-07 00:12:16 [7290] [0] INFO: SSL not supported, no SSL initialization done.
2006-11-07 00:12:16 [7290] [0] INFO: HTTP: Opening server at port 13000.
2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2006-11-07 00:12:16 [7290] [0] DEBUG: starting smsbox connection module
2006-11-07 00:12:16 [7290] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2006-11-07 00:12:16 [7290] [0] INFO: Set SMS resend frequency to 60 seconds.
2006-11-07 00:12:16 [7290] [0] INFO: SMS resend retry set to unlimited.
2006-11-07 00:12:16 [7290] [0] INFO: DLR rerouting for smsc id <nokia_smsc> disabled. 2006-11-07 00:12:16 [7290] [0] INFO: AT2[nokia_smsc]: configuration shows modemtype <nokiaphone> 2006-11-07 00:12:16 [7290] [0] DEBUG: AT2[nokia_smsc]: Reading modem definitions from <kannel2.conf> 2006-11-07 00:12:16 [7290] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 7290. 2006-11-07 00:12:16 [7290] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 7290. 2006-11-07 00:12:16 [7290] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 7290. 2006-11-07 00:12:16 [7290] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 7290. 2006-11-07 00:12:16 [7290] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 7290. 2006-11-07 00:12:16 [7290] [0] DEBUG: AT2[nokia_smsc]: Found <1> modems in config 2006-11-07 00:12:16 [7290] [0] INFO: AT2[nokia_smsc]: read modem definition for <Nokia Phone> 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2006-11-07 00:12:16 [7290] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2006-11-07 00:12:16 [7290] [0] INFO: ---------------------------------------- 2006-11-07 00:12:17 [7290] [0] INFO: Kannel bearerbox II version 1.4.1 starting
2006-11-07 00:12:17 [7290] [0] INFO: MAIN: Start-up done, entering mainloop

2006-11-07 00:12:17 [7290] [0] DEBUG: AT2[nokia_smsc]: start called
2006-11-07 00:12:17 [7290] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 7290.
2006-11-07 00:12:17 [7290] [6] INFO: AT2[nokia_smsc]: opening device
2006-11-07 00:12:17 [7290] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 7290.
2006-11-07 00:12:17 [7290] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2006-11-07 00:12:17 [7290] [7] DEBUG: sms_router: gwlist_len = 0
2006-11-07 00:12:37 [7290] [6] ERROR: AT2[nokia_smsc]: open failed! ERRNO=112
2006-11-07 00:12:37 [7290] [6] ERROR: System error 112: Host is down
2006-11-07 00:12:37 [7290] [6] ERROR: AT2[nokia_smsc]: at2_device_thread: open_at2_device failed. Terminating
2006-11-07 00:12:37 [7290] [6] ERROR: System error 112: Host is down
2006-11-07 00:12:37 [7290] [6] INFO: AT2[nokia_smsc]: opening device
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:12:59 [7290] [6] INFO: AT2[nokia_smsc]: init device
2006-11-07 00:12:59 [7290] [6] INFO: AT2[nokia_smsc]: speed set to 9600
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> ATZ^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- AT
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT&F^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- AT&F
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> ATE0^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- ATE0
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT+IFC=2,2^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT+CMGF=0^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT+CMGF=0^M
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:12:59 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT+CSMS=?^M
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- +CSMS: (0)
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- OK
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT+CNMI=1,2,0,0,0^M
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: <-- ERROR
2006-11-07 00:13:00 [7290] [6] ERROR: AT2[nokia_smsc]: Generic error: ERROR
2006-11-07 00:13:00 [7290] [6] ERROR: AT2[nokia_smsc]: Opening failed. Terminating
2006-11-07 00:13:00 [7290] [6] INFO: AT2[nokia_smsc]: closing device
2006-11-07 00:13:00 [7290] [6] INFO: AT2[nokia_smsc]: opening device
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:13:00 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute
2006-11-07 00:13:00 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:13:00 [7290] [6] INFO: AT2[nokia_smsc]: init device
2006-11-07 00:13:00 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute
2006-11-07 00:13:00 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:00 [7290] [6] INFO: AT2[nokia_smsc]: speed set to 9600
2006-11-07 00:13:00 [7290] [6] DEBUG: AT2[nokia_smsc]: --> ATZ^M
2006-11-07 00:13:00 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:13:00 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:04 [7290] [6] ERROR: AT2[nokia_smsc]: Wrong or no answer to ATZ, ignoring
2006-11-07 00:13:04 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT^M
2006-11-07 00:13:04 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:13:04 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:08 [7290] [6] ERROR: AT2[nokia_smsc]: Wrong or no answer to AT. Trying again
2006-11-07 00:13:08 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT^M
2006-11-07 00:13:08 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:13:08 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:12 [7290] [6] ERROR: AT2[nokia_smsc]: Second attempt to send AT failed 2006-11-07 00:13:12 [7290] [6] ERROR: AT2[nokia_smsc]: Opening failed. Terminating
2006-11-07 00:13:12 [7290] [6] INFO: AT2[nokia_smsc]: closing device
2006-11-07 00:13:12 [7290] [6] INFO: AT2[nokia_smsc]: opening device
2006-11-07 00:13:42 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:13:42 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute
2006-11-07 00:13:42 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:13:42 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:14:24 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:14:24 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute
2006-11-07 00:14:24 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:14:24 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:14:24 [7290] [6] INFO: AT2[nokia_smsc]: init device
2006-11-07 00:14:24 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute
2006-11-07 00:14:24 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:14:24 [7290] [6] INFO: AT2[nokia_smsc]: speed set to 9600
2006-11-07 00:14:24 [7290] [6] DEBUG: AT2[nokia_smsc]: --> ATZ^M
2006-11-07 00:14:24 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:14:24 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:14:28 [7290] [6] ERROR: AT2[nokia_smsc]: Wrong or no answer to ATZ, ignoring
2006-11-07 00:14:28 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT^M
2006-11-07 00:14:28 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:14:28 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:14:32 [7290] [6] ERROR: AT2[nokia_smsc]: Wrong or no answer to AT. Trying again
2006-11-07 00:14:32 [7290] [6] DEBUG: AT2[nokia_smsc]: --> AT^M
2006-11-07 00:14:32 [7290] [6] ERROR: AT2[nokia_smsc]: Couldnot write to device.
2006-11-07 00:14:32 [7290] [6] ERROR: System error 5: Input/output error
2006-11-07 00:14:36 [7290] [6] ERROR: AT2[nokia_smsc]: Second attempt to send AT failed 2006-11-07 00:14:36 [7290] [6] ERROR: AT2[nokia_smsc]: Opening failed. Terminating
2006-11-07 00:14:36 [7290] [6] INFO: AT2[nokia_smsc]: closing device
2006-11-07 00:14:36 [7290] [6] INFO: AT2[nokia_smsc]: opening device
2006-11-07 00:15:06 [7290] [6] DEBUG: AT2[nokia_smsc]: device opened
2006-11-07 00:15:06 [7290] [6] ERROR: AT2[nokia_smsc]: at_data_link: fail to set termios attribute




My Config file looks something like this :



group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "10.0.0.27"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs


# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!

#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1

# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 10.0.0.27
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsaccess.log"

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

#Nokia Modem

# SMSC GSM
group = smsc
smsc = at
smsc-id = nokia_smsc
modemtype = nokiaphone
device = /dev/rfcomm0
speed = 9600
pin = 123456


group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
init-string = "AT+CNMI=1,2,0,0,0"
speed = 115200
enable-hwhs = "AT+IFC=2,2"
need-sleep = false
no-pin = true
no-smsc = false
sendline-sleep = 100
keepalive-cmd = "AT+CBC;+CSQ"
broken = true
message-storage = "ME"
enable-mms = true

Reply via email to