Hello Alvaro,
Thank you for your advise!
I added sim-buffering in smsc and the init-string and now
I receive the sms in sim memory and ONLY the first sms, after my modem
give me this error:
01-26 23:08:45 [10931] [0] INFO: ----------------------------------------
2010-01-26 23:08:45 [10931] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-01-26 23:08:45 [10931] [0] INFO: MAIN: Start-up done, entering mainloop
2010-01-26 23:08:46 [10931] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-26 23:08:51 [10931] [5] INFO: Client connected from <127.0.0.1>
2010-01-26 23:08:52 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 23:08:52 [10931] [7] INFO: AT2[/dev/ttyUSB0]: detect speed is
115200
2010-01-26 23:08:52 [10931] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 23:08:53 [10931] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-26 23:08:53 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-26 23:08:53 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 23:08:53 [10931] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 23:08:53 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-26 23:08:54 [10931] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-26 23:08:54 [10931] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-26 23:08:55 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-26 23:08:55 [10931] [7] INFO: AT2[/dev/ttyUSB0]: AT SMSC
successfully opened.*
2010-01-26 23:10:05 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 23:10:05 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-26 23:10:15 [10931] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 23:10:15 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-26 23:10:15 [10931] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-26 23:10:15 [10931] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-26 23:10:19 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Wrong or no
answer to ATZ, ignoring
2010-01-26 23:10:23 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Wrong or no
answer to AT. Trying again
2010-01-26 23:10:27 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Second attempt
to send AT failed
2010-01-26 23:10:27 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Initialization
of device failed.
2010-01-26 23:10:27 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Closing device*
2010-01-26 23:10:27 [10931] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-26 23:10:37 [10931] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 23:10:37 [10931] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-26 23:10:37 [10931] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-26 23:10:37 [10931] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
Why?
How I can solve it?
Thank you
Bye
My configuration files are:
--------------modem.conf----------------------------------------
group = modems
id = generic
name = "Generic Modem"
reset-string = "AT+CFUN=1"
keepalive-cmd = "AT"
init-string = "AT+CNMI=1,2,0,0,0"
--------------kannel.conf----------------------------------------
#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#
# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.
# group = core
# admin-port = 13000
# admin-password = bar
# admin-deny-ip = "*.*.*.*"
# admin-allow-ip = ""
# wapbox-port = 13002
# wdp-interface-name = "*"
# log-file = "/var/log/kannel/bearerbox.log"
# box-deny-ip = "*.*.*.*"
# box-allow-ip = "127.0.0.1"
# group = wapbox
# bearerbox-host = localhost
# log-file = "/var/log/kannel/wapbox.log"
include = /etc/kannel/modems.conf
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
log-file = "/etc/kannel/log/kannel.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#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"
#dlr-storage = internal
#---------------------------------------------
# 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
#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/log/smsbox.log"
log-level = 1
#access-log = "/tmp/access.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...
#
http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=3921776&text=ciccio
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 =
catch-all = true
get-url = "http://localhost/sms.php?phone=%p&text=%a"
#penna usb
group = smsc
smsc=at
modemtype = auto
device=/dev/ttyUSB0
my-number=3453361361
log-level=2
sim-buffering = true
--------------smsbox.log-----------------------------------------------------------
2010-01-26 23:08:51 [10943] [0] INFO: Debug_lvl = 1, log_file = <none>,
log_lvl = 0
2010-01-26 23:08:51 [10943] [0] INFO: Starting to log to file
/etc/kannel/log/smsbox.log level 1
2010-01-26 23:08:51 [10943] [0] INFO: Added logfile
`/etc/kannel/log/smsbox.log' with level `1'.
2010-01-26 23:08:51 [10943] [0] INFO: Service global sender set as '13013'
2010-01-26 23:08:51 [10943] [0] INFO: HTTP: Opening server at port 13013.
2010-01-26 23:08:51 [10943] [0] INFO: Set up send sms service at port 13013
2010-01-26 23:08:51 [10943] [0] INFO: Connected to bearerbox at
127.0.0.1 port 13001.
2010-01-26 23:08:57 [10943] [4] INFO: Starting to service <gfgf> from
<3453361361> to <3453361361>
2010-01-26 23:08:58 [10943] [4] INFO: Starting to service <azz> from
<3453361361> to <3453361361>
2010-01-26 23:09:57 [10943] [4] INFO: Starting to service <gggagaga
fwef> from <3453361361> to <3453361361>
2010-01-26 23:10:49 [10943] [0] INFO: Bearerbox told us to die
Alvaro Cornejo wrote:
You need to either config your modem to send messages to kannel (CNMI
command) or configure kannel to seek for the messages sim-buffering =
true
Read the manual for details
Hope helps
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Tue, Jan 26, 2010 at 1:40 PM, carachi83 <[email protected]> wrote:
Hello,
I've this problem: I'm able to send SMSes but I'm not able to receive them.
Why?
In the log file of the modem and smsbox I don't see any error!
I've read the user manual and I've searched on the net, but i didn't find
anything!
Can you help me?
Below my log and settings file!
Thank you
Bye
-------------------------------------------KANNEL.CONF
------------------------------------------------------------------
include = /etc/kannel/modems.conf
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/etc/kannel/kannel.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#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"
#dlr-storage = internal
#---------------------------------------------
# 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
#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/smsbox.log"
log-level = 1
#access-log = "/tmp/access.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...
#
http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=3921776&text=ciccio
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 =
#keyword-regex = .*
catch-all = true
#max-messages = 10
get-url = "http://localhost/sms?phone=%p&text=%a"
#penna usb
group = smsc
smsc=at
modemtype = auto
#speed = 19200
device=/dev/ttyUSB0
#device=/dev/ttyACM0
my-number=3453361361
log-level=1
log-file = "/etc/kannel/modem.log"
-------------------------------------------MODEM.LOG
------------------------------------------------------------------
2010-01-26 19:11:54 [7919] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 19:11:55 [7919] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-26 19:12:09 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 19:12:09 [7919] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 19:12:10 [7919] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 57600
2010-01-26 19:12:10 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 19:12:10 [7919] [7] INFO: AT2[/dev/ttyUSB0]: detect speed is
57600
2010-01-26 19:12:10 [7919] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 19:12:11 [7919] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 57600
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-26 19:12:12 [7919] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 57600
2010-01-26 19:12:13 [7919] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-26 19:12:13 [7919] [7] INFO: AT2[/dev/ttyUSB0]: AT SMSC successfully
opened.
-------------------------------------------KANNEL.LOG
------------------------------------------------------------------
2010-01-26 19:11:54 [7919] [0] INFO: Added logfile `/etc/kannel/kannel.log'
with level `1'.
2010-01-26 19:11:54 [7919] [0] INFO: HTTP: Opening server at port 13000.
2010-01-26 19:11:54 [7919] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2010-01-26 19:11:54 [7919] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-01-26 19:11:54 [7919] [0] INFO: SMS resend retry set to unlimited.
2010-01-26 19:11:54 [7919] [0] INFO: DLR rerouting for smsc id <FAKE>
disabled.
2010-01-26 19:11:54 [7919] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
2010-01-26 19:11:54 [7919] [0] INFO: Added logfile `/etc/kannel/modem.log'
with level `1'.
2010-01-26 19:11:54 [7919] [0] INFO: AT2[/dev/ttyUSB0]: configuration
doesn't show modemtype. will autodetect
2010-01-26 19:11:54 [7919] [7] INFO: Logging thread `7' to logfile
`/etc/kannel/modem.log' with level `1'.
2010-01-26 19:11:54 [7919] [0] INFO:
----------------------------------------
2010-01-26 19:11:54 [7919] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-01-26 19:11:54 [7919] [0] INFO: MAIN: Start-up done, entering mainloop
2010-01-26 19:12:31 [7919] [5] INFO: Client connected from <127.0.0.1>
-------------------------------------------KANNEL.LOG
------------------------------------------------------------------
2010-01-26 19:12:31 [7937] [0] INFO: Added logfile `/etc/kannel/smsbox.log'
with level `1'.
2010-01-26 19:12:31 [7937] [0] INFO: Service global sender set as '13013'
2010-01-26 19:12:31 [7937] [0] INFO: HTTP: Opening server at port 13013.
2010-01-26 19:12:31 [7937] [0] INFO: Set up send sms service at port 13013
2010-01-26 19:12:31 [7937] [0] INFO: Connected to bearerbox at 127.0.0.1
port 13001.
2010-01-26 19:19:04 [7937] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-01-26 19:19:04 [7937] [3] INFO: sendsms used by <tester>
2010-01-26 19:19:04 [7937] [3] INFO: sendsms sender:<tester:13013>
(127.0.0.1) to:<3921776> msg:<ciccio>
2010-01-26 19:19:04 [7937] [3] INFO: smsbox: Got HTTP request </favicon.ico>
from <127.0.0.1>
2010-01-26 19:19:07 [7937] [3] INFO: smsbox: Got HTTP request </favicon.ico>
from <127.0.0.1>
2010-01-26 19:19:46 [7937] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-01-26 19:19:46 [7937] [3] INFO: sendsms used by <tester>
2010-01-26 19:19:46 [7937] [3] INFO: sendsms sender:<tester:13013>
(127.0.0.1) to:<3921776> msg:<ciccio>
2010-01-26 19:20:14 [7937] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-01-26 19:20:14 [7937] [3] INFO: sendsms used by <tester>
2010-01-26 19:20:14 [7937] [3] INFO: sendsms sender:<tester:13013>
(127.0.0.1) to:<3921776> msg:<ciccio>
2010-01-26 19:20:48 [7937] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-01-26 19:20:48 [7937] [3] INFO: sendsms used by <tester>
2010-01-26 19:20:48 [7937] [3] INFO: sendsms sender:<tester:13013>
(127.0.0.1) to:<3921776> msg:<ciccio7>
2010-01-26 19:21:07 [7937] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-01-26 19:21:07 [7937] [3] INFO: sendsms used by <tester>
2010-01-26 19:21:07 [7937] [3] INFO: sendsms sender:<tester:13013>
(127.0.0.1) to:<3921776> msg:<ciccio7>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------