Hi,

I'm starting with Kannel, and I'm already facing an issue with my
modem.conf.
May be someone could provide me the correct information, or tell me how to
find it to fill it correctly.

Phone used: Sony C702 via USB
System: Fedora 12

Modem.conf:
group = modems
id = sony_c702
name = “sony_c702”
detect-string = “Sony Ericsson”
need-sleep = true
init-string = “AT+CNMI=2,3,2,0,0;+CMFG=0″
speed = 38400
message-storage = “SM”

Kannel.conf:
#SMSC GSM
group = smsc
smsc = at
smsc-id = "sony_c702"
sms-center = “+33609001390”
modemtype = sony_c702
device = /dev/ttyACM0
pin = 9960
validityperiod = 167
sim-buffering = true
include = /etc/kannel/modems.conf

Kannel.log:
2010-02-09 10:24:29 [3233] [0] INFO: Added logfile
`/var/log/kannel/kannel.log' with level `0'.
2010-02-09 10:24:29 [3233] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2010-02-09 10:24:29 [3233] [0] INFO: HTTP: Opening server at port 13000.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2010-02-09 10:24:29 [3233] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 3233.
2010-02-09 10:24:29 [3233] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 3233.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2010-02-09 10:24:29 [3233] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 3233.
2010-02-09 10:24:29 [3233] [0] DEBUG: starting smsbox connection module
2010-02-09 10:24:29 [3233] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2010-02-09 10:24:29 [3233] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3233.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2010-02-09 10:24:29 [3233] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 3233.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2010-02-09 10:24:29 [3233] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-02-09 10:24:29 [3233] [0] INFO: SMS resend retry set to unlimited.
2010-02-09 10:24:29 [3233] [0] DEBUG: MO concatenated message handling
enabled
2010-02-09 10:24:29 [3233] [0] INFO: DLR rerouting for smsc id <sony_c702>
disabled.
2010-02-09 10:24:29 [3233] [0] INFO: AT2[sony_c702]: configuration shows
modemtype <sony_c702>
2010-02-09 10:24:29 [3233] [0] DEBUG: AT2[sony_c702]: Reading modem
definitions from </etc/kannel/kannel.conf>
2010-02-09 10:24:29 [3233] [0] DEBUG: Loading include file
`/etc/kannel/modems.conf' (on line 74 of file /etc/kannel/kannel.conf).
2010-02-09 10:24:29 [3233] [0] DEBUG: AT2[sony_c702]: Found <15> modems in
config
2010-02-09 10:24:29 [3233] [0] INFO: AT2[sony_c702]: read modem definition
for <“sony_c702”>
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2010-02-09 10:24:29 [3233] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3233.
2010-02-09 10:24:29 [3233] [6] INFO: AT2[sony_c702]: trying to use speed
<9600> from modem definition
2010-02-09 10:24:29 [3233] [6] INFO: AT2[sony_c702]: opening device
2010-02-09 10:24:29 [3233] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 7
(gw/smsc/smsc_fake.c:fake_listener)
2010-02-09 10:24:29 [3233] [7] DEBUG: Thread 7
(gw/smsc/smsc_fake.c:fake_listener) maps to pid 3233.
2010-02-09 10:24:29 [3233] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router)
maps to pid 3233.
2010-02-09 10:24:29 [3233] [0] DEBUG: Started thread 8
(gw/bb_smscconn.c:sms_router)
2010-02-09 10:24:29 [3233] [0] INFO:
----------------------------------------
2010-02-09 10:24:29 [3233] [0] INFO: Kannel bearerbox II version
cvs-20100121 starting
2010-02-09 10:24:29 [3233] [0] INFO: Loaded 0 messages from store.
2010-02-09 10:24:29 [3233] [0] INFO: MAIN: Start-up done, entering mainloop
2010-02-09 10:24:29 [3233] [0] DEBUG: AT2[sony_c702]: start called
2010-02-09 10:24:29 [3233] [0] DEBUG: smsc_fake: start called
2010-02-09 10:24:29 [3233] [6] DEBUG: AT2[sony_c702]: device opened. Telnet
mode = 0
2010-02-09 10:24:30 [3233] [6] DEBUG: AT2[sony_c702]: device opened
2010-02-09 10:24:30 [3233] [6] INFO: AT2[sony_c702]: speed set to 9600
2010-02-09 10:24:30 [3233] [6] DEBUG: AT2[sony_c702]: --> ^M
2010-02-09 10:24:30 [3233] [5] INFO: Client connected from <127.0.0.1>
2010-02-09 10:24:30 [3233] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps
to pid 3233.
2010-02-09 10:24:30 [3233] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender)
maps to pid 3233.
2010-02-09 10:24:30 [3233] [5] DEBUG: Started thread 9
(gw/bb_boxc.c:function)
2010-02-09 10:24:30 [3233] [9] DEBUG: Started thread 10
(gw/bb_boxc.c:boxc_sender)
2010-02-09 10:24:32 [3233] [6] DEBUG: AT2[sony_c702]: --> AT^M
2010-02-09 10:24:32 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:32 [3233] [6] INFO: AT2[sony_c702]: Closing device
2010-02-09 10:24:32 [3233] [6] INFO: AT2[sony_c702]: speed is 9600
2010-02-09 10:24:32 [3233] [6] INFO: AT2[sony_c702]: opening device
2010-02-09 10:24:32 [3233] [6] DEBUG: AT2[sony_c702]: device opened. Telnet
mode = 0
2010-02-09 10:24:33 [3233] [6] DEBUG: AT2[sony_c702]: device opened
2010-02-09 10:24:33 [3233] [6] INFO: AT2[sony_c702]: Logging in
2010-02-09 10:24:34 [3233] [6] INFO: AT2[sony_c702]: init device
2010-02-09 10:24:34 [3233] [6] INFO: AT2[sony_c702]: speed set to 9600
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> ATZ^M
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> AT^M
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- AT
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> AT&F^M
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- AT&F
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> ATE0^M
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- ATE0
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+IFC=2,2^M
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:34 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+CPIN?^M
2010-02-09 10:24:35 [3233] [6] DEBUG: AT2[sony_c702]: <-- +CPIN: READY
2010-02-09 10:24:35 [3233] [6] DEBUG: AT2[sony_c702]: -->
AT+CSCA="“+33609001390”"^M
2010-02-09 10:24:35 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:35 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+CMGF=0^M
2010-02-09 10:24:35 [3233] [6] DEBUG: AT2[sony_c702]: <-- ERROR
2010-02-09 10:24:35 [3233] [6] ERROR: AT2[sony_c702]: Generic error: ERROR
2010-02-09 10:24:35 [3233] [6] ERROR: AT2[sony_c702]: Initialization of
device failed. Attempt #0 on -1 max.
2010-02-09 10:24:35 [3233] [6] INFO: AT2[sony_c702]: Closing device
2010-02-09 10:24:35 [3233] [6] ERROR: AT2[sony_c702]: Couldn't connect
(retrying in 10 seconds).
2010-02-09 10:24:40 [3233] [0] WARNING: Killing signal or HTTP admin command
received, shutting down...
2010-02-09 10:24:40 [3233] [0] DEBUG: Shutting down Kannel...
2010-02-09 10:24:40 [3233] [0] DEBUG: shutting down smsc
2010-02-09 10:24:40 [3233] [0] DEBUG: AT2[sony_c702]: Shutting down
SMSCConn, slow
2010-02-09 10:24:40 [3233] [0] DEBUG: Shutting down SMSCConn FAKE, slow
2010-02-09 10:24:40 [3233] [6] INFO: AT2[sony_c702]: opening device
2010-02-09 10:24:40 [3233] [7] DEBUG: smsc_fake connection has completed
shutdown.
2010-02-09 10:24:40 [3233] [7] DEBUG: Thread 7
(gw/smsc/smsc_fake.c:fake_listener) terminates.
2010-02-09 10:24:40 [3233] [0] DEBUG: shutting down udp
2010-02-09 10:24:40 [3233] [6] DEBUG: AT2[sony_c702]: device opened. Telnet
mode = 0
2010-02-09 10:24:40 [3233] [9] INFO: Connection closed by the box
<127.0.0.1>
2010-02-09 10:24:40 [3233] [10] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-02-09 10:24:40 [3233] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender)
terminates.
2010-02-09 10:24:40 [3233] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function)
terminates.
2010-02-09 10:24:41 [3233] [6] DEBUG: AT2[sony_c702]: device opened
2010-02-09 10:24:41 [3233] [6] INFO: AT2[sony_c702]: Logging in
2010-02-09 10:24:41 [3233] [6] INFO: AT2[sony_c702]: init device
2010-02-09 10:24:41 [3233] [6] INFO: AT2[sony_c702]: speed set to 9600
2010-02-09 10:24:41 [3233] [6] DEBUG: AT2[sony_c702]: --> ATZ^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> AT^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- AT
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> AT&F^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- AT&F
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> ATE0^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- ATE0
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+IFC=2,2^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+CPIN?^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- +CPIN: READY
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: -->
AT+CSCA="“+33609001390”"^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- OK
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: --> AT+CMGF=0^M
2010-02-09 10:24:42 [3233] [6] DEBUG: AT2[sony_c702]: <-- ERROR
2010-02-09 10:24:42 [3233] [6] ERROR: AT2[sony_c702]: Generic error: ERROR
2010-02-09 10:24:42 [3233] [6] ERROR: AT2[sony_c702]: Initialization of
device failed. Attempt #1 on -1 max.
2010-02-09 10:24:42 [3233] [6] INFO: AT2[sony_c702]: Closing device
2010-02-09 10:24:42 [3233] [6] INFO: AT2[sony_c702]: Closing device
2010-02-09 10:24:42 [3233] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) terminates.
2010-02-09 10:24:42 [3233] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) terminates.
2010-02-09 10:24:42 [3233] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
terminates.
2010-02-09 10:24:42 [3233] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router)
terminates.
2010-02-09 10:24:42 [3233] [0] INFO: All flow threads have died, killing
core
2010-02-09 10:24:42 [3233] [0] DEBUG: Waiting for 2
(gwlib/http.c:server_thread) to terminate
2010-02-09 10:24:42 [3233] [3] DEBUG: HTTP: No clients with requests,
quitting.
2010-02-09 10:24:42 [3233] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
terminates.
2010-02-09 10:24:42 [3233] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
terminates.
2010-02-09 10:24:42 [3233] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
terminates.
2010-02-09 10:24:42 [3233] [0] DEBUG: final clean-up for SMSCConn
2010-02-09 10:24:42 [3233] [0] DEBUG: MO concatenated message handling
cleaned up
2010-02-09 10:24:42 [3233] [0] INFO: Total WDP messages: received 0, sent 0
2010-02-09 10:24:42 [3233] [0] INFO: Total SMS messages: received 0, dlr 0,
sent 0, dlr 0
2010-02-09 10:24:42 [3233] [0] DEBUG: Immutable octet strings: 230.

With "minicom":
AT+CMGF=0
OK
AT+CMGF=?
+CMGF: (0)
OK
AT+CNMI=?
+CNMI: (2),(0,1,3),(0,2),(0,1),(0)
OK

I hope I'm using the right diffusion list, else please let me know where to
ask.
Thanks in advance for your experience sharing. ;)

Rgds,


Damien

Reply via email to