Hello Alvaro
I try to follow your advise and this is the output.
I think that the error is there:
2010-01-27 10:56:26 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> *AT+CPMS?^M*
2010-01-27 10:56:26 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:56:30 [3525] [7] DEBUG: *failed to send mem select command
to modem -1*
2010-01-27 10:56:30 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: *memory check
error*
2010-01-27 10:56:30 [3525] [7] INFO: AT2[/dev/ttyUSB0]: *Closing device
*Thank you
Bye
-------------------MODEM.CONF------------------------------------------------------------------------------------
group = modems
id = generic
name = "Generic Modem"
reset-string = "AT+CFUN=1"
keepalive-cmd = "AT"
init-string = "AT+CMEE=1;+CNMI=1,2,0,0,0"
-------------bearerbox output
----------------------------------------------------------------------------------------
$ sudo bearerbox -v 0 /etc/kannel/kannel.conf
2010-01-27 10:52:39 [3525] [0] INFO: Debug_lvl = 0, log_file = <none>,
log_lvl = 0
2010-01-27 10:52:39 [3525] [0] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 29 of file /etc/kannel/kannel.conf).
2010-01-27 10:52:39 [3525] [0] WARNING: DLR: using default 'internal'
for storage type.
2010-01-27 10:52:39 [3525] [0] INFO: DLR using storage type: internal
2010-01-27 10:52:39 [3525] [0] DEBUG: Kannel bearerbox version `1.4.3'.
Build `Jan 18 2010 21:45:33', compiler `4.4.1'.
System Linux, release 2.6.31-18-generic, version #55-Ubuntu SMP Fri Jan
8 14:54:52 UTC 2010, machine x86_64.
Hostname diego-desktop, IP 127.0.1.1.
Libxml version 2.7.5.
Using native malloc.
2010-01-27 10:52:39 [3525] [0] INFO: Added logfile
`/etc/kannel/log/kannel.log' with level `0'.
2010-01-27 10:52:39 [3525] [0] INFO: SSL not supported, no SSL
initialization done.
2010-01-27 10:52:39 [3525] [0] INFO: HTTP: Opening server at port 13000.
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2010-01-27 10:52:39 [3525] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 3525.
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2010-01-27 10:52:39 [3525] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps to pid 3525.
2010-01-27 10:52:39 [3525] [0] DEBUG: starting smsbox connection module
2010-01-27 10:52:39 [3525] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2010-01-27 10:52:39 [3525] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3525.
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2010-01-27 10:52:39 [3525] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-01-27 10:52:39 [3525] [0] INFO: SMS resend retry set to unlimited.
2010-01-27 10:52:39 [3525] [0] DEBUG: smsbox MO concatenated message
handling enabled
2010-01-27 10:52:39 [3525] [0] INFO: DLR rerouting for smsc id <FAKE>
disabled.
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 6
(gw/smsc/smsc_fake.c:fake_listener)
2010-01-27 10:52:39 [3525] [6] DEBUG: Thread 6
(gw/smsc/smsc_fake.c:fake_listener) maps to pid 3525.
2010-01-27 10:52:39 [3525] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
2010-01-27 10:52:39 [3525] [0] INFO: AT2[/dev/ttyUSB0]: configuration
doesn't show modemtype. will autodetect
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 7
(gw/smsc/smsc_at.c:at2_device_thread)
2010-01-27 10:52:39 [3525] [7] DEBUG: Thread 7
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3525.
2010-01-27 10:52:39 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
speed.
2010-01-27 10:52:39 [3525] [0] DEBUG: Started thread 8
(gw/bb_smscconn.c:sms_router)
2010-01-27 10:52:39 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:52:39 [3525] [0] INFO:
----------------------------------------
2010-01-27 10:52:39 [3525] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-01-27 10:52:39 [3525] [5] DEBUG: Thread 5
(gw/bb_boxc.c:smsboxc_run) maps to pid 3525.
2010-01-27 10:52:39 [3525] [0] INFO: MAIN: Start-up done, entering mainloop
2010-01-27 10:52:39 [3525] [0] DEBUG: smsc_fake: start called
2010-01-27 10:52:39 [3525] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
2010-01-27 10:52:39 [3525] [8] DEBUG: Thread 8
(gw/bb_smscconn.c:sms_router) maps to pid 3525.
2010-01-27 10:52:39 [3525] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 3525.
2010-01-27 10:52:39 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:52:40 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:52:40 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:52:40 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
2010-01-27 10:52:42 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:52:42 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
2010-01-27 10:52:42 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:42 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-27 10:52:42 [3525] [7] INFO: AT2[/dev/ttyUSB0]: detect speed is
115200
2010-01-27 10:52:42 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
type
2010-01-27 10:52:42 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:52:42 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:52:43 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATI^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- <manufacturer1>
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 29 of file /etc/kannel/kannel.conf).
2010-01-27 10:52:43 [3525] [7] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 29 of file /etc/kannel/kannel.conf).
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: Cannot detect
modem, using generic
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from </etc/kannel/kannel.conf>
2010-01-27 10:52:43 [3525] [7] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 29 of file /etc/kannel/kannel.conf).
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: Found <1>
modems in config
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0,1)
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:43 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-27 10:52:43 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-27 10:52:43 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:52:43 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:52:43 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-27 10:52:44 [3525] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-27 10:52:44 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+IFC=2,2^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPIN?^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPIN: READY
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGF=0^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0,1)
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=1^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: 1,1,1
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: -->
AT+CMEE=1;+CNMI=1,2,0,0,0^M
2010-01-27 10:52:45 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:52:45 [3525] [7] INFO: AT2[/dev/ttyUSB0]: AT SMSC
successfully opened.
2010-01-27 10:52:47 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
2010-01-27 10:52:47 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS:
"SM",0,30,"SM",0,30,"SM",0,30
2010-01-27 10:52:47 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:53:48 [3525] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:48 [3525] [2] DEBUG: HTTP: Created HTTPClient area
0x16e8f10.
2010-01-27 10:53:48 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:48 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:49 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
2010-01-27 10:53:50 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:51 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:51 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:52 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:53 [3525] [7] DEBUG: failed to send mem select command
to modem -1
2010-01-27 10:53:53 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: memory check error
2010-01-27 10:53:53 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-27 10:53:53 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-27 10:53:53 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:53:53 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:54:03 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:54:03 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-27 10:54:03 [3525] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-27 10:54:03 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:03 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+IFC=2,2^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPIN?^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPIN: READY
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGF=0^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0,1)
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=1^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: 1,1,1
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: -->
AT+CMEE=1;+CNMI=1,2,0,0,0^M
2010-01-27 10:54:04 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:04 [3525] [7] INFO: AT2[/dev/ttyUSB0]: AT SMSC
successfully opened.
2010-01-27 10:54:06 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
2010-01-27 10:54:06 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS:
"SM",0,30,"SM",0,30,"SM",0,30
2010-01-27 10:54:06 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:54:35 [3525] [5] INFO: Client connected from <127.0.0.1>
2010-01-27 10:54:35 [3525] [5] DEBUG: Started thread 9
(gw/bb_boxc.c:function)
2010-01-27 10:54:35 [3525] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function)
maps to pid 3525.
2010-01-27 10:54:35 [3525] [9] DEBUG: Started thread 10
(gw/bb_boxc.c:boxc_sender)
2010-01-27 10:54:35 [3525] [10] DEBUG: Thread 10
(gw/bb_boxc.c:boxc_sender) maps to pid 3525.
2010-01-27 10:54:53 [3525] [1] DEBUG: Timeout for fd:27 appeares.
2010-01-27 10:54:53 [3525] [1] DEBUG: HTTP: Destroying HTTPClient area
0x16e8f10.
2010-01-27 10:54:53 [3525] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-01-27 10:55:08 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
2010-01-27 10:55:12 [3525] [7] DEBUG: failed to send mem select command
to modem -1
2010-01-27 10:55:12 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: memory check error
2010-01-27 10:55:12 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-27 10:55:12 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-27 10:55:12 [3525] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-01-27 10:55:12 [3525] [2] DEBUG: HTTP: Created HTTPClient area
0x16e8ee0.
2010-01-27 10:55:12 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:55:13 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:55:22 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:55:22 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-27 10:55:22 [3525] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-27 10:55:22 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:22 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+IFC=2,2^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPIN?^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPIN: READY
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGF=0^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0,1)
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is
supported
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=1^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: 1,1,1
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: -->
AT+CMEE=1;+CNMI=1,2,0,0,0^M
2010-01-27 10:55:23 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:23 [3525] [7] INFO: AT2[/dev/ttyUSB0]: AT SMSC
successfully opened.
2010-01-27 10:55:25 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
2010-01-27 10:55:25 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS:
"SM",0,30,"SM",0,30,"SM",0,30
2010-01-27 10:55:25 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <-- +CMT: ,029
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: <--
07919343290011552412D0335A6D36B3C566B61800000110720155034008D4F29C0E9A36A7
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: received
message from SMSC: +393492001155
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: Alphanumeric
sender <3453361361>
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: User data
length read as (8)
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: Udh decoding
done len=8 udhi=0 udhlen=0 udh=''
2010-01-27 10:55:33 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CNMA^M
2010-01-27 10:55:33 [3525] [10] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-01-27 10:55:33 [3525] [10] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2010-01-27 10:55:33 [3525] [9] DEBUG: boxc_receiver: got ack
2010-01-27 10:55:34 [3525] [9] DEBUG: boxc_receiver: sms received
2010-01-27 10:55:34 [3525] [9] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-01-27 10:55:35 [3525] [9] DEBUG: boxc_receiver: heartbeat with load
value 0 received
2010-01-27 10:55:38 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]:
TP-Validity-Period: 24.0 hours
2010-01-27 10:55:38 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=26^M
2010-01-27 10:55:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: send command
status: -1
2010-01-27 10:56:13 [3525] [1] DEBUG: Timeout for fd:25 appeares.
2010-01-27 10:56:13 [3525] [1] DEBUG: HTTP: Destroying HTTPClient area
0x16e8ee0.
2010-01-27 10:56:13 [3525] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-01-27 10:56:25 [3525] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-01-27 10:56:25 [3525] [2] DEBUG: HTTP: Created HTTPClient area
0x16e3bf0.
2010-01-27 10:56:25 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:56:26 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> *AT+CPMS?^M*
2010-01-27 10:56:26 [3525] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-01-27 10:56:30 [3525] [7] DEBUG: *failed to send mem select command
to modem -1*
2010-01-27 10:56:30 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: *memory check
error*
2010-01-27 10:56:30 [3525] [7] INFO: AT2[/dev/ttyUSB0]: *Closing device*
2010-01-27 10:56:30 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-27 10:56:40 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:56:40 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:56:40 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:56:40 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-27 10:56:40 [3525] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-27 10:56:40 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:56:40 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
2010-01-27 10:56:44 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: *Wrong or no
answer to ATZ, ignorin*g
2010-01-27 10:56:44 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:56:48 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: *Wrong or no
answer to AT. Trying again*
2010-01-27 10:56:48 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
2010-01-27 10:56:52 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Second attempt
to send AT failed
2010-01-27 10:56:52 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Initialization
of device failed.
2010-01-27 10:56:52 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-01-27 10:56:52 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-01-27 10:57:02 [3525] [7] INFO: AT2[/dev/ttyUSB0]: opening device
2010-01-27 10:57:02 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened.
Telnet mode = 0
2010-01-27 10:57:02 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-01-27 10:57:02 [3525] [7] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-01-27 10:57:02 [3525] [7] INFO: AT2[/dev/ttyUSB0]: init device
2010-01-27 10:57:02 [3525] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-01-27 10:57:02 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
2010-01-27 10:57:06 [3525] [7] ERROR: AT2[/dev/ttyUSB0]: Wrong or no
answer to ATZ, ignoring
2010-01-27 10:57:06 [3525] [7] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
---------------------- SMSBOX Output
-----------------------------------------------------------------------------------------------------
$ sudo smsbox -v 0 /etc/kannel/kannel.conf
2010-01-27 10:54:35 [3603] [0] INFO: Debug_lvl = 0, log_file = <none>,
log_lvl = 0
2010-01-27 10:54:35 [3603] [0] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 29 of file /etc/kannel/kannel.conf).
2010-01-27 10:54:35 [3603] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Jan 18 2010 21:45:33', compiler `4.4.1'.
System Linux, release 2.6.31-18-generic, version #55-Ubuntu SMP Fri Jan
8 14:54:52 UTC 2010, machine x86_64.
Hostname diego-desktop, IP 127.0.1.1.
Libxml version 2.7.5.
Using native malloc.
2010-01-27 10:54:35 [3603] [0] INFO: Starting to log to file
/etc/kannel/log/smsbox.log level 0
2010-01-27 10:54:35 [3603] [0] INFO: Added logfile
`/etc/kannel/log/smsbox.log' with level `0'.
2010-01-27 10:54:35 [3603] [0] INFO: Service global sender set as '13013'
2010-01-27 10:54:35 [3603] [0] INFO: HTTP: Opening server at port 13013.
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2010-01-27 10:54:35 [3603] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 3603.
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2010-01-27 10:54:35 [3603] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 3603.
2010-01-27 10:54:35 [3603] [0] INFO: Set up send sms service at port 13013
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
2010-01-27 10:54:35 [3603] [3] DEBUG: Thread 3
(gw/smsbox.c:sendsms_thread) maps to pid 3603.
2010-01-27 10:54:35 [3603] [0] DEBUG:
----------------------------------------------
2010-01-27 10:54:35 [3603] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2010-01-27 10:54:35 [3603] [0] DEBUG: dumping group (sendsms-user):
2010-01-27 10:54:35 [3603] [0] DEBUG: <group> = <sendsms-user>
2010-01-27 10:54:35 [3603] [0] DEBUG: <username> = <tester>
2010-01-27 10:54:35 [3603] [0] DEBUG: <password> = <foobar>
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2010-01-27 10:54:35 [3603] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) maps to pid 3603.
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2010-01-27 10:54:35 [3603] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) maps to pid 3603.
2010-01-27 10:54:35 [3603] [0] INFO: Connected to bearerbox at 127.0.0.1
port 13001.
2010-01-27 10:54:35 [3603] [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2010-01-27 10:54:35 [3603] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) maps to pid 3603.
2010-01-27 10:54:35 [3603] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) maps to pid 3603.
2010-01-27 10:55:33 [3603] [4] DEBUG: match found: ^[ ]*()[ ]*
2010-01-27 10:55:33 [3603] [4] INFO: Starting to service <Test SMS> from
<3453361361> to <3453361361>
2010-01-27 10:55:33 [3603] [4] DEBUG: Started thread 8
(gwlib/fdset.c:poller)
2010-01-27 10:55:33 [3603] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller)
maps to pid 3603.
2010-01-27 10:55:33 [3603] [4] DEBUG: Started thread 9
(gwlib/http.c:write_request_thread)
2010-01-27 10:55:33 [3603] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) maps to pid 3603.
2010-01-27 10:55:33 [3603] [9] DEBUG: Queue contains 0 pending requests.
2010-01-27 10:55:33 [3603] [9] DEBUG: Parsing URL
`http://localhost/sms.php?phone=3453361361&text=Test+SMS':
2010-01-27 10:55:33 [3603] [9] DEBUG: Scheme: http://
2010-01-27 10:55:33 [3603] [9] DEBUG: Host: localhost
2010-01-27 10:55:33 [3603] [9] DEBUG: Port: 80
2010-01-27 10:55:33 [3603] [9] DEBUG: Username: (null)
2010-01-27 10:55:33 [3603] [9] DEBUG: Password: (null)
2010-01-27 10:55:33 [3603] [9] DEBUG: Path: /sms.php
2010-01-27 10:55:33 [3603] [9] DEBUG: Query:
phone=3453361361&text=Test+SMS
2010-01-27 10:55:33 [3603] [9] DEBUG: Fragment: (null)
2010-01-27 10:55:33 [3603] [9] DEBUG: HTTP: Opening connection to
`localhost:80' (fd=27).
2010-01-27 10:55:33 [3603] [9] DEBUG: Socket connecting
2010-01-27 10:55:33 [3603] [8] DEBUG: Get info about connecting socket
2010-01-27 10:55:33 [3603] [8] DEBUG: HTTP: Sending request:
2010-01-27 10:55:33 [3603] [8] DEBUG: Octet string at 0x2695060:
2010-01-27 10:55:33 [3603] [8] DEBUG: len: 123
2010-01-27 10:55:33 [3603] [8] DEBUG: size: 1024
2010-01-27 10:55:33 [3603] [8] DEBUG: immutable: 0
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 47 45 54 20 2f 73 6d 73 2e
70 68 70 3f 70 68 6f GET /sms.php?pho
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 6e 65 3d 33 34 35 33 33 36
31 33 36 31 26 74 65 ne=3453361361&te
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 78 74 3d 54 65 73 74 2b 53
4d 53 20 48 54 54 50 xt=Test+SMS HTTP
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 2f 31 2e 31 0d 0a 48 6f 73
74 3a 20 6c 6f 63 61 /1.1..Host: loca
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 6c 68 6f 73 74 0d 0a 43 6f
6e 6e 65 63 74 69 6f lhost..Connectio
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 6e 3a 20 6b 65 65 70 2d 61
6c 69 76 65 0d 0a 55 n: keep-alive..U
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 73 65 72 2d 41 67 65 6e 74
3a 20 4b 61 6e 6e 65 ser-Agent: Kanne
2010-01-27 10:55:33 [3603] [8] DEBUG: data: 6c 2f 31 2e 34 2e 33 0d 0a
0d 0a l/1.4.3....
2010-01-27 10:55:33 [3603] [8] DEBUG: Octet string dump ends.
2010-01-27 10:55:34 [3603] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2010-01-27 10:55:34 [3603] [8] DEBUG: HTTP: Received response:
2010-01-27 10:55:34 [3603] [8] DEBUG: Octet string at 0x26950c0:
2010-01-27 10:55:34 [3603] [8] DEBUG: len: 247
2010-01-27 10:55:34 [3603] [8] DEBUG: size: 1024
2010-01-27 10:55:34 [3603] [8] DEBUG: immutable: 0
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 44 61 74 65 3a 20 57 65 64
2c 20 32 37 20 4a 61 Date: Wed, 27 Ja
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 6e 20 32 30 31 30 20 30 39
3a 35 35 3a 33 33 20 n 2010 09:55:33
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 47 4d 54 0d 0a 53 65 72 76
65 72 3a 20 41 70 61 GMT..Server: Apa
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 63 68 65 2f 32 2e 32 2e 31
32 20 28 55 62 75 6e che/2.2.12 (Ubun
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 74 75 29 0d 0a 58 2d 50 6f
77 65 72 65 64 2d 42 tu)..X-Powered-B
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 79 3a 20 50 48 50 2f 35 2e
32 2e 31 30 2d 32 75 y: PHP/5.2.10-2u
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 62 75 6e 74 75 36 2e 34 0d
0a 56 61 72 79 3a 20 buntu6.4..Vary:
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 41 63 63 65 70 74 2d 45 6e
63 6f 64 69 6e 67 0d Accept-Encoding.
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 0a 43 6f 6e 74 65 6e 74 2d
4c 65 6e 67 74 68 3a .Content-Length:
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 20 31 34 0d 0a 4b 65 65 70
2d 41 6c 69 76 65 3a 14..Keep-Alive:
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 20 74 69 6d 65 6f 75 74 3d
31 35 2c 20 6d 61 78 timeout=15, max
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 3d 31 30 30 0d 0a 43 6f 6e
6e 65 63 74 69 6f 6e =100..Connection
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 3a 20 4b 65 65 70 2d 41 6c
69 76 65 0d 0a 43 6f : Keep-Alive..Co
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 6e 74 65 6e 74 2d 54 79 70
65 3a 20 74 65 78 74 ntent-Type: text
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 2f 68 74 6d 6c 0d 0a 0d 0a
4f 6b 20 52 65 67 69 /html....Ok Regi
2010-01-27 10:55:34 [3603] [8] DEBUG: data: 73 74 72 61 74 6f
21 strato!
2010-01-27 10:55:34 [3603] [8] DEBUG: Octet string dump ends.
2010-01-27 10:55:34 [3603] [5] DEBUG: message length 14, sending 1 messages
2010-01-27 10:55:34 [3603] [0] DEBUG: Got ACK (0) of
7651fb42-0d27-4e33-ab87-ca4e59fb1067
2010-01-27 10:55:34 [3603] [0] DEBUG: No client - multi-send or ACK to
pull-reply
2010-01-27 10:55:49 [3603] [8] DEBUG: HTTP: Server closed connection,
destroying it <localhost:80:0::><0x26951c0><fd:27>.
2010-01-27 10:57:14 [3603] [0] INFO: Bearerbox told us to die
Alvaro Cornejo wrote:
use log-level=0 for maximum verbose
use cmee=1 or 2 to get maximum verbose from modem
repost logs
|-----------------------------------------------------------------------------------------------------------------|
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 5:24 PM, Carachi <[email protected]> wrote:
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>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------