Hi, I'm trying to connect my nokia 6021 with kannel, I feel like i have try it 
all, but seems imposible to connect it, wvdialconf tells me this:


Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

I tryied : "dmesg | grep tty" and indicates that the cable is conected to 
ttyUSB0:

[27899.582333] pl2303 ttyUSB1: pl2303 converter now disconnected from ttyUSB1
[27938.276150] usb 2-1.2: pl2303 converter now attached to ttyUSB0

my kannel configuration is this:

# CORE
group = core
admin-port = 13000
admin-password = playsms
status-password = playsms
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100
box-allow-ip = "127.0.0.1"

# SMSBOX
group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+ "
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log

group = smsbox-route
smsbox-id = mysmsc
smsc-id = "default"
shortcode = "*"

group = smsc
smsc = at
smsc-id = default
allowed-smsc-id = default
preferred-smsc-id = default
modemtype = nokiaphone
device = /dev/ttyUSB1
log-file = /var/log/kannel/smsc.log
log-level = 0
pin = 1111
sim-buffering = true
speed = 0

#Nokia Modem
group = modems
id = nokiaphone
name = nokiaphone
detect-string = "NOKIA"
#detect-string2 = "6021"
init-string = "AT+CNMI=0,0,0,0,0"
need-sleep = false
keepalive-cmd = "AT+CBC;+CSQ"
message-storage = SM
speed = 0

# SENDSMS-USER
group = sendsms-user
default-smsc = default
username = playsms
password = playsms
max-messages = 3
concatenation = true

# SMS SERVICE 'default'
group = sms-service
keyword = default
omit-empty = true
max-messages = 1000000
get-url = 
"http://127.0.0.1/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q";



The smsc log gives me this:

2012-07-11 20:05:00 [22394] [6] DEBUG: AT2[default]: detecting modem speed.
2012-07-11 20:05:00 [22394] [6] INFO: AT2[default]: opening device
2012-07-11 20:05:00 [22394] [6] DEBUG: AT2[default]: device opened. Telnet mode 
= 0
2012-07-11 20:05:00 [22394] [6] DEBUG: AT2[default]: device opened
2012-07-11 20:05:00 [22394] [6] INFO: AT2[default]: speed set to 115200
2012-07-11 20:05:00 [22394] [6] DEBUG: AT2[default]: --> ^M
2012-07-11 20:05:02 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:06 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:10 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:14 [22394] [6] INFO: AT2[default]: Closing device
2012-07-11 20:05:14 [22394] [6] INFO: AT2[default]: opening device
2012-07-11 20:05:14 [22394] [6] DEBUG: AT2[default]: device opened. Telnet mode 
= 0
2012-07-11 20:05:14 [22394] [6] DEBUG: AT2[default]: device opened
2012-07-11 20:05:14 [22394] [6] INFO: AT2[default]: speed set to 57600
2012-07-11 20:05:14 [22394] [6] DEBUG: AT2[default]: --> ^M
2012-07-11 20:05:16 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:20 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:24 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:28 [22394] [6] INFO: AT2[default]: Closing device
2012-07-11 20:05:28 [22394] [6] INFO: AT2[default]: opening device
2012-07-11 20:05:28 [22394] [6] DEBUG: AT2[default]: device opened. Telnet mode 
= 0
2012-07-11 20:05:28 [22394] [6] DEBUG: AT2[default]: device opened
2012-07-11 20:05:28 [22394] [6] INFO: AT2[default]: speed set to 38400
2012-07-11 20:05:28 [22394] [6] DEBUG: AT2[default]: --> ^M
2012-07-11 20:05:30 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:34 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:38 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:42 [22394] [6] INFO: AT2[default]: Closing device
2012-07-11 20:05:42 [22394] [6] INFO: AT2[default]: opening device
2012-07-11 20:05:42 [22394] [6] DEBUG: AT2[default]: device opened. Telnet mode 
= 0
2012-07-11 20:05:42 [22394] [6] DEBUG: AT2[default]: device opened
2012-07-11 20:05:42 [22394] [6] INFO: AT2[default]: speed set to 19200
2012-07-11 20:05:42 [22394] [6] DEBUG: AT2[default]: --> ^M
2012-07-11 20:05:44 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:48 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:52 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:05:56 [22394] [6] INFO: AT2[default]: Closing device
2012-07-11 20:05:56 [22394] [6] INFO: AT2[default]: opening device
2012-07-11 20:05:56 [22394] [6] DEBUG: AT2[default]: device opened. Telnet mode 
= 0
2012-07-11 20:05:56 [22394] [6] DEBUG: AT2[default]: device opened
2012-07-11 20:05:56 [22394] [6] INFO: AT2[default]: speed set to 9600
2012-07-11 20:05:56 [22394] [6] DEBUG: AT2[default]: --> ^M
2012-07-11 20:05:58 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:06:02 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:06:06 [22394] [6] DEBUG: AT2[default]: --> AT^M
2012-07-11 20:06:10 [22394] [6] INFO: AT2[default]: Closing device
2012-07-11 20:06:10 [22394] [6] INFO: AT2[default]: cannot detect speed
2012-07-11 20:06:10 [22394] [6] ERROR: AT2[default]: Couldn't connect (retrying 
in 10 seconds).


I also tried setting diferent speeds, and leaving modemtype blank.

I read a couple of threats from a gay that says he conected his nokia 6021 but 
doesn't say how, can somebody please help me with this issue?

Thank you for advance.

Esteban Santillan
[email protected]

Reply via email to